Completed
Pull Request — master (#130)
by Greg
01:45
created
src/Parser/Internal/BespokeDocBlockParser.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     protected function processCommandTag($tag)
63 63
     {
64 64
         if (!$tag->hasWordAndDescription($matches)) {
65
-            throw new \Exception('Could not determine command name from tag ' . (string)$tag);
65
+            throw new \Exception('Could not determine command name from tag '.(string)$tag);
66 66
         }
67 67
         $commandName = $matches['word'];
68 68
         $this->commandInfo->setName($commandName);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     protected function processArgumentTag($tag)
90 90
     {
91 91
         if (!$tag->hasVariable($matches)) {
92
-            throw new \Exception('Could not determine parameter name from tag ' . (string)$tag);
92
+            throw new \Exception('Could not determine parameter name from tag '.(string)$tag);
93 93
         }
94 94
         if ($matches['variable'] == $this->optionParamName()) {
95 95
             return;
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     protected function processOptionTag($tag)
104 104
     {
105 105
         if (!$tag->hasVariable($matches)) {
106
-            throw new \Exception('Could not determine parameter name from tag ' . (string)$tag);
106
+            throw new \Exception('Could not determine parameter name from tag '.(string)$tag);
107 107
         }
108 108
         $this->addOptionOrArgumentTag($tag, $this->commandInfo->options(), $matches['variable'], $matches['description']);
109 109
     }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     protected function processDefaultTag($tag)
123 123
     {
124 124
         if (!$tag->hasWordAndDescription($matches)) {
125
-            throw new \Exception('Could not determine parameter name from tag ' . (string)$tag);
125
+            throw new \Exception('Could not determine parameter name from tag '.(string)$tag);
126 126
         }
127 127
         $variableName = $matches['word'];
128 128
         $defaultValue = $this->interpretDefaultValue($matches['description']);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     {
144 144
         $lines = explode("\n", $tag->getContent());
145 145
         $usage = trim(array_shift($lines));
146
-        $description = static::removeLineBreaks(implode("\n", array_map(function ($line) {
146
+        $description = static::removeLineBreaks(implode("\n", array_map(function($line) {
147 147
             return trim($line);
148 148
         }, $lines)));
149 149
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     protected function processReturnTag($tag)
165 165
     {
166 166
         if (!$tag->hasWordAndDescription($matches)) {
167
-            throw new \Exception('Could not determine return type from tag ' . (string)$tag);
167
+            throw new \Exception('Could not determine return type from tag '.(string)$tag);
168 168
         }
169 169
         // Look at namespace and `use` statments to make returnType a fqdn
170 170
         $returnType = $matches['word'];
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         // Trim all of the lines individually.
215 215
         $lines =
216 216
             array_map(
217
-                function ($line) {
217
+                function($line) {
218 218
                     return trim($line);
219 219
                 },
220 220
                 $lines
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         // Everything up to the first blank line goes in the description.
224 224
         $description = array_shift($lines);
225 225
         while ($this->nextLineIsNotEmpty($lines)) {
226
-            $description .= ' ' . array_shift($lines);
226
+            $description .= ' '.array_shift($lines);
227 227
         }
228 228
 
229 229
         // Everything else goes in the help.
Please login to merge, or discard this patch.
src/Parser/Internal/FullyQualifiedClassCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         // If there is no 'use' statement for the className, then
36 36
         // generate an effective classname from the namespace
37 37
         if (!isset($this->classCache[$filename][$className])) {
38
-            $this->classCache[$filename][$className] = $namespaceName . '\\' . $className;
38
+            $this->classCache[$filename][$className] = $namespaceName.'\\'.$className;
39 39
         }
40 40
 
41 41
         fclose($handle);
Please login to merge, or discard this patch.