Passed
Push — master ( fe7a8a...4c04ba )
by Arne
01:12 queued 11s
created
src/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
         }
222 222
         $cn = strtolower($class);
223 223
         if (isset($classes[$cn])) {
224
-            require __DIR__ . $classes[$cn];
224
+            require __DIR__.$classes[$cn];
225 225
         }
226 226
     },
227 227
     true,
Please login to merge, or discard this patch.
src/CLI.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\phpDox;
3 3
 
4 4
 use TheSeer\fDOM\fDOMException;
@@ -77,14 +77,14 @@  discard block
 block discarded – undo
77 77
             }
78 78
 
79 79
             $logger = $this->factory->getLogger();
80
-            $logger->log("Using config file '" . $config->getConfigFile()->getPathname() . "'");
80
+            $logger->log("Using config file '".$config->getConfigFile()->getPathname()."'");
81 81
 
82 82
             $app = $this->factory->getApplication();
83 83
 
84 84
             $defBootstrapFiles = new FileInfoCollection();
85
-            $defBootstrapFiles->add(new FileInfo(__DIR__ . '/../bootstrap/backends.php'));
86
-            $defBootstrapFiles->add(new FileInfo(__DIR__ . '/../bootstrap/enrichers.php'));
87
-            $defBootstrapFiles->add(new FileInfo(__DIR__ . '/../bootstrap/engines.php'));
85
+            $defBootstrapFiles->add(new FileInfo(__DIR__.'/../bootstrap/backends.php'));
86
+            $defBootstrapFiles->add(new FileInfo(__DIR__.'/../bootstrap/enrichers.php'));
87
+            $defBootstrapFiles->add(new FileInfo(__DIR__.'/../bootstrap/engines.php'));
88 88
 
89 89
             $bootstrap = $app->runBootstrap($defBootstrapFiles);
90 90
             $bootstrap->load($config->getCustomBootstrapFiles(), false);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                 return self::ExitOK;
109 109
             }
110 110
 
111
-            foreach ($config->getProjects() as $projectName => $projectConfig) {
111
+            foreach($config->getProjects() as $projectName => $projectConfig) {
112 112
                 $logger->log("Starting to process project '$projectName'");
113 113
 
114 114
                 $app->runConfigChangeDetection(
@@ -133,19 +133,19 @@  discard block
 block discarded – undo
133 133
         } catch (EnvironmentException $e) {
134 134
             $this->showVersion();
135 135
             \fwrite(\STDERR, 'Sorry, but your PHP environment is currently not able to run phpDox due to');
136
-            \fwrite(\STDERR, "\nthe following issue(s):\n\n" . $e->getMessage() . "\n\n");
136
+            \fwrite(\STDERR, "\nthe following issue(s):\n\n".$e->getMessage()."\n\n");
137 137
             \fwrite(\STDERR, "Please adjust your PHP configuration and try again.\n\n");
138 138
 
139 139
             return self::ExitEnvError;
140 140
         } catch (CLIOptionsException $e) {
141 141
             $this->showVersion();
142
-            \fwrite(\STDERR, $e->getMessage() . "\n\n");
142
+            \fwrite(\STDERR, $e->getMessage()."\n\n");
143 143
             \fwrite(\STDERR, $options->getHelpScreen());
144 144
 
145 145
             return self::ExitParamError;
146 146
         } catch (ConfigLoaderException $e) {
147 147
             $this->showVersion();
148
-            \fwrite(\STDERR, "\nAn error occured while trying to load the configuration file:\n\n" . $e->getMessage() . "\n\n");
148
+            \fwrite(\STDERR, "\nAn error occured while trying to load the configuration file:\n\n".$e->getMessage()."\n\n");
149 149
 
150 150
             if ($e->getCode() == ConfigLoaderException::NeitherCandidateExists) {
151 151
                 \fwrite(\STDERR, "Using --skel might get you started.\n\n");
@@ -153,11 +153,11 @@  discard block
 block discarded – undo
153 153
 
154 154
             return self::ExitConfigError;
155 155
         } catch (ConfigException $e) {
156
-            \fwrite(\STDERR, "\nYour configuration seems to be corrupted:\n\n\t" . $e->getMessage() . "\n\nPlease verify your configuration xml file.\n\n");
156
+            \fwrite(\STDERR, "\nYour configuration seems to be corrupted:\n\n\t".$e->getMessage()."\n\nPlease verify your configuration xml file.\n\n");
157 157
 
158 158
             return self::ExitConfigError;
159 159
         } catch (ApplicationException $e) {
160
-            \fwrite(\STDERR, "\nAn application error occured while processing:\n\n\t" . $e->getMessage() . "\n\nPlease verify your configuration.\n\n");
160
+            \fwrite(\STDERR, "\nAn application error occured while processing:\n\n\t".$e->getMessage()."\n\nPlease verify your configuration.\n\n");
161 161
 
162 162
             return self::ExitExecError;
163 163
         } catch (\Exception $e) {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             return;
187 187
         }
188 188
         $shown = true;
189
-        print $this->version->getInfoString() . "\n\n";
189
+        print $this->version->getInfoString()."\n\n";
190 190
     }
191 191
 
192 192
     private function showSkeletonConfig($strip): void {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     private function showList($title, array $list): void {
198 198
         print "\nThe following $title are registered:\n\n";
199 199
 
200
-        foreach ($list as $name => $desc) {
200
+        foreach($list as $name => $desc) {
201 201
             \printf("   %s \t %s\n", $name, $desc);
202 202
         }
203 203
         print "\n\n";
Please login to merge, or discard this patch.
src/generator/events/NamespaceTraitsEndEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\phpDox\Generator;
3 3
 
4 4
 class NamespaceTraitsEndEvent extends AbstractEvent {
Please login to merge, or discard this patch.
src/generator/events/PHPDoxTraitsEndEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\phpDox\Generator;
3 3
 
4 4
 class PHPDoxTraitsEndEvent extends AbstractEvent {
Please login to merge, or discard this patch.
src/generator/events/ClassMemberEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\phpDox\Generator;
3 3
 
4 4
 class ClassMemberEvent extends MemberEvent {
Please login to merge, or discard this patch.
src/generator/events/PHPDoxInterfacesStartEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\phpDox\Generator;
3 3
 
4 4
 class PHPDoxInterfacesStartEvent extends AbstractEvent {
Please login to merge, or discard this patch.
src/generator/events/AbstractClassEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\phpDox\Generator;
3 3
 
4 4
 abstract class AbstractClassEvent extends AbstractEvent {
Please login to merge, or discard this patch.
src/generator/events/ConstantEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\phpDox\Generator;
3 3
 
4 4
 abstract class ConstantEvent extends AbstractEvent {
Please login to merge, or discard this patch.
src/generator/events/NamespaceStartEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 namespace TheSeer\phpDox\Generator;
3 3
 
4 4
 class NamespaceStartEvent extends AbstractEvent {
Please login to merge, or discard this patch.