Passed
Branch master (0f3797)
by Caen
03:06
created
packages/framework/src/Framework/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.
monorepo/release.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 echo "Short version: $shortVersion\n";
23 23
 $composerJson = json_decode(file_get_contents(__DIR__.'./../../packages/hyde/composer.json'), true);
24 24
 $composerJson['require']['hyde/framework'] = "^0.$shortVersion";
25
-file_put_contents(__DIR__.'./../../packages/hyde/composer.json', json_encode($composerJson, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
25
+file_put_contents(__DIR__.'./../../packages/hyde/composer.json', json_encode($composerJson, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));
26 26
 
27 27
 echo "Transforming upcoming release notes... \n";
28 28
 
Please login to merge, or discard this patch.
packages/framework/src/Framework/Actions/CreatesNewPageSourceFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,14 +121,14 @@
 block discarded – undo
121 121
 
122 122
     protected function validateType(string $pageClass): void
123 123
     {
124
-        if (! in_array($pageClass, [MarkdownPage::class, BladePage::class, DocumentationPage::class])) {
124
+        if (!in_array($pageClass, [MarkdownPage::class, BladePage::class, DocumentationPage::class])) {
125 125
             throw new UnsupportedPageTypeException('The page type must be either "markdown", "blade", or "documentation"');
126 126
         }
127 127
     }
128 128
 
129 129
     protected function failIfFileCannotBeSaved(string $path): void
130 130
     {
131
-        if (file_exists($path) && ! $this->force) {
131
+        if (file_exists($path) && !$this->force) {
132 132
             throw new FileConflictException($path);
133 133
         }
134 134
     }
Please login to merge, or discard this patch.
packages/framework/src/Console/Commands/MakePostCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $this->displaySelections($creator);
36 36
 
37
-        if (! $this->confirm('Do you wish to continue?', true)) {
37
+        if (!$this->confirm('Do you wish to continue?', true)) {
38 38
             $this->info('Aborting.');
39 39
 
40 40
             return 130;
Please login to merge, or discard this patch.
framework/src/Framework/Features/XmlGenerators/SitemapGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     public function generate(): static
55 55
     {
56
-        Route::all()->each(function (Route $route): void {
56
+        Route::all()->each(function(Route $route): void {
57 57
             $this->addRoute($route);
58 58
         });
59 59
 
Please login to merge, or discard this patch.
framework/src/Framework/Features/XmlGenerators/BaseXmlGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     protected function escape(string $string): string
46 46
     {
47
-        return htmlspecialchars($string, ENT_XML1 | ENT_COMPAT, 'UTF-8');
47
+        return htmlspecialchars($string, ENT_XML1|ENT_COMPAT, 'UTF-8');
48 48
     }
49 49
 
50 50
     protected function addChild(SimpleXMLElement $element, string $name, string $value): SimpleXMLElement
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Metadata/GlobalMetadataBag.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
         // Reject any metadata from the global metadata bag that is already present in the page metadata bag.
50 50
 
51 51
         foreach (['links', 'metadata', 'properties', 'generics'] as $type) {
52
-            $global->$type = array_filter($global->$type, fn (Element $element): bool => ! in_array($element->uniqueKey(),
52
+            $global->$type = array_filter($global->$type, fn (Element $element): bool => !in_array($element->uniqueKey(),
53 53
                 array_map(fn (Element $element): string => $element->uniqueKey(), $page->metadata->$type)
54 54
             ));
55 55
         }
Please login to merge, or discard this patch.
packages/framework/src/Console/Commands/PublishHomepageCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $selected = $this->parseSelection();
34 34
 
35
-        if (! Homepages::exists($selected)) {
35
+        if (!Homepages::exists($selected)) {
36 36
             $this->error("Homepage $selected does not exist.");
37 37
 
38 38
             return 404;
39 39
         }
40 40
 
41
-        if (! $this->canExistingFileBeOverwritten()) {
41
+        if (!$this->canExistingFileBeOverwritten()) {
42 42
             $this->error('A modified index.blade.php file already exists. Use --force to overwrite.');
43 43
 
44 44
             return 409;
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     protected function formatPublishableChoices(): array
71 71
     {
72
-        return $this->getTemplateOptions()->map(function (array $option, string $key): string {
72
+        return $this->getTemplateOptions()->map(function(array $option, string $key): string {
73 73
             return  "<comment>$key</comment>: {$option['description']}";
74 74
         })->values()->toArray();
75 75
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             return true;
91 91
         }
92 92
 
93
-        if (! file_exists(Hyde::getBladePagePath('index.blade.php'))) {
93
+        if (!file_exists(Hyde::getBladePagePath('index.blade.php'))) {
94 94
             return true;
95 95
         }
96 96
 
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Templates/PublishableView.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
         $path = static::getOutputPath();
19 19
 
20
-        if (file_exists($path) && ! $force) {
20
+        if (file_exists($path) && !$force) {
21 21
             return false;
22 22
         }
23 23
 
Please login to merge, or discard this patch.