@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | protected function processCommandTag($tag) |
| 37 | 37 | { |
| 38 | 38 | if (!$tag->hasWordAndDescription($matches)) { |
| 39 | - throw new \Exception('Could not determine command name from tag ' . (string)$tag); |
|
| 39 | + throw new \Exception('Could not determine command name from tag '.(string)$tag); |
|
| 40 | 40 | } |
| 41 | 41 | $commandName = $matches['word']; |
| 42 | 42 | $this->commandInfo->setName($commandName); |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | { |
| 119 | 119 | $lines = explode("\n", $tag->getContent()); |
| 120 | 120 | $usage = trim(array_shift($lines)); |
| 121 | - $description = static::removeLineBreaks(implode("\n", array_map(function ($line) { |
|
| 121 | + $description = static::removeLineBreaks(implode("\n", array_map(function($line) { |
|
| 122 | 122 | return trim($line); |
| 123 | 123 | }, $lines))); |
| 124 | 124 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | protected function processReturnTag($tag) |
| 140 | 140 | { |
| 141 | 141 | if (!$tag->hasWordAndDescription($matches)) { |
| 142 | - throw new \Exception('Could not determine return type from tag ' . (string)$tag); |
|
| 142 | + throw new \Exception('Could not determine return type from tag '.(string)$tag); |
|
| 143 | 143 | } |
| 144 | 144 | // TODO: look at namespace and `use` statments to make returnType a fqdn |
| 145 | 145 | $returnType = $matches['word']; |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | // Trim all of the lines individually. |
| 180 | 180 | $lines = |
| 181 | 181 | array_map( |
| 182 | - function ($line) { |
|
| 182 | + function($line) { |
|
| 183 | 183 | return trim($line); |
| 184 | 184 | }, |
| 185 | 185 | $lines |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | // Everything up to the first blank line goes in the description. |
| 189 | 189 | $description = array_shift($lines); |
| 190 | 190 | while (!empty($lines) && !empty(trim($lines[0]))) { |
| 191 | - $description .= ' ' . array_shift($lines); |
|
| 191 | + $description .= ' '.array_shift($lines); |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | // Everything else goes in the help. |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public static function splitTagAndContent($subject, &$matches) |
| 47 | 47 | { |
| 48 | - $regex = '/' . self::TAG_REGEX . self::DESCRIPTION_REGEX . '/'; |
|
| 48 | + $regex = '/'.self::TAG_REGEX.self::DESCRIPTION_REGEX.'/'; |
|
| 49 | 49 | return preg_match($regex, $subject, $matches); |
| 50 | 50 | } |
| 51 | 51 | |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | public function __toString() |
| 94 | 94 | { |
| 95 | - return '@' . $this->getTag() . ' ' . $this->getContent(); |
|
| 95 | + return '@'.$this->getTag().' '.$this->getContent(); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | public function hasVariableAndDescription(&$matches) |
| 124 | 124 | { |
| 125 | - $regex = '/' . self::VARIABLE_OR_WORD_REGEX . self::DESCRIPTION_REGEX . '/'; |
|
| 125 | + $regex = '/'.self::VARIABLE_OR_WORD_REGEX.self::DESCRIPTION_REGEX.'/'; |
|
| 126 | 126 | return preg_match($regex, $this->getContent(), $matches); |
| 127 | 127 | } |
| 128 | 128 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | */ |
| 137 | 137 | public function hasTypeVariableAndDescription(&$matches) |
| 138 | 138 | { |
| 139 | - $regex = '/' . self::TYPE_REGEX . self::VARIABLE_REGEX . self::DESCRIPTION_REGEX . '/'; |
|
| 139 | + $regex = '/'.self::TYPE_REGEX.self::VARIABLE_REGEX.self::DESCRIPTION_REGEX.'/'; |
|
| 140 | 140 | return preg_match($regex, $this->getContent(), $matches); |
| 141 | 141 | } |
| 142 | 142 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | */ |
| 150 | 150 | public function hasWordAndDescription(&$matches) |
| 151 | 151 | { |
| 152 | - $regex = '/' . self::WORD_REGEX . self::DESCRIPTION_REGEX . '/'; |
|
| 152 | + $regex = '/'.self::WORD_REGEX.self::DESCRIPTION_REGEX.'/'; |
|
| 153 | 153 | return preg_match($regex, $this->getContent(), $matches); |
| 154 | 154 | } |
| 155 | 155 | } |