Passed
Push — master ( 686944...ea577b )
by Caen
03:07
created
packages/framework/src/Framework/HydeServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
         $this->app->singleton(AssetService::class, AssetService::class);
34 34
 
35
-        $this->app->singleton(MarkdownConverter::class, function () {
35
+        $this->app->singleton(MarkdownConverter::class, function() {
36 36
             return new MarkdownConverter();
37 37
         });
38 38
 
Please login to merge, or discard this patch.
src/Framework/Features/DataCollections/DataCollectionServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         if (Features::hasDataCollections()) {
27 27
             // Create the _data directory if it doesn't exist
28
-            if (! is_dir(Hyde::path('_data'))) {
28
+            if (!is_dir(Hyde::path('_data'))) {
29 29
                 mkdir(Hyde::path('_data'));
30 30
             }
31 31
         }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Session/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,6 +55,6 @@
 block discarded – undo
55 55
 
56 56
     public function hasWarnings(): bool
57 57
     {
58
-        return ! empty($this->warnings);
58
+        return !empty($this->warnings);
59 59
     }
60 60
 }
Please login to merge, or discard this patch.
framework/src/Framework/Features/Blogging/Models/LocalFeaturedImage.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
     protected function setSource(string $source): void
25 25
     {
26
-        if (! str_starts_with($source, '_media/')) {
26
+        if (!str_starts_with($source, '_media/')) {
27 27
             // Throwing an exception here ensures we have a super predictable state.
28 28
             throw new InvalidArgumentException('LocalFeaturedImage source must start with _media/');
29 29
         }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     protected function storageValidatedPath(): string
53 53
     {
54
-        if (! file_exists($this->storagePath())) {
54
+        if (!file_exists($this->storagePath())) {
55 55
             throw new FileNotFoundException("Image at $this->source does not exist");
56 56
         }
57 57
 
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Navigation/NavItem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $route,
56 56
             $route->getPage()->navigationMenuLabel(),
57 57
             $route->getPage()->navigationMenuPriority(),
58
-            ! $route->getPage()->showInNavigation()
58
+            !$route->getPage()->showInNavigation()
59 59
         );
60 60
     }
61 61
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             $current = Hyde::currentRoute()->getPage();
101 101
         }
102 102
 
103
-        if (! isset($this->route)) {
103
+        if (!isset($this->route)) {
104 104
             return ($current->getRoute()->getRouteKey() === $this->href)
105 105
             || ($current->getRoute()->getRouteKey().'.html' === $this->href);
106 106
         }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Metadata/Elements/LinkElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             return '';
32 32
         }
33 33
 
34
-        return sprintf(' %s', collect($this->attr)->map(function ($value, $key) {
34
+        return sprintf(' %s', collect($this->attr)->map(function($value, $key) {
35 35
             return e($key).'="'.e($value).'"';
36 36
         })->implode(' '));
37 37
     }
Please login to merge, or discard this patch.
packages/framework/src/Framework/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/Framework/Actions/PublishesHydeViews.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
     public function execute(): bool|int
45 45
     {
46
-        if (! array_key_exists($this->selected, static::$options)) {
46
+        if (!array_key_exists($this->selected, static::$options)) {
47 47
             return 404;
48 48
         }
49 49
 
Please login to merge, or discard this patch.
packages/framework/src/Framework/Factories/HydePageDataFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,11 +93,11 @@
 block discarded – undo
93 93
 
94 94
     private function getCanonicalUrl(): ?string
95 95
     {
96
-        if (! empty($this->matter('canonicalUrl'))) {
96
+        if (!empty($this->matter('canonicalUrl'))) {
97 97
             return $this->matter('canonicalUrl');
98 98
         }
99 99
 
100
-        if (Hyde::hasSiteUrl() && ! empty($this->identifier)) {
100
+        if (Hyde::hasSiteUrl() && !empty($this->identifier)) {
101 101
             return Hyde::url($this->outputPath);
102 102
         }
103 103
 
Please login to merge, or discard this patch.