@@ -71,17 +71,17 @@ |
||
| 71 | 71 | $apiDocBuilder->setVerboseOutput(true); |
| 72 | 72 | $apiDocBuilder->setDebugOutput(true); |
| 73 | 73 | } |
| 74 | - if($input->getOption('public-only')) { |
|
| 74 | + if ($input->getOption('public-only')) { |
|
| 75 | 75 | $apiDocBuilder->addExtension(PublicOnlyExtension::class); |
| 76 | 76 | } |
| 77 | - if(!$input->getOption('show-private')) { |
|
| 77 | + if (!$input->getOption('show-private')) { |
|
| 78 | 78 | $apiDocBuilder->addExtension(NoPrivateExtension::class); |
| 79 | 79 | } |
| 80 | - if($input->getOption('element-toc')) { |
|
| 80 | + if ($input->getOption('element-toc')) { |
|
| 81 | 81 | $apiDocBuilder->addExtension(TocExtension::class); |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - if($input->getOption('repo-github') && $input->getOption('repo-base')) { |
|
| 84 | + if ($input->getOption('repo-github') && $input->getOption('repo-base')) { |
|
| 85 | 85 | $apiDocBuilder->addExtension(GithubLocationExtension::class, [ |
| 86 | 86 | $input->getOption('repo-base'), |
| 87 | 87 | $input->getOption('repo-github') |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | * @param string $class name of the extension class |
| 203 | 203 | * @throws \Exception |
| 204 | 204 | */ |
| 205 | - public function addExtension($class, $arguments=[]) { |
|
| 205 | + public function addExtension($class, $arguments = []) { |
|
| 206 | 206 | $this->extensionNames[] = $class; |
| 207 | 207 | $this->extensionArguments[$class] = $arguments; |
| 208 | 208 | |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | $this->log('Build indexes.'); |
| 303 | 303 | $namespaces = $this->project->getNamespaces(); |
| 304 | 304 | $namespaces['\\'] = $this->project->getRootNamespace(); |
| 305 | - usort($namespaces, function (Namespace_ $a, Namespace_ $b) { |
|
| 305 | + usort($namespaces, function(Namespace_ $a, Namespace_ $b) { |
|
| 306 | 306 | return strcmp($a->getFqsen(), $b->getFqsen()); |
| 307 | 307 | }); |
| 308 | 308 | /** @var Namespace_ $namespace */ |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | /** @var array */ |
| 38 | 38 | protected $arguments; |
| 39 | 39 | |
| 40 | - public function __construct(Project $project, $arguments=[]) { |
|
| 40 | + public function __construct(Project $project, $arguments = []) { |
|
| 41 | 41 | $this->project = $project; |
| 42 | 42 | $this->arguments = $arguments; |
| 43 | 43 | } |
@@ -64,13 +64,13 @@ |
||
| 64 | 64 | $url = $this->getGithubLink($filePath, $lineNumber); |
| 65 | 65 | print_r($filePath); |
| 66 | 66 | print_r($url); |
| 67 | - $builder->addFieldList('Source', '`' . $filePath. '#' . $lineNumber . ' <'.$url.'>`_'); |
|
| 67 | + $builder->addFieldList('Source', '`' . $filePath . '#' . $lineNumber . ' <' . $url . '>`_'); |
|
| 68 | 68 | $builder->addLine(); |
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - private function getGithubLink($file, $line=1, $branch='master') { |
|
| 73 | - return $this->githubRepo . '/blob/'.$branch.'/'.$file.'#L' . $line; |
|
| 72 | + private function getGithubLink($file, $line = 1, $branch = 'master') { |
|
| 73 | + return $this->githubRepo . '/blob/' . $branch . '/' . $file . '#L' . $line; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | } |
| 77 | 77 | \ No newline at end of file |