Test Failed
Pull Request — master (#254)
by Caen
04:45
created
framework/src/Concerns/Internal/TransfersMediaAssetsForBuildCommands.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         if ($this->canRunBuildAction($collection, 'Media Assets', 'Transferring')) {
27 27
             $this->withProgressBar(
28 28
                 $collection,
29
-                function ($filepath) {
29
+                function($filepath) {
30 30
                     copy($filepath, Hyde::getSiteOutputPath('media/'.basename($filepath)));
31 31
                 }
32 32
             );
Please login to merge, or discard this patch.
packages/framework/src/Concerns/Internal/FileHelpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,11 +161,11 @@
 block discarded – undo
161 161
      */
162 162
     public static function copy(string $from, string $to, bool $force = false): bool|int
163 163
     {
164
-        if (! file_exists($from)) {
164
+        if (!file_exists($from)) {
165 165
             return 404;
166 166
         }
167 167
 
168
-        if (file_exists($to) && ! $force) {
168
+        if (file_exists($to) && !$force) {
169 169
             return 409;
170 170
         }
171 171
 
Please login to merge, or discard this patch.
packages/framework/src/Concerns/HasDocumentationSidebarCategories.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     {
19 19
         $this->assembleCategories();
20 20
 
21
-        return ! empty($this->categories);
21
+        return !empty($this->categories);
22 22
     }
23 23
 
24 24
     public function getCategories(): array
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function getItemsInCategory(string $category): DocumentationSidebar
32 32
     {
33
-        return $this->sidebar->filter(function ($item) use ($category) {
33
+        return $this->sidebar->filter(function($item) use ($category) {
34 34
             return $item->category === Str::slug($category);
35 35
         })->sortBy('priority')->values();
36 36
     }
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
     {
40 40
         foreach ($this->sidebar->sortItems() as $item) {
41 41
             if (isset($item->category)) {
42
-                if (! in_array($item->category, $this->categories)) {
42
+                if (!in_array($item->category, $this->categories)) {
43 43
                     $this->categories[] = $item->category;
44 44
                 }
45 45
             }
46 46
         }
47 47
 
48
-        if (! empty($this->categories)) {
48
+        if (!empty($this->categories)) {
49 49
             $this->setCategoryOfUncategorizedItems();
50 50
         }
51 51
     }
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
     protected function setCategoryOfUncategorizedItems(): void
54 54
     {
55 55
         foreach ($this->sidebar as $item) {
56
-            if (! isset($item->category)) {
56
+            if (!isset($item->category)) {
57 57
                 $item->category = 'other';
58 58
 
59
-                if (! in_array('other', $this->categories)) {
59
+                if (!in_array('other', $this->categories)) {
60 60
                     $this->categories[] = 'other';
61 61
                 }
62 62
             }
Please login to merge, or discard this patch.
packages/framework/src/Concerns/CanBeInNavigation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         }
27 27
 
28 28
         if ($this instanceof DocumentationPage) {
29
-            return $this->slug === 'index' && ! in_array('docs', config('hyde.navigation.exclude', []));
29
+            return $this->slug === 'index' && !in_array('docs', config('hyde.navigation.exclude', []));
30 30
         }
31 31
 
32 32
         if ($this instanceof AbstractMarkdownPage) {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             return config('hyde.navigation.labels.home', 'Home');
100 100
         }
101 101
 
102
-        if (isset($this->title) && ! blank($this->title)) {
102
+        if (isset($this->title) && !blank($this->title)) {
103 103
             return $this->title;
104 104
         }
105 105
 
Please login to merge, or discard this patch.
packages/framework/src/Concerns/ValidatesExistence.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $filepath = $model::getSourceDirectory().'/'.
24 24
             $slug.$model::getFileExtension();
25 25
 
26
-        if (! file_exists(Hyde::path($filepath))) {
26
+        if (!file_exists(Hyde::path($filepath))) {
27 27
             throw new FileNotFoundException($filepath);
28 28
         }
29 29
     }
Please login to merge, or discard this patch.
packages/framework/src/Concerns/HasDynamicTitle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     public function constructDynamicTitle(): void
17 17
     {
18
-        if (! isset($this->title) || $this->title === '') {
18
+        if (!isset($this->title) || $this->title === '') {
19 19
             $this->title = $this->findTitleForDocument();
20 20
         }
21 21
     }
Please login to merge, or discard this patch.
packages/framework/src/Concerns/InteractsWithDirectories.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function needsDirectory(string $directory): void
16 16
     {
17
-        if (! file_exists($directory)) {
17
+        if (!file_exists($directory)) {
18 18
             mkdir($directory, recursive: true);
19 19
         }
20 20
     }
Please login to merge, or discard this patch.
packages/framework/src/Helpers/Meta.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         foreach (array_reverse($meta) as $metaItem) {
43 43
             $substring = substr($metaItem, 6, strpos($metaItem, ' content="') - 6);
44 44
 
45
-            if (! in_array($substring, $existing)) {
45
+            if (!in_array($substring, $existing)) {
46 46
                 $array[] = $metaItem;
47 47
                 $existing[] = $substring;
48 48
             }
Please login to merge, or discard this patch.
packages/realtime-compiler/src/Routing/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         }
48 48
 
49 49
         // Temporary backwards compatibility for versions less than Hyde/Framework v0.48.0-beta
50
-        if (! class_exists('\Hyde\Framework\Services\RoutingService')) {
50
+        if (!class_exists('\Hyde\Framework\Services\RoutingService')) {
51 51
             return LegacyPageRouter::handle($this->request);
52 52
         }
53 53
 
Please login to merge, or discard this patch.