N°8796 - Add PHP code style validation in iTop and extensions - format whole code base

This commit is contained in:
odain
2025-11-07 15:39:53 +01:00
parent 12f23113f5
commit 890a2568c8
2110 changed files with 53099 additions and 63885 deletions

View File

@@ -4,7 +4,7 @@
//
// This file is part of iTop.
//
// iTop is free software; you can redistribute it and/or modify
// iTop is free software; you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
@@ -34,12 +34,9 @@ class ImageField extends BlobField
*/
public function GetDisplayValue()
{
if ($this->currentValue->IsEmpty())
{
if ($this->currentValue->IsEmpty()) {
$sValue = Dict::S('Portal:File:None');
}
else
{
} else {
$sFilename = $this->currentValue->GetFileName();
$iSize = utils::BytesToFriendlyFormat(utils::StrLen($this->currentValue->GetData()));
$sOpenLink = $this->GetDisplayUrl();