@@ -111,8 +111,8 @@ |
||
111 | 111 | */ |
112 | 112 | public function __toString() |
113 | 113 | { |
114 | - return ($this->type ? $this->type . ' ' : '') |
|
115 | - . '$' . $this->variableName |
|
116 | - . ($this->description ? ' ' . $this->description : ''); |
|
114 | + return ($this->type ? $this->type.' ' : '') |
|
115 | + . '$'.$this->variableName |
|
116 | + . ($this->description ? ' '.$this->description : ''); |
|
117 | 117 | } |
118 | 118 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | $matches = []; |
65 | - if (!preg_match('/^(' . self::REGEX_VECTOR . ')\s*(.+)?$/sux', $body, $matches)) { |
|
65 | + if (!preg_match('/^('.self::REGEX_VECTOR.')\s*(.+)?$/sux', $body, $matches)) { |
|
66 | 66 | return new static( |
67 | 67 | null, |
68 | 68 | null !== $descriptionFactory ? $descriptionFactory->create($body, $context) : null |
@@ -92,6 +92,6 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function __toString() |
94 | 94 | { |
95 | - return $this->version . ($this->description ? ' ' . $this->description->render() : ''); |
|
95 | + return $this->version.($this->description ? ' '.$this->description->render() : ''); |
|
96 | 96 | } |
97 | 97 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | $matches = []; |
65 | - if (!preg_match('/^(' . self::REGEX_VECTOR . ')\s*(.+)?$/sux', $body, $matches)) { |
|
65 | + if (!preg_match('/^('.self::REGEX_VECTOR.')\s*(.+)?$/sux', $body, $matches)) { |
|
66 | 66 | return null; |
67 | 67 | } |
68 | 68 | |
@@ -89,6 +89,6 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function __toString() |
91 | 91 | { |
92 | - return $this->version . ($this->description ? ' ' . $this->description->render() : ''); |
|
92 | + return $this->version.($this->description ? ' '.$this->description->render() : ''); |
|
93 | 93 | } |
94 | 94 | } |
@@ -26,6 +26,6 @@ |
||
26 | 26 | */ |
27 | 27 | public function format(Tag $tag) |
28 | 28 | { |
29 | - return trim('@' . $tag->getName() . ' ' . (string)$tag); |
|
29 | + return trim('@'.$tag->getName().' '.(string) $tag); |
|
30 | 30 | } |
31 | 31 | } |
@@ -42,6 +42,6 @@ |
||
42 | 42 | */ |
43 | 43 | public function format(Tag $tag) |
44 | 44 | { |
45 | - return '@' . $tag->getName() . str_repeat(' ', $this->maxLen - strlen($tag->getName()) + 1) . (string)$tag; |
|
45 | + return '@'.$tag->getName().str_repeat(' ', $this->maxLen - strlen($tag->getName()) + 1).(string) $tag; |
|
46 | 46 | } |
47 | 47 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | $matches = []; |
65 | - if (! preg_match('/^(' . self::REGEX_VECTOR . ')\s*(.+)?$/sux', $body, $matches)) { |
|
65 | + if (!preg_match('/^('.self::REGEX_VECTOR.')\s*(.+)?$/sux', $body, $matches)) { |
|
66 | 66 | return null; |
67 | 67 | } |
68 | 68 | |
@@ -89,6 +89,6 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function __toString() |
91 | 91 | { |
92 | - return $this->version . ($this->description ? ' ' . $this->description->render() : ''); |
|
92 | + return $this->version.($this->description ? ' '.$this->description->render() : ''); |
|
93 | 93 | } |
94 | 94 | } |
@@ -68,6 +68,6 @@ |
||
68 | 68 | |
69 | 69 | public function __toString() |
70 | 70 | { |
71 | - return $this->type . ' ' . $this->description; |
|
71 | + return $this->type.' '.$this->description; |
|
72 | 72 | } |
73 | 73 | } |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | Assert::integerish($startingLine); |
37 | 37 | Assert::nullOrIntegerish($lineCount); |
38 | 38 | |
39 | - $this->startingLine = (int)$startingLine; |
|
40 | - $this->lineCount = $lineCount !== null ? (int)$lineCount : null; |
|
39 | + $this->startingLine = (int) $startingLine; |
|
40 | + $this->lineCount = $lineCount !== null ? (int) $lineCount : null; |
|
41 | 41 | $this->description = $description; |
42 | 42 | } |
43 | 43 | |
@@ -55,9 +55,9 @@ discard block |
||
55 | 55 | |
56 | 56 | // Starting line / Number of lines / Description |
57 | 57 | if (preg_match('/^([1-9]\d*)\s*(?:((?1))\s+)?(.*)$/sux', $body, $matches)) { |
58 | - $startingLine = (int)$matches[1]; |
|
58 | + $startingLine = (int) $matches[1]; |
|
59 | 59 | if (isset($matches[2]) && $matches[2] !== '') { |
60 | - $lineCount = (int)$matches[2]; |
|
60 | + $lineCount = (int) $matches[2]; |
|
61 | 61 | } |
62 | 62 | $description = $matches[3]; |
63 | 63 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | public function __toString() |
91 | 91 | { |
92 | 92 | return $this->startingLine |
93 | - . ($this->lineCount !== null ? ' ' . $this->lineCount : '') |
|
94 | - . ($this->description ? ' ' . $this->description->render() : ''); |
|
93 | + . ($this->lineCount !== null ? ' '.$this->lineCount : '') |
|
94 | + . ($this->description ? ' '.$this->description->render() : ''); |
|
95 | 95 | } |
96 | 96 | } |
@@ -67,6 +67,6 @@ |
||
67 | 67 | |
68 | 68 | public function __toString() |
69 | 69 | { |
70 | - return $this->type . ' ' . $this->description; |
|
70 | + return $this->type.' '.$this->description; |
|
71 | 71 | } |
72 | 72 | } |