Passed
Push — master ( d94c8e...28d464 )
by Caen
02:56 queued 12s
created
packages/framework/src/Commands/HydeBuildSitemapCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function handle(): int
37 37
     {
38
-        if (! $this->runPreflightCheck()) {
38
+        if (!$this->runPreflightCheck()) {
39 39
             return 1;
40 40
         }
41 41
 
42
-        $this->action('Generating sitemap', function () {
42
+        $this->action('Generating sitemap', function() {
43 43
             file_put_contents(
44 44
                 Hyde::getSiteOutputPath('sitemap.xml'),
45 45
                 SitemapService::generateSitemap()
@@ -51,17 +51,17 @@  discard block
 block discarded – undo
51 51
 
52 52
     protected function runPreflightCheck(): bool
53 53
     {
54
-        if (! Features::sitemap()) {
54
+        if (!Features::sitemap()) {
55 55
             $this->error('Cannot generate sitemap.xml, please check your configuration.');
56 56
 
57
-            if (! Hyde::hasSiteUrl()) {
57
+            if (!Hyde::hasSiteUrl()) {
58 58
                 $this->warn('Hint: You don\'t have a site URL configured. Check config/hyde.php');
59 59
             }
60 60
             if (config('site.generate_sitemap', true) !== true) {
61 61
                 $this->warn('Hint: You have disabled sitemap generation in config/hyde.php');
62 62
                 $this->line(' > You can enable sitemap generation by setting <info>`site.generate_sitemap`</> to <info>`true`</>');
63 63
             }
64
-            if (! extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
64
+            if (!extension_loaded('simplexml') || config('testing.mock_disabled_extensions', false) === true) {
65 65
                 $this->warn('Hint: You don\'t have the <info>`simplexml`</> extension installed. Check your PHP installation.');
66 66
             }
67 67
 
Please login to merge, or discard this patch.
packages/framework/src/Commands/HydeBuildRssFeedCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@
 block discarded – undo
35 35
      */
36 36
     public function handle(): int
37 37
     {
38
-        if (! Features::rss()) {
38
+        if (!Features::rss()) {
39 39
             $this->error('Cannot generate an RSS feed, please check your configuration.');
40 40
 
41 41
             return 1;
42 42
         }
43 43
 
44
-        $this->action('Generating RSS feed', function () {
44
+        $this->action('Generating RSS feed', function() {
45 45
             file_put_contents(
46 46
                 Hyde::getSiteOutputPath(RssFeedService::getDefaultOutputFilename()),
47 47
                 RssFeedService::generateFeed()
Please login to merge, or discard this patch.
packages/framework/src/Commands/HydeBuildSearchCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function handle(): int
39 39
     {
40
-        $this->action('Generating documentation site search index', function () {
40
+        $this->action('Generating documentation site search index', function() {
41 41
             $expected = $this->guesstimateGenerationTime();
42 42
             if ($expected > 0) {
43 43
                 $this->line("<fg=gray> > This will take an estimated $expected seconds. Terminal may seem non-responsive.</>");
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         }, sprintf('Created <info>%s</info>', GeneratesDocumentationSearchIndexFile::$filePath));
48 48
 
49 49
         if (config('docs.create_search_page', true)) {
50
-            $this->action('Generating search page', function () {
50
+            $this->action('Generating search page', function() {
51 51
                 file_put_contents(
52 52
                     Hyde::path(sprintf('_site/%s/search.html',
53 53
                         config('docs.output_directory', 'docs')
Please login to merge, or discard this patch.