Passed
Push — master ( 81ca18...32dd3a )
by Caen
03:03 queued 12s
created
packages/framework/src/Framework/Services/ValidationService.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     {
108 108
         if (! Features::enabled(Features::torchlight())) {
109 109
             return $result->skip('Check a Torchlight API token is set')
110
-               ->withTip('Torchlight is an API for code syntax highlighting. You can enable it in the Hyde config.');
110
+                ->withTip('Torchlight is an API for code syntax highlighting. You can enable it in the Hyde config.');
111 111
         }
112 112
 
113 113
         if (config('torchlight.token') !== null) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     public function check_documentation_site_has_an_index_page(Result $result): Result
65 65
     {
66
-        if (! Features::hasDocumentationPages()) {
66
+        if (!Features::hasDocumentationPages()) {
67 67
             return $result->skip('Does documentation site have an index page?')
68 68
                 ->withTip('Skipped because: The documentation page feature is disabled in config');
69 69
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
     public function check_a_torchlight_api_token_is_set(Result $result): Result
110 110
     {
111
-        if (! Features::enabled(Features::torchlight())) {
111
+        if (!Features::enabled(Features::torchlight())) {
112 112
             return $result->skip('Check a Torchlight API token is set')
113 113
                ->withTip('Torchlight is an API for code syntax highlighting. You can enable it in the Hyde config.');
114 114
         }
Please login to merge, or discard this patch.
packages/framework/src/Framework/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
-        \Hyde\Facades\Route::all()->each(function ($route) {
42
+        \Hyde\Facades\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/Framework/Services/DiscoveryService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@
 block discarded – undo
36 36
      */
37 37
     public static function getSourceFileListForModel(string $model): array
38 38
     {
39
-        if (! class_exists($model) || ! is_subclass_of($model, HydePage::class)) {
39
+        if (!class_exists($model) || !is_subclass_of($model, HydePage::class)) {
40 40
             throw new UnsupportedPageTypeException($model);
41 41
         }
42 42
 
43 43
         $files = [];
44
-        Hyde::files()->getSourceFiles($model)->each(function (File $file) use (&$files, $model) {
44
+        Hyde::files()->getSourceFiles($model)->each(function(File $file) use (&$files, $model) {
45 45
             $files[] = self::formatSlugForModel($model, $file->withoutDirectoryPrefix());
46 46
         });
47 47
 
Please login to merge, or discard this patch.
packages/framework/src/Framework/Services/DocumentationSearchService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     {
59 59
         /** @var \Hyde\Pages\DocumentationPage $page */
60 60
         foreach (DocumentationPage::all() as $page) {
61
-            if (! in_array($page->identifier, config('docs.exclude_from_search', []))) {
61
+            if (!in_array($page->identifier, config('docs.exclude_from_search', []))) {
62 62
                 $this->searchIndex->push(
63 63
                     $this->generatePageEntry($page)
64 64
                 );
Please login to merge, or discard this patch.
packages/framework/src/Framework/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.
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.