Passed
Push — master ( d74bc1...076484 )
by Caen
03:44 queued 14s
created
packages/framework/src/Services/MarkdownService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function addExtension(string $extensionClassName): void
56 56
     {
57
-        if (! in_array($extensionClassName, $this->extensions)) {
57
+        if (!in_array($extensionClassName, $this->extensions)) {
58 58
             $this->extensions[] = $extensionClassName;
59 59
         }
60 60
     }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
     public function addFeature(string $feature): static
158 158
     {
159
-        if (! in_array($feature, $this->features)) {
159
+        if (!in_array($feature, $this->features)) {
160 160
             $this->features[] = $feature;
161 161
         }
162 162
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
     protected function determineIfTorchlightAttributionShouldBeInjected(): bool
210 210
     {
211
-        return ! $this->isDocumentationPage()
211
+        return !$this->isDocumentationPage()
212 212
             && config('torchlight.attribution.enabled', true)
213 213
             && str_contains($this->html, 'Syntax highlighted by torchlight.dev');
214 214
     }
Please login to merge, or discard this patch.
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.
packages/framework/src/Foundation/Concerns/HandlesFoundationCollections.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 
150 150
     protected function needsToBeBooted(): void
151 151
     {
152
-        if (! $this->booted) {
152
+        if (!$this->booted) {
153 153
             $this->boot();
154 154
         }
155 155
     }
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 static 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/Services/DocumentationSearchService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     {
51 51
         /** @var DocumentationPage $page */
52 52
         foreach (DocumentationPage::all() as $page) {
53
-            if (! in_array($page->identifier, config('docs.exclude_from_search', []))) {
53
+            if (!in_array($page->identifier, config('docs.exclude_from_search', []))) {
54 54
                 $this->searchIndex->push(
55 55
                     $this->generatePageEntry($page)
56 56
                 );
Please login to merge, or discard this patch.
packages/framework/src/helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 use Hyde\Framework\HydeKernel;
4 4
 
5
-if (! function_exists('hyde')) {
5
+if (!function_exists('hyde')) {
6 6
     /**
7 7
      * Get the available HydeKernel instance.
8 8
      *
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     }
15 15
 }
16 16
 
17
-if (! function_exists('unslash')) {
17
+if (!function_exists('unslash')) {
18 18
     /**
19 19
      * Remove trailing slashes from the start and end of a string.
20 20
      *
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         /*
18 18
          * Enable auto-discovery.
19 19
          */
20
-        $this->app->singleton(PackageManifest::class, function () {
20
+        $this->app->singleton(PackageManifest::class, function() {
21 21
             return new PackageManifest(
22 22
                 new Filesystem,
23 23
                 $this->basePath(),
Please login to merge, or discard this patch.
packages/framework/src/Helpers/Includes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $path = static::path($filename);
26 26
 
27
-        if (! file_exists($path)) {
27
+        if (!file_exists($path)) {
28 28
             return $default;
29 29
         }
30 30
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $path = static::path(basename($filename, '.md').'.md');
38 38
 
39
-        if (! file_exists($path)) {
39
+        if (!file_exists($path)) {
40 40
             return $default === null ? null : Markdown::render($default);
41 41
         }
42 42
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $path = static::path(basename($filename, '.blade.php').'.blade.php');
50 50
 
51
-        if (! file_exists($path)) {
51
+        if (!file_exists($path)) {
52 52
             return $default === null ? null : Blade::render($default);
53 53
         }
54 54
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     protected static function needsDirectory(string $directory): void
59 59
     {
60
-        if (! file_exists($directory)) {
60
+        if (!file_exists($directory)) {
61 61
             mkdir($directory, recursive: true);
62 62
         }
63 63
     }
Please login to merge, or discard this patch.
framework/src/Actions/Constructors/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.