Passed
Push — master ( 398022...68471d )
by Caen
03:45 queued 13s
created
packages/framework/src/Framework/Features/Blogging/Models/FeaturedImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     {
217 217
         $storagePath = Hyde::mediaPath($this->source);
218 218
 
219
-        if (! file_exists($storagePath)) {
219
+        if (!file_exists($storagePath)) {
220 220
             throw new FileNotFoundException(customMessage: sprintf('Featured image [%s] not found.', Hyde::pathToRelative($storagePath)));
221 221
         }
222 222
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     protected function getContentLengthForRemoteImage(): int
227 227
     {
228 228
         // Check if the --no-api flag is set when running the build command, and if so, skip the API call.
229
-        if (! (isset($_SERVER['argv']) && in_array('--no-api', $_SERVER['argv'], true))) {
229
+        if (!(isset($_SERVER['argv']) && in_array('--no-api', $_SERVER['argv'], true))) {
230 230
             $headers = Http::withHeaders([
231 231
                 'User-Agent' => Config::getString('hyde.http_user_agent', 'RSS Request Client'),
232 232
             ])->head($this->getSource())->headers();
Please login to merge, or discard this patch.
packages/framework/src/Framework/Services/BuildTaskService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     /** @return array<class-string<\Hyde\Framework\Features\BuildTasks\PreBuildTask>|class-string<\Hyde\Framework\Features\BuildTasks\PostBuildTask>> */
113 113
     protected function findTasksInAppDirectory(): array
114 114
     {
115
-        return Filesystem::smartGlob('app/Actions/*BuildTask.php')->map(function (string $file): string {
115
+        return Filesystem::smartGlob('app/Actions/*BuildTask.php')->map(function(string $file): string {
116 116
             return static::pathToClassName($file);
117 117
         })->toArray();
118 118
     }
Please login to merge, or discard this patch.