@@ -51,6 +51,6 @@ |
||
51 | 51 | */ |
52 | 52 | public function __toString() |
53 | 53 | { |
54 | - return '?' . $this->realType->__toString(); |
|
54 | + return '?'.$this->realType->__toString(); |
|
55 | 55 | } |
56 | 56 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | public function __construct($namespace, array $namespaceAliases = []) |
45 | 45 | { |
46 | 46 | $this->namespace = ('global' !== $namespace && 'default' !== $namespace) |
47 | - ? trim((string)$namespace, '\\') |
|
47 | + ? trim((string) $namespace, '\\') |
|
48 | 48 | : ''; |
49 | 49 | |
50 | 50 | foreach ($namespaceAliases as $alias => $fqnn) { |
@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function __construct(Fqsen $fqsen = null) |
37 | 37 | { |
38 | - if (strpos((string)$fqsen, '::') !== false || strpos((string)$fqsen, '()') !== false) { |
|
38 | + if (strpos((string) $fqsen, '::') !== false || strpos((string) $fqsen, '()') !== false) { |
|
39 | 39 | throw new \InvalidArgumentException( |
40 | 40 | 'Object types can only refer to a class, interface or trait but a method, function, constant or ' |
41 | - . 'property was received: ' . (string)$fqsen |
|
41 | + . 'property was received: '.(string) $fqsen |
|
42 | 42 | ); |
43 | 43 | } |
44 | 44 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function __toString() |
64 | 64 | { |
65 | 65 | if ($this->fqsen) { |
66 | - return (string)$this->fqsen; |
|
66 | + return (string) $this->fqsen; |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | return 'object'; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | if (isset($tag_line[0]) && ($tag_line[0] === '@')) { |
247 | 247 | $result[] = $tag_line; |
248 | 248 | } else { |
249 | - $result[count($result) - 1] .= "\n" . $tag_line; |
|
249 | + $result[count($result) - 1] .= "\n".$tag_line; |
|
250 | 250 | } |
251 | 251 | } |
252 | 252 | |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | // @codeCoverageIgnoreStart |
269 | 269 | // Can't simulate this; this only happens if there is an error with the parsing of the DocBlock that |
270 | 270 | // we didn't foresee. |
271 | - throw new \LogicException('A tag block started with text instead of an at-sign(@): ' . $tags); |
|
271 | + throw new \LogicException('A tag block started with text instead of an at-sign(@): '.$tags); |
|
272 | 272 | // @codeCoverageIgnoreEnd |
273 | 273 | } |
274 | 274 |
@@ -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 | } |
@@ -79,6 +79,6 @@ |
||
79 | 79 | */ |
80 | 80 | public function __toString() |
81 | 81 | { |
82 | - return $this->refers . ($this->description ? ' ' . $this->description->render() : ''); |
|
82 | + return $this->refers.($this->description ? ' '.$this->description->render() : ''); |
|
83 | 83 | } |
84 | 84 | } |
@@ -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 | } |
@@ -65,14 +65,14 @@ discard block |
||
65 | 65 | public function getContent() |
66 | 66 | { |
67 | 67 | if (null === $this->description) { |
68 | - $filePath = '"' . $this->filePath . '"'; |
|
68 | + $filePath = '"'.$this->filePath.'"'; |
|
69 | 69 | if ($this->isURI) { |
70 | 70 | $filePath = $this->isUriRelative($this->filePath) |
71 | 71 | ? str_replace('%2F', '/', rawurlencode($this->filePath)) |
72 | 72 | :$this->filePath; |
73 | 73 | } |
74 | 74 | |
75 | - return trim($filePath . ' ' . parent::getDescription()); |
|
75 | + return trim($filePath.' '.parent::getDescription()); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | return $this->description; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | public static function create($body) |
85 | 85 | { |
86 | 86 | // File component: File path in quotes or File URI / Source information |
87 | - if (! preg_match('/^(?:\"([^\"]+)\"|(\S+))(?:\s+(.*))?$/sux', $body, $matches)) { |
|
87 | + if (!preg_match('/^(?:\"([^\"]+)\"|(\S+))(?:\s+(.*))?$/sux', $body, $matches)) { |
|
88 | 88 | return null; |
89 | 89 | } |
90 | 90 | |
@@ -105,9 +105,9 @@ discard block |
||
105 | 105 | |
106 | 106 | // Starting line / Number of lines / Description |
107 | 107 | if (preg_match('/^([1-9]\d*)(?:\s+((?1))\s*)?(.*)$/sux', $matches[3], $contentMatches)) { |
108 | - $startingLine = (int)$contentMatches[1]; |
|
108 | + $startingLine = (int) $contentMatches[1]; |
|
109 | 109 | if (isset($contentMatches[2]) && $contentMatches[2] !== '') { |
110 | - $lineCount = (int)$contentMatches[2]; |
|
110 | + $lineCount = (int) $contentMatches[2]; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | if (array_key_exists(3, $contentMatches)) { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | return new static( |
120 | - $filePath !== null?$filePath:$fileUri, |
|
120 | + $filePath !== null ? $filePath : $fileUri, |
|
121 | 121 | $fileUri !== null, |
122 | 122 | $startingLine, |
123 | 123 | $lineCount, |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | public function __toString() |
145 | 145 | { |
146 | - return $this->filePath . ($this->description ? ' ' . $this->description : ''); |
|
146 | + return $this->filePath.($this->description ? ' '.$this->description : ''); |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | /** |
@@ -37,6 +37,6 @@ |
||
37 | 37 | */ |
38 | 38 | public function __toString() |
39 | 39 | { |
40 | - return (string)$this->fqsen; |
|
40 | + return (string) $this->fqsen; |
|
41 | 41 | } |
42 | 42 | } |