Passed
Push — master ( 75c809...c488dc )
by Caen
03:32 queued 13s
created
packages/framework/src/Actions/BladeMatterParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
         $string = trim($string);
142 142
 
143 143
         // Check if string is an array
144
-        if (! static::isValueArrayString($string)) {
144
+        if (!static::isValueArrayString($string)) {
145 145
             throw new RuntimeException('Failed parsing BladeMatter array. Input string must follow array syntax.');
146 146
         }
147 147
 
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
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function compileStaticPages(): void
41 41
     {
42
-        $this->getDiscoveredModels()->each(function (string $pageClass) {
42
+        $this->getDiscoveredModels()->each(function(string $pageClass) {
43 43
             $this->compilePagesForClass($pageClass);
44 44
         });
45 45
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
         $this->withProgressBar(
67 67
             $collection,
68
-            function ($filepath) {
68
+            function($filepath) {
69 69
                 copy($filepath, Hyde::sitePath('media/'.basename($filepath)));
70 70
             }
71 71
         );
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     protected function getDiscoveredModels(): RouteCollection
79 79
     {
80
-        return $this->router->getRoutes()->map(function (Route $route) {
80
+        return $this->router->getRoutes()->map(function(Route $route) {
81 81
             return $route->getPageType();
82 82
         })->unique();
83 83
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /** @psalm-return \Closure(\Hyde\Framework\Models\Support\Route):string */
100 100
     protected function compileRoute(): Closure
101 101
     {
102
-        return function (Route $route) {
102
+        return function(Route $route) {
103 103
             return (new StaticPageBuilder($route->getSourceModel()))->__invoke();
104 104
         };
105 105
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
     protected function isItSafeToCleanOutputDirectory(): bool
113 113
     {
114
-        if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) {
114
+        if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) {
115 115
             $this->info('Output directory will not be emptied.');
116 116
 
117 117
             return false;
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
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function __construct()
29 29
     {
30
-        if (! extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
30
+        if (!extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
31 31
             throw new Exception('The ext-simplexml extension is not installed, but is required to generate RSS feeds.');
32 32
         }
33 33
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function generate(): static
41 41
     {
42
-        Route::all()->each(function ($route) {
42
+        Route::all()->each(function($route) {
43 43
             $this->addRoute($route);
44 44
         });
45 45
 
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
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function __construct()
25 25
     {
26
-        if (! extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
26
+        if (!extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
27 27
             throw new Exception('The ext-simplexml extension is not installed, but is required to generate RSS feeds.');
28 28
         }
29 29
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
     protected static function xmlEscape(string $string): string
112 112
     {
113
-        return htmlspecialchars($string, ENT_XML1 | ENT_COMPAT, 'UTF-8');
113
+        return htmlspecialchars($string, ENT_XML1|ENT_COMPAT, 'UTF-8');
114 114
     }
115 115
 
116 116
     public static function getDescription(): string
Please login to merge, or discard this patch.