Passed
Push — master ( a3e585...f221b7 )
by Caen
09:30 queued 05:54
created
framework/src/Concerns/Markdown/HasConfigurableMarkdownFeatures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     /** @return $this */
19 19
     public function addFeature(string $feature): static
20 20
     {
21
-        if (! in_array($feature, $this->features)) {
21
+        if (!in_array($feature, $this->features)) {
22 22
             $this->features[] = $feature;
23 23
         }
24 24
 
Please login to merge, or discard this patch.
packages/framework/src/Services/DiscoveryService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public static function getSourceFileListForModel(string $model): array
58 58
     {
59
-        if (! class_exists($model) || ! is_subclass_of($model, AbstractPage::class)) {
59
+        if (!class_exists($model) || !is_subclass_of($model, AbstractPage::class)) {
60 60
             throw new UnsupportedPageTypeException($model);
61 61
         }
62 62
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         $files = [];
66 66
         foreach (glob(Hyde::path($model::qualifyBasename('{*,**/*}')), GLOB_BRACE) as $filepath) {
67
-            if (! str_starts_with(basename($filepath), '_')) {
67
+            if (!str_starts_with(basename($filepath), '_')) {
68 68
                 $files[] = self::formatSlugForModel($model, $filepath);
69 69
             }
70 70
         }
Please login to merge, or discard this patch.
packages/framework/src/Services/BuildService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function compileStaticPages(): void
36 36
     {
37
-        $this->getDiscoveredModels()->each(function (string $pageClass) {
37
+        $this->getDiscoveredModels()->each(function(string $pageClass) {
38 38
             $this->compilePagesForClass($pageClass);
39 39
         });
40 40
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         $this->withProgressBar(
62 62
             $collection,
63
-            function ($filepath) {
63
+            function($filepath) {
64 64
                 copy($filepath, Hyde::getSiteOutputPath('media/'.basename($filepath)));
65 65
             }
66 66
         );
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     protected function getDiscoveredModels(): Collection
71 71
     {
72
-        return $this->router->getRoutes()->map(function (Route $route) {
72
+        return $this->router->getRoutes()->map(function(Route $route) {
73 73
             return $route->getPageType();
74 74
         })->unique();
75 75
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
     protected function compileRoute(): \Closure
92 92
     {
93
-        return function (Route $route) {
93
+        return function(Route $route) {
94 94
             return (new StaticPageBuilder($route->getSourceModel()))->__invoke();
95 95
         };
96 96
     }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
     protected function isItSafeToCleanOutputDirectory(): bool
104 104
     {
105
-        if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) {
105
+        if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) {
106 106
             $this->info('Output directory will not be emptied.');
107 107
 
108 108
             return false;
Please login to merge, or discard this patch.
packages/framework/src/Services/RssFeedService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function __construct()
22 22
     {
23
-        if (! extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
23
+        if (!extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
24 24
             throw new \Exception('The ext-simplexml extension is not installed, but is required to generate RSS feeds.');
25 25
         }
26 26
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     protected static function xmlEscape(string $string): string
107 107
     {
108
-        return htmlspecialchars($string, ENT_XML1 | ENT_COMPAT, 'UTF-8');
108
+        return htmlspecialchars($string, ENT_XML1|ENT_COMPAT, 'UTF-8');
109 109
     }
110 110
 
111 111
     public static function getDescription(): string
Please login to merge, or discard this patch.
packages/framework/src/Services/SitemapService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     public function __construct()
27 27
     {
28
-        if (! extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
28
+        if (!extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
29 29
             throw new \Exception('The ext-simplexml extension is not installed, but is required to generate RSS feeds.');
30 30
         }
31 31
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function generate(): static
39 39
     {
40
-        Route::all()->each(function ($route) {
40
+        Route::all()->each(function($route) {
41 41
             $this->addRoute($route);
42 42
         });
43 43
 
Please login to merge, or discard this patch.