@@ -2,14 +2,14 @@ discard block |
||
2 | 2 | |
3 | 3 | use voku\helper\UTF8; |
4 | 4 | |
5 | -require __DIR__ . '/../vendor/autoload.php'; |
|
5 | +require __DIR__.'/../vendor/autoload.php'; |
|
6 | 6 | |
7 | 7 | $factory = \phpDocumentor\Reflection\DocBlockFactory::createInstance(); |
8 | 8 | $reflection = new ReflectionClass(UTF8::class); |
9 | 9 | |
10 | 10 | // ------------------------------------- |
11 | 11 | |
12 | -$templateDocument = file_get_contents(__DIR__ . '/docs/base.md'); |
|
12 | +$templateDocument = file_get_contents(__DIR__.'/docs/base.md'); |
|
13 | 13 | |
14 | 14 | $templateMethodParam = <<<RAW |
15 | 15 | - %param% |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $paramsTemplate = new TemplateFormatter($templateMethodParam); |
106 | 106 | $paramsTemplate->set('param', (string)$tagParam); |
107 | 107 | $params[] = $paramsTemplate->format(); |
108 | - $paramsTypes[] = $tagParam->getType() . ' ' . '$' . $tagParam->getVariableName(); |
|
108 | + $paramsTypes[] = $tagParam->getType().' '.'$'.$tagParam->getVariableName(); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | if (count($params) !== 0) { |
@@ -131,14 +131,14 @@ discard block |
||
131 | 131 | $methodTemplate->set('return', '__void__'); |
132 | 132 | } |
133 | 133 | |
134 | - $methodWithType = $method->getShortName() . '(' . implode(', ', $paramsTypes) . '): ' . implode('|', $returnsTypes); |
|
134 | + $methodWithType = $method->getShortName().'('.implode(', ', $paramsTypes).'): '.implode('|', $returnsTypes); |
|
135 | 135 | |
136 | 136 | $methodTemplate->set('name', $methodWithType); |
137 | 137 | $methodTemplate->set('description', $doc->getDescription()); |
138 | 138 | $methodTemplate->set('code', '```php echo ```'); |
139 | 139 | |
140 | 140 | $methodIndexTemplate->set('title', $method->getShortName()); |
141 | - $methodIndexTemplate->set('href', '#' . UTF8::css_identifier($methodWithType)); |
|
141 | + $methodIndexTemplate->set('href', '#'.UTF8::css_identifier($methodWithType)); |
|
142 | 142 | |
143 | 143 | $functionsDocumentation[$method->getShortName()] = $methodTemplate->format(); |
144 | 144 | $functionsIndex[$method->getShortName()] = $methodIndexTemplate->format(); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | $indexStrResult .= '<tr>'; |
165 | 165 | } |
166 | 166 | |
167 | - $indexStrResult .= '<td>' . sprintf("%s\n", $_template) . '</td>'; |
|
167 | + $indexStrResult .= '<td>'.sprintf("%s\n", $_template).'</td>'; |
|
168 | 168 | |
169 | 169 | if ($counterTmp === 4) { |
170 | 170 | $counterTmp = 0; |
@@ -176,10 +176,10 @@ discard block |
||
176 | 176 | } |
177 | 177 | $indexStrResult = ' |
178 | 178 | <table> |
179 | - ' . $indexStrResult . ' |
|
179 | + ' . $indexStrResult.' |
|
180 | 180 | </table> |
181 | 181 | '; |
182 | 182 | |
183 | 183 | $documentTemplate->set('__functions_index__', $indexStrResult); |
184 | 184 | |
185 | -file_put_contents(__DIR__ . '/README_TEST.md', $documentTemplate->format()); |
|
185 | +file_put_contents(__DIR__.'/README_TEST.md', $documentTemplate->format()); |