@@ -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 | } |
@@ -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 | /** |
@@ -99,8 +99,8 @@ |
||
99 | 99 | */ |
100 | 100 | public function __toString() |
101 | 101 | { |
102 | - return ($this->type ? $this->type . ' ' : '') |
|
103 | - . '$' . $this->variableName |
|
104 | - . ($this->description ? ' ' . $this->description : ''); |
|
102 | + return ($this->type ? $this->type.' ' : '') |
|
103 | + . '$'.$this->variableName |
|
104 | + . ($this->description ? ' '.$this->description : ''); |
|
105 | 105 | } |
106 | 106 | } |
@@ -83,6 +83,6 @@ |
||
83 | 83 | */ |
84 | 84 | public function __toString() |
85 | 85 | { |
86 | - return $this->refers . ($this->description ? ' ' . $this->description->render() : ''); |
|
86 | + return $this->refers.($this->description ? ' '.$this->description->render() : ''); |
|
87 | 87 | } |
88 | 88 | } |
@@ -81,9 +81,9 @@ |
||
81 | 81 | */ |
82 | 82 | private function validateTagName($name) |
83 | 83 | { |
84 | - if (! preg_match('/^' . StandardTagFactory::REGEX_TAGNAME . '$/u', $name)) { |
|
84 | + if (!preg_match('/^'.StandardTagFactory::REGEX_TAGNAME.'$/u', $name)) { |
|
85 | 85 | throw new \InvalidArgumentException( |
86 | - 'The tag name "' . $name . '" is not wellformed. Tags may only consist of letters, underscores, ' |
|
86 | + 'The tag name "'.$name.'" is not wellformed. Tags may only consist of letters, underscores, ' |
|
87 | 87 | . 'hyphens and backslashes.' |
88 | 88 | ); |
89 | 89 | } |
@@ -124,9 +124,9 @@ |
||
124 | 124 | */ |
125 | 125 | public function __toString() |
126 | 126 | { |
127 | - return ($this->type ? $this->type . ' ' : '') |
|
127 | + return ($this->type ? $this->type.' ' : '') |
|
128 | 128 | . ($this->isVariadic() ? '...' : '') |
129 | - . '$' . $this->variableName |
|
130 | - . ($this->description ? ' ' . $this->description : ''); |
|
129 | + . '$'.$this->variableName |
|
130 | + . ($this->description ? ' '.$this->description : ''); |
|
131 | 131 | } |
132 | 132 | } |
@@ -78,6 +78,6 @@ |
||
78 | 78 | */ |
79 | 79 | public function __toString() |
80 | 80 | { |
81 | - return $this->refers . ($this->description ? ' ' . $this->description->render() : ''); |
|
81 | + return $this->refers.($this->description ? ' '.$this->description->render() : ''); |
|
82 | 82 | } |
83 | 83 | } |
@@ -53,6 +53,6 @@ |
||
53 | 53 | |
54 | 54 | public function __toString() |
55 | 55 | { |
56 | - return $this->type . ' ' . $this->description; |
|
56 | + return $this->type.' '.$this->description; |
|
57 | 57 | } |
58 | 58 | } |