@@ -26,6 +26,6 @@ |
||
26 | 26 | */ |
27 | 27 | public function format(Tag $tag) |
28 | 28 | { |
29 | - return '@' . $tag->getName() . ' ' . (string)$tag; |
|
29 | + return '@'.$tag->getName().' '.(string) $tag; |
|
30 | 30 | } |
31 | 31 | } |
@@ -72,6 +72,6 @@ |
||
72 | 72 | */ |
73 | 73 | public function __toString() |
74 | 74 | { |
75 | - return $this->link . ($this->description ? ' ' . $this->description->render() : ''); |
|
75 | + return $this->link.($this->description ? ' '.$this->description->render() : ''); |
|
76 | 76 | } |
77 | 77 | } |
@@ -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 | } |
@@ -78,6 +78,6 @@ |
||
78 | 78 | */ |
79 | 79 | public function __toString() |
80 | 80 | { |
81 | - return $this->refers . ' ' . $this->description->render(); |
|
81 | + return $this->refers.' '.$this->description->render(); |
|
82 | 82 | } |
83 | 83 | } |
@@ -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 | } |
@@ -36,14 +36,14 @@ discard block |
||
36 | 36 | public function getContent() |
37 | 37 | { |
38 | 38 | if (null === $this->description) { |
39 | - $filePath = '"' . $this->filePath . '"'; |
|
39 | + $filePath = '"'.$this->filePath.'"'; |
|
40 | 40 | if ($this->isURI) { |
41 | 41 | $filePath = $this->isUriRelative($this->filePath) |
42 | 42 | ? str_replace('%2F', '/', rawurlencode($this->filePath)) |
43 | 43 | :$this->filePath; |
44 | 44 | } |
45 | 45 | |
46 | - $this->description = $filePath . ' ' . parent::getContent(); |
|
46 | + $this->description = $filePath.' '.parent::getContent(); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | return $this->description; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | public static function create($body) |
56 | 56 | { |
57 | 57 | // File component: File path in quotes or File URI / Source information |
58 | - if (! preg_match('/^(?:\"([^\"]+)\"|(\S+))(?:\s+(.*))?$/sux', $body, $matches)) { |
|
58 | + if (!preg_match('/^(?:\"([^\"]+)\"|(\S+))(?:\s+(.*))?$/sux', $body, $matches)) { |
|
59 | 59 | return null; |
60 | 60 | } |
61 | 61 | |
@@ -73,9 +73,9 @@ discard block |
||
73 | 73 | |
74 | 74 | // Starting line / Number of lines / Description |
75 | 75 | if (preg_match('/^([1-9]\d*)\s*(?:((?1))\s+)?(.*)$/sux', $matches[3], $matches)) { |
76 | - $startingLine = (int)$matches[1]; |
|
76 | + $startingLine = (int) $matches[1]; |
|
77 | 77 | if (isset($matches[2]) && $matches[2] !== '') { |
78 | - $lineCount = (int)$matches[2]; |
|
78 | + $lineCount = (int) $matches[2]; |
|
79 | 79 | } |
80 | 80 | $description = $matches[3]; |
81 | 81 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | public function setFileURI($uri) |
126 | 126 | { |
127 | - $this->isURI = true; |
|
127 | + $this->isURI = true; |
|
128 | 128 | $this->description = null; |
129 | 129 | |
130 | 130 | $this->filePath = $this->isUriRelative($uri) |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | public function __toString() |
143 | 143 | { |
144 | - return $this->filePath . ($this->description ? ' ' . $this->description->render() : ''); |
|
144 | + return $this->filePath.($this->description ? ' '.$this->description->render() : ''); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |
@@ -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 | } |
@@ -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 | } |
@@ -133,9 +133,9 @@ |
||
133 | 133 | */ |
134 | 134 | public function __toString() |
135 | 135 | { |
136 | - return ($this->type ? $this->type . ' ' : '') |
|
136 | + return ($this->type ? $this->type.' ' : '') |
|
137 | 137 | . ($this->isVariadic() ? '...' : '') |
138 | - . '$' . $this->variableName |
|
139 | - . ($this->description ? ' ' . $this->description : ''); |
|
138 | + . '$'.$this->variableName |
|
139 | + . ($this->description ? ' '.$this->description : ''); |
|
140 | 140 | } |
141 | 141 | } |