@@ -65,13 +65,13 @@ |
||
65 | 65 | */ |
66 | 66 | private static function filesFromDirectory(string $directory, array &$results = array()): array { |
67 | 67 | $files = scandir($directory); |
68 | - foreach($files as $value) { |
|
68 | + foreach ($files as $value) { |
|
69 | 69 | $path = realpath($directory . DIRECTORY_SEPARATOR . $value); |
70 | - if(!is_dir($path)) { |
|
70 | + if (!is_dir($path)) { |
|
71 | 71 | if (pathinfo($path, PATHINFO_EXTENSION) === 'php') { |
72 | 72 | $results[] = new \phpDocumentor\Reflection\File\LocalFile($path); |
73 | 73 | } |
74 | - } else if($value != '.' && $value != '..') { |
|
74 | + } else if ($value != '.' && $value != '..') { |
|
75 | 75 | self::filesFromDirectory($path, $results); |
76 | 76 | } |
77 | 77 | } |
@@ -165,7 +165,7 @@ |
||
165 | 165 | $separator = $type !== '' ? ': ' : ''; |
166 | 166 | $this->html .= '<h3><a name="property:' . $property->getName() . '">$' . $property->getName() . ' (' . $property->getVisibility() .')</a></h3> |
167 | 167 | <pre>$'. $property->getName() . $separator . $type . '</pre><i>' . $summary . '</i>' . $description . |
168 | - ($type !== '' ? ('<h4>Type</h4>' . $type) : ''); |
|
168 | + ($type !== '' ? ('<h4>Type</h4>' . $type) : ''); |
|
169 | 169 | } |
170 | 170 | } |
171 | 171 | } |
@@ -103,10 +103,10 @@ discard block |
||
103 | 103 | $constants_['public'] .= '<a href="#constant:' . $constant->getName() . '">' . $constant->getName() . '</a><br>'; |
104 | 104 | } |
105 | 105 | foreach ($properties as $property) { |
106 | - $properties_[strval($property->getVisibility())] .= '<a href="#property:' .$property->getName() . '">$' .$property->getName() . '</a><br>'; |
|
106 | + $properties_[strval($property->getVisibility())] .= '<a href="#property:' . $property->getName() . '">$' . $property->getName() . '</a><br>'; |
|
107 | 107 | } |
108 | 108 | foreach ($methods as $method) { |
109 | - $methods_[strval($method->getVisibility())] .= '<a href="#method:' .$method->getName() . '">' .$method->getName() . '</a><br>'; |
|
109 | + $methods_[strval($method->getVisibility())] .= '<a href="#method:' . $method->getName() . '">' . $method->getName() . '</a><br>'; |
|
110 | 110 | } |
111 | 111 | $this->html .= '<h2>Summary</h2>'; |
112 | 112 | $this->html .= '<table> |
@@ -159,12 +159,12 @@ discard block |
||
159 | 159 | if (!empty($properties)) { |
160 | 160 | $this->html .= '<h2>Properties</h2>'; |
161 | 161 | foreach ($properties as $property) { |
162 | - $summary = ($property->getDocBlock() !== null && $property->getDocBlock()->getSummary() !== '') ?$property->getDocBlock()->getSummary() . '<br>' : ''; |
|
162 | + $summary = ($property->getDocBlock() !== null && $property->getDocBlock()->getSummary() !== '') ? $property->getDocBlock()->getSummary() . '<br>' : ''; |
|
163 | 163 | $description = ($property->getDocBlock() !== null && $property->getDocBlock()->getDescription() !== '') ? $property->getDocBlock()->getDescription() : ''; |
164 | 164 | $type = ($property->getDocBlock() !== null && $property->getDocBlock()->hasTag('var')) ? explode(' ', $property->getDocBlock()->getTagsByName('var')[0]->render(), 2)[1] : ''; |
165 | 165 | $separator = $type !== '' ? ': ' : ''; |
166 | - $this->html .= '<h3><a name="property:' . $property->getName() . '">$' . $property->getName() . ' (' . $property->getVisibility() .')</a></h3> |
|
167 | - <pre>$'. $property->getName() . $separator . $type . '</pre><i>' . $summary . '</i>' . $description . |
|
166 | + $this->html .= '<h3><a name="property:' . $property->getName() . '">$' . $property->getName() . ' (' . $property->getVisibility() . ')</a></h3> |
|
167 | + <pre>$'. $property->getName() . $separator . $type . '</pre><i>' . $summary . '</i>' . $description . |
|
168 | 168 | ($type !== '' ? ('<h4>Type</h4>' . $type) : ''); |
169 | 169 | } |
170 | 170 | } |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $summary = ($method->getDocBlock() !== null && $method->getDocBlock()->getSummary() !== '') ? $method->getDocBlock()->getSummary() . '<br>' : ''; |
185 | 185 | $description = ($method->getDocBlock() !== null && $method->getDocBlock()->getDescription() !== '') ? $method->getDocBlock()->getDescription() : ''; |
186 | 186 | $this->html .= '<h3><a name="method:' . $method->getName() . '">' . $method->getName() . ' (' . $method->getVisibility() . ')</a></h3> |
187 | - <pre>' . $method->getName() . '('. implode(', ', $argumentNames) . ')' . ($method->getReturnType() != 'mixed' ? ': ' . $method->getReturnType() : ''); |
|
187 | + <pre>' . $method->getName() . '(' . implode(', ', $argumentNames) . ')' . ($method->getReturnType() != 'mixed' ? ': ' . $method->getReturnType() : ''); |
|
188 | 188 | $this->html .= '</pre><i>' . $summary . '</i>' . $description; |
189 | 189 | if (!empty($method->getArguments())) { |
190 | 190 | $this->html .= '<h4>Parameters</h4>'; |