Passed
Push — master ( 2aaa83...8f0998 )
by Caen
03:24 queued 13s
created
packages/framework/src/Support/Filesystem/MediaFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     public function getContentLength(): int
28 28
     {
29
-        if (! is_file($this->path)) {
29
+        if (!is_file($this->path)) {
30 30
             throw new FileNotFoundException(message: "Could not get the content length of file '$this->path'");
31 31
         }
32 32
 
Please login to merge, or discard this patch.
packages/framework/src/Foundation/FileCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function getSourceFiles(?string $pageClass = null): self
36 36
     {
37
-        return ! $pageClass ? $this->getAllSourceFiles() : $this->getSourceFilesFor($pageClass);
37
+        return !$pageClass ? $this->getAllSourceFiles() : $this->getSourceFilesFor($pageClass);
38 38
     }
39 39
 
40 40
     /**
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     {
93 93
         // Scan the source directory, and directories therein, for files that match the model's file extension.
94 94
         foreach (glob($this->kernel->path($pageClass::sourcePath('{*,**/*}')), GLOB_BRACE) as $filepath) {
95
-            if (! str_starts_with(basename((string) $filepath), '_')) {
95
+            if (!str_starts_with(basename((string) $filepath), '_')) {
96 96
                 $this->put($this->kernel->pathToRelative($filepath), SourceFile::make($filepath, $pageClass));
97 97
             }
98 98
         }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Services/DiscoveryService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,11 +70,11 @@
 block discarded – undo
70 70
      */
71 71
     public static function getSourceFileListForModel(string $model): array
72 72
     {
73
-        if (! class_exists($model) || ! is_subclass_of($model, HydePage::class)) {
73
+        if (!class_exists($model) || !is_subclass_of($model, HydePage::class)) {
74 74
             throw new UnsupportedPageTypeException($model);
75 75
         }
76 76
 
77
-        return FileCollection::getSourceFiles($model)->flatten()->map(function (SourceFile $file) use ($model): string {
77
+        return FileCollection::getSourceFiles($model)->flatten()->map(function(SourceFile $file) use ($model): string {
78 78
             return static::pathToIdentifier($model, $file->withoutDirectoryPrefix());
79 79
         })->toArray();
80 80
     }
Please login to merge, or discard this patch.