@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | public function toArray(): array |
78 | 78 | { |
79 | 79 | $cachekey = $this->getCacheKey(); |
80 | - if (! $this->hasCacheKey($cachekey)) { |
|
80 | + if (!$this->hasCacheKey($cachekey)) { |
|
81 | 81 | $this->getUncachedIntel(); |
82 | 82 | if ($this->intel['ErrorHasAnyError']) { |
83 | 83 | $this->flushNow('x ', '', false); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | protected function addFolderDetails($dbFileData) |
232 | 232 | { |
233 | 233 | $folder = []; |
234 | - if (! empty($dbFileData['ParentID'])) { |
|
234 | + if (!empty($dbFileData['ParentID'])) { |
|
235 | 235 | if (isset($this->folderCache[$dbFileData['ParentID']])) { |
236 | 236 | $folder = $this->folderCache[$dbFileData['ParentID']]; |
237 | 237 | } else { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | } |
245 | 245 | |
246 | 246 | if (empty($folder)) { |
247 | - $this->intel['ErrorFindingFolder'] = ! empty($dbFileData['ParentID']); |
|
247 | + $this->intel['ErrorFindingFolder'] = !empty($dbFileData['ParentID']); |
|
248 | 248 | $this->intel['FolderID'] = 0; |
249 | 249 | } else { |
250 | 250 | $this->intel['ErrorFindingFolder'] = false; |
@@ -285,10 +285,10 @@ discard block |
||
285 | 285 | $this->intel['DBFilename'] = $dbFileData['Name'] ?: basename($this->intel['DBPath']); |
286 | 286 | $existsOnStaging = AllFilesInfo::existsOnStaging($this->intel['DBID']); |
287 | 287 | $existsOnLive = AllFilesInfo::existsOnLive($this->intel['DBID']); |
288 | - $this->intel['ErrorDBNotPresentStaging'] = ! $existsOnStaging; |
|
289 | - $this->intel['ErrorDBNotPresentLive'] = ! $existsOnLive; |
|
290 | - $this->intel['ErrorInDraftOnly'] = $existsOnStaging && ! $existsOnLive; |
|
291 | - $this->intel['ErrorNotInDraft'] = ! $existsOnStaging && $existsOnLive; |
|
288 | + $this->intel['ErrorDBNotPresentStaging'] = !$existsOnStaging; |
|
289 | + $this->intel['ErrorDBNotPresentLive'] = !$existsOnLive; |
|
290 | + $this->intel['ErrorInDraftOnly'] = $existsOnStaging && !$existsOnLive; |
|
291 | + $this->intel['ErrorNotInDraft'] = !$existsOnStaging && $existsOnLive; |
|
292 | 292 | $this->intel['DBCMSEditLink'] = '/admin/assets/EditForm/field/File/item/' . $this->intel['DBID'] . '/edit'; |
293 | 293 | $this->intel['DBTitle'] = $dbFileData['Title']; |
294 | 294 | $this->intel['DBFilenameSS4'] = $dbFileData['FileFilename']; |