Passed
Push — master ( daf7fd...9d6232 )
by Caen
02:52
created
packages/framework/src/Actions/BladeMatterParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
         $string = trim($string);
138 138
 
139 139
         // Check if string is an array
140
-        if (! static::isValueArrayString($string)) {
140
+        if (!static::isValueArrayString($string)) {
141 141
             throw new \RuntimeException('Failed parsing BladeMatter array. Input string must follow array syntax.');
142 142
         }
143 143
 
Please login to merge, or discard this patch.
framework/src/Concerns/FrontMatter/Schemas/DocumentationPageSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         $orderIndexArray = config('docs.sidebar_order', []);
51 51
 
52
-        if (! in_array($this->identifier, $orderIndexArray)) {
52
+        if (!in_array($this->identifier, $orderIndexArray)) {
53 53
             return 500;
54 54
         }
55 55
 
Please login to merge, or discard this patch.
packages/framework/src/Concerns/FrontMatter/Schemas/PageSchema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@
 block discarded – undo
38 38
 
39 39
     protected function makeCanonicalUrl(): ?string
40 40
     {
41
-        if (! empty($this->matter('canonicalUrl'))) {
41
+        if (!empty($this->matter('canonicalUrl'))) {
42 42
             return $this->matter('canonicalUrl');
43 43
         }
44 44
 
45
-        if (Hyde::hasSiteUrl() && ! empty($this->identifier)) {
45
+        if (Hyde::hasSiteUrl() && !empty($this->identifier)) {
46 46
             return $this->getRoute()->getQualifiedUrl();
47 47
         }
48 48
 
Please login to merge, or discard this patch.
packages/framework/src/Models/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
 
139 139
     public function getLink(): string
140 140
     {
141
-        if (! $this->getSource()) {
141
+        if (!$this->getSource()) {
142 142
             return '';
143 143
         }
144 144
 
Please login to merge, or discard this patch.
packages/framework/src/Actions/FindsContentLengthForImageObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     {
68 68
         $path = Hyde::path('_media/'.$this->image->getSource());
69 69
 
70
-        if (! file_exists($path)) {
70
+        if (!file_exists($path)) {
71 71
             $this->write(' > <comment>Warning:</comment> Could not find image file at '.$path.'!');
72 72
             $this->write('         <fg=gray>   Using default content length of 0. '.'</>');
73 73
 
Please login to merge, or discard this patch.
packages/framework/src/Contracts/AbstractPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             return property_exists($this, $key) || $this->matter->has($key);
129 129
         }
130 130
 
131
-        return ! blank($this->get($key));
131
+        return !blank($this->get($key));
132 132
     }
133 133
 
134 134
     /** @inheritDoc */
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
     public function showInNavigation(): bool
185 185
     {
186
-        return ! $this->navigation['hidden'];
186
+        return !$this->navigation['hidden'];
187 187
     }
188 188
 
189 189
     public function navigationMenuPriority(): int
Please login to merge, or discard this patch.
packages/framework/src/Models/Metadata/LinkItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
             return '<link rel="'.e($this->rel).'" href="'.e($this->href).'">';
17 17
         }
18 18
 
19
-        $attributes = collect($this->attr)->map(function ($value, $key) {
19
+        $attributes = collect($this->attr)->map(function($value, $key) {
20 20
             return e($key).'="'.e($value).'"';
21 21
         })->implode(' ');
22 22
 
Please login to merge, or discard this patch.
packages/framework/src/HydeKernel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
     public function pages(): PageCollection
103 103
     {
104
-        if (! $this->booted) {
104
+        if (!$this->booted) {
105 105
             $this->boot();
106 106
         }
107 107
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
     public function routes(): RouteCollection
112 112
     {
113
-        if (! $this->booted) {
113
+        if (!$this->booted) {
114 114
             $this->boot();
115 115
         }
116 116
 
Please login to merge, or discard this patch.
packages/framework/src/PageCollection.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 getPages(?string $pageClass = null): self
36 36
     {
37
-        return ! $pageClass ? $this : $this->filter(function (PageContract $page) use ($pageClass): bool {
37
+        return !$pageClass ? $this : $this->filter(function(PageContract $page) use ($pageClass) : bool {
38 38
             return $page instanceof $pageClass;
39 39
         });
40 40
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     protected function discoverPagesFor(string $pageClass): void
64 64
     {
65
-        $this->parsePagesFor($pageClass)->each(function ($page) {
65
+        $this->parsePagesFor($pageClass)->each(function($page) {
66 66
             $this->discover($page);
67 67
         });
68 68
     }
Please login to merge, or discard this patch.