Passed
Push — master ( c384c0...1b8bca )
by Nicolaas
02:38
created
src/Files/AllFilesInfo.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public static function getStagingData(string $pathFromAssets, ?int $id = 0): array
126 126
     {
127
-        if (! $id) {
127
+        if (!$id) {
128 128
             $id = self::$databaseLookupListStaging[$pathFromAssets] ?? 0;
129 129
         }
130 130
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public static function getLiveData(string $pathFromAssets, ?int $id = 0): array
140 140
     {
141
-        if (! $id) {
141
+        if (!$id) {
142 142
             $id = self::$databaseLookupListLive[$pathFromAssets] ?? 0;
143 143
         }
144 144
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     {
185 185
         if ([] === self::$listOfFiles) {
186 186
             $cachekey = $this->getCacheKey();
187
-            if (! $this->hasCacheKey($cachekey)) {
187
+            if (!$this->hasCacheKey($cachekey)) {
188 188
                 $this->flushNow('<h1>Analysing files</h1>');
189 189
                 //disk
190 190
                 $diskArray = $this->getArrayOfFilesOnDisk();
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     protected function registerFile($path, ?bool $inFileSystem = true)
223 223
     {
224 224
         if ($path) {
225
-            if (! isset(self::$listOfFiles[$path])) {
225
+            if (!isset(self::$listOfFiles[$path])) {
226 226
                 self::$listOfFiles[$path] = $inFileSystem;
227 227
                 if ($inFileSystem) {
228 228
                     $this->flushNow('. ', '', false);
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     protected static function findIdFromFileName(array $data, string $filename): int
240 240
     {
241 241
         $id = self::findInData($data, 'FileFilename', $filename);
242
-        if (! $id) {
242
+        if (!$id) {
243 243
             $id = self::findInData($data, 'Filename', $filename);
244 244
         }
245 245
 
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 
274 274
         $fileName = basename($path);
275 275
 
276
-        return ! ('error' === substr((string) $fileName, 0, 5) && '.html' === substr((string) $fileName, -5));
276
+        return !('error' === substr((string) $fileName, 0, 5) && '.html' === substr((string) $fileName, -5));
277 277
     }
278 278
 
279 279
     protected function getArrayOfFilesOnDisk(): array
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
             $files = File::get()->filter(['ClassName:not' => Folder::class])->filter(['ID' => 65]);
309 309
             foreach ($files as $file) {
310 310
                 $row = $file->toMap();
311
-                $absoluteLocation =  $this->path . DIRECTORY_SEPARATOR .  $file->getFilename();
311
+                $absoluteLocation = $this->path . DIRECTORY_SEPARATOR . $file->getFilename();
312 312
                 if ('Stage' === $stage) {
313 313
                     self::$dataStaging[$row['ID']] = $row;
314 314
                     self::$databaseLookupListStaging[$absoluteLocation] = $row['ID'];
Please login to merge, or discard this patch.