@@ -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% |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $paramsTemplate = new TemplateFormatter($templateMethodParam); |
| 107 | 107 | $paramsTemplate->set('param', (string)$tagParam); |
| 108 | 108 | $params[] = $paramsTemplate->format(); |
| 109 | - $paramsTypes[] = $tagParam->getType() . ' ' . '$' . $tagParam->getVariableName(); |
|
| 109 | + $paramsTypes[] = $tagParam->getType().' '.'$'.$tagParam->getVariableName(); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | if (count($params) !== 0) { |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $methodTemplate->set('return', '__void__'); |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - $methodWithType = $method->getShortName() . '(' . implode(', ', $paramsTypes) . '): ' . implode('|', $returnsTypes); |
|
| 135 | + $methodWithType = $method->getShortName().'('.implode(', ', $paramsTypes).'): '.implode('|', $returnsTypes); |
|
| 136 | 136 | |
| 137 | 137 | $description = (string)$doc->getDescription(); |
| 138 | 138 | if (!$description) { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $methodTemplate->set('code', '```php echo ```'); |
| 145 | 145 | |
| 146 | 146 | $methodIndexTemplate->set('title', $method->getShortName()); |
| 147 | - $methodIndexTemplate->set('href', '#' . UTF8::css_identifier($methodWithType)); |
|
| 147 | + $methodIndexTemplate->set('href', '#'.UTF8::css_identifier($methodWithType)); |
|
| 148 | 148 | |
| 149 | 149 | $functionsDocumentation[$method->getShortName()] = $methodTemplate->format(); |
| 150 | 150 | $functionsIndex[$method->getShortName()] = $methodIndexTemplate->format(); |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | $indexStrResult .= '<tr>'; |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | - $indexStrResult .= '<td>' . sprintf("%s\n", $_template) . '</td>'; |
|
| 173 | + $indexStrResult .= '<td>'.sprintf("%s\n", $_template).'</td>'; |
|
| 174 | 174 | |
| 175 | 175 | if ($counterTmp === 4) { |
| 176 | 176 | $counterTmp = 0; |
@@ -182,10 +182,10 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | $indexStrResult = ' |
| 184 | 184 | <table> |
| 185 | - ' . $indexStrResult . ' |
|
| 185 | + ' . $indexStrResult.' |
|
| 186 | 186 | </table> |
| 187 | 187 | '; |
| 188 | 188 | |
| 189 | 189 | $documentTemplate->set('__functions_index__', $indexStrResult); |
| 190 | 190 | |
| 191 | -file_put_contents(__DIR__ . '/README_TEST.md', $documentTemplate->format()); |
|
| 191 | +file_put_contents(__DIR__.'/README_TEST.md', $documentTemplate->format()); |
|