@@ -71,12 +71,12 @@ |
||
| 71 | 71 | $filePath = preg_replace('/^' . preg_quote($this->basePath, '/') . '/', '', $filePath); |
| 72 | 72 | $lineNumber = $element->getLocation()->getLineNumber(); |
| 73 | 73 | $url = $this->getGithubLink($filePath, $lineNumber, $this->branch); |
| 74 | - $builder->addFieldList('Source', '`' . $filePath. '#' . $lineNumber . ' <'.$url.'>`_'); |
|
| 74 | + $builder->addFieldList('Source', '`' . $filePath . '#' . $lineNumber . ' <' . $url . '>`_'); |
|
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - private function getGithubLink($file, $line=1, $branch='master') { |
|
| 79 | - return $this->githubRepo . '/blob/'.$branch.'/'.$file.'#L' . $line; |
|
| 78 | + private function getGithubLink($file, $line = 1, $branch = 'master') { |
|
| 79 | + return $this->githubRepo . '/blob/' . $branch . '/' . $file . '#L' . $line; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | } |
| 83 | 83 | \ No newline at end of file |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | private $indentLevel = 0; |
| 37 | 37 | /** @var string */ |
| 38 | - protected $content = '.. rst-class:: phpdoctorst' . PHP_EOL . PHP_EOL ; |
|
| 38 | + protected $content = '.. rst-class:: phpdoctorst' . PHP_EOL . PHP_EOL; |
|
| 39 | 39 | |
| 40 | 40 | public function getContent() { |
| 41 | 41 | return $this->content; |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | public function addFieldList($key, $value) { |
| 62 | - $this->addLine(':'.self::escape($key).':'); |
|
| 62 | + $this->addLine(':' . self::escape($key) . ':'); |
|
| 63 | 63 | $this->indent()->addMultiline($value, false)->unindent(); |
| 64 | 64 | return $this; |
| 65 | 65 | } |