Passed
Push — master ( 67a175...8a4bfa )
by Caen
03:15 queued 12s
created
packages/framework/src/Framework/Factories/HydePageDataFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,11 +93,11 @@
 block discarded – undo
93 93
 
94 94
     private function getCanonicalUrl(): ?string
95 95
     {
96
-        if (! empty($this->matter('canonicalUrl'))) {
96
+        if (!empty($this->matter('canonicalUrl'))) {
97 97
             return $this->matter('canonicalUrl');
98 98
         }
99 99
 
100
-        if (Hyde::hasSiteUrl() && ! empty($this->identifier)) {
100
+        if (Hyde::hasSiteUrl() && !empty($this->identifier)) {
101 101
             return Hyde::url($this->outputPath);
102 102
         }
103 103
 
Please login to merge, or discard this patch.
framework/src/Framework/Concerns/Internal/SetsUpMarkdownConverter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,14 +65,14 @@
 block discarded – undo
65 65
 
66 66
     protected function registerPreProcessor(string $class, bool $when = true): void
67 67
     {
68
-        if (! in_array($class, $this->preprocessors) && $when) {
68
+        if (!in_array($class, $this->preprocessors) && $when) {
69 69
             $this->preprocessors[] = $class;
70 70
         }
71 71
     }
72 72
 
73 73
     protected function registerPostProcessor(string $class, bool $when = true): void
74 74
     {
75
-        if (! in_array($class, $this->postprocessors) && $when) {
75
+        if (!in_array($class, $this->postprocessors) && $when) {
76 76
             $this->postprocessors[] = $class;
77 77
         }
78 78
     }
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/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/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.
monorepo/HydeStan/vendor/php-console/console.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function line(string $message = ''): self
22 22
     {
23
-        return $this->write($message . PHP_EOL);
23
+        return $this->write($message.PHP_EOL);
24 24
     }
25 25
 
26 26
     public function newline(int $count = 1): self
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     }
55 55
     protected function ansi(string $string, string $color): string
56 56
     {
57
-        return "\033[" . $color . 'm' . $string . "\033[0m";
57
+        return "\033[".$color.'m'.$string."\033[0m";
58 58
     }
59 59
 
60 60
     protected function black(string $string): string
Please login to merge, or discard this patch.
packages/framework/src/Framework/Concerns/InteractsWithFrontMatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,6 @@
 block discarded – undo
42 42
      */
43 43
     public function has(string $key): bool
44 44
     {
45
-        return ! blank($this->data($key));
45
+        return !blank($this->data($key));
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
src/Markdown/Contracts/FrontMatter/SubSchemas/NavigationSchema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public const NAVIGATION_SCHEMA = [
14 14
         'label'     => 'string',
15 15
         'group'     => 'string', // Category is also supported
16
-        'hidden'    => 'bool',  // Visible is also supported (but obviously invert the value)
17
-        'priority'  => 'int',  // Order is also supported
16
+        'hidden'    => 'bool', // Visible is also supported (but obviously invert the value)
17
+        'priority'  => 'int', // Order is also supported
18 18
     ];
19 19
 }
Please login to merge, or discard this patch.