@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | public function toArray(): array |
| 116 | 116 | { |
| 117 | 117 | $cachekey = $this->getCacheKey(); |
| 118 | - if (! $this->hasCacheKey($cachekey) || $this->noCache) { |
|
| 118 | + if (!$this->hasCacheKey($cachekey) || $this->noCache) { |
|
| 119 | 119 | $this->collateIntel(); |
| 120 | 120 | if ($this->debug) { |
| 121 | 121 | if ($this->intel['ErrorHasAnyError']) { |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | } else { |
| 256 | 256 | $this->intel['ImageRatio'] = 0; |
| 257 | 257 | } |
| 258 | - $this->intel['ImagePixels'] = $this->intel['ImageHeight'] * $this->intel['ImageWidth']; |
|
| 258 | + $this->intel['ImagePixels'] = $this->intel['ImageHeight'] * $this->intel['ImageWidth']; |
|
| 259 | 259 | $this->intel['IsResizedImage'] = (bool) strpos($this->intel['PathFileName'], '__'); |
| 260 | 260 | } |
| 261 | 261 | } |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | protected function addFolderDetails($dbFileData) |
| 265 | 265 | { |
| 266 | 266 | $folder = []; |
| 267 | - if (! empty($dbFileData['ParentID'])) { |
|
| 267 | + if (!empty($dbFileData['ParentID'])) { |
|
| 268 | 268 | if (isset($this->folderCache[$dbFileData['ParentID']])) { |
| 269 | 269 | $folder = $this->folderCache[$dbFileData['ParentID']]; |
| 270 | 270 | } else { |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | } |
| 278 | 278 | |
| 279 | 279 | if (empty($folder)) { |
| 280 | - $this->intel['ErrorFindingFolder'] = ! empty($dbFileData['ParentID']); |
|
| 280 | + $this->intel['ErrorFindingFolder'] = !empty($dbFileData['ParentID']); |
|
| 281 | 281 | $this->intel['FolderID'] = 0; |
| 282 | 282 | } else { |
| 283 | 283 | $this->intel['ErrorFindingFolder'] = false; |
@@ -322,14 +322,14 @@ discard block |
||
| 322 | 322 | $this->intel['DBFilename'] = $dbFileData['Name'] ?: basename($this->intel['DBPath']); |
| 323 | 323 | $existsOnStaging = $obj->existsOnStaging($this->intel['DBID']); |
| 324 | 324 | $existsOnLive = $obj->existsOnLive($this->intel['DBID']); |
| 325 | - $this->intel['ErrorDBNotPresentStaging'] = ! $existsOnStaging; |
|
| 326 | - $this->intel['ErrorDBNotPresentLive'] = ! $existsOnLive; |
|
| 327 | - $this->intel['ErrorInDraftOnly'] = $existsOnStaging && ! $existsOnLive; |
|
| 328 | - $this->intel['ErrorNotInDraft'] = ! $existsOnStaging && $existsOnLive; |
|
| 325 | + $this->intel['ErrorDBNotPresentStaging'] = !$existsOnStaging; |
|
| 326 | + $this->intel['ErrorDBNotPresentLive'] = !$existsOnLive; |
|
| 327 | + $this->intel['ErrorInDraftOnly'] = $existsOnStaging && !$existsOnLive; |
|
| 328 | + $this->intel['ErrorNotInDraft'] = !$existsOnStaging && $existsOnLive; |
|
| 329 | 329 | $this->intel['DBCMSEditLink'] = '/admin/assets/EditForm/field/File/item/' . $this->intel['DBID'] . '/edit'; |
| 330 | 330 | $this->intel['DBTitle'] = $dbFileData['Title']; |
| 331 | 331 | $this->intel['DBFilenameSS4'] = $dbFileData['FileFilename'] ?? 'none'; |
| 332 | - $this->intel['DBFilenameSS3'] = $dbFileData['Filename'] ?? 'none';; |
|
| 332 | + $this->intel['DBFilenameSS3'] = $dbFileData['Filename'] ?? 'none'; ; |
|
| 333 | 333 | $this->intel['ErrorInFilename'] = $this->intel['Path'] !== $this->intel['DBPath']; |
| 334 | 334 | $ss3FileName = $dbFileData['Filename'] ?? ''; |
| 335 | 335 | if ('assets/' === substr((string) $ss3FileName, 0, strlen('assets/'))) { |