@@ -62,13 +62,13 @@ |
||
62 | 62 | $filePath = preg_replace('/^' . preg_quote($this->basePath, '/') . '/', '', $filePath); |
63 | 63 | $lineNumber = $element->getLocation()->getLineNumber(); |
64 | 64 | $url = $this->getGithubLink($filePath, $lineNumber); |
65 | - $builder->addFieldList('Source', '`' . $filePath. '#' . $lineNumber . ' <'.$url.'>`_'); |
|
65 | + $builder->addFieldList('Source', '`' . $filePath . '#' . $lineNumber . ' <' . $url . '>`_'); |
|
66 | 66 | $builder->addLine(); |
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
70 | - private function getGithubLink($file, $line=1, $branch='master') { |
|
71 | - return $this->githubRepo . '/blob/'.$branch.'/'.$file.'#L' . $line; |
|
70 | + private function getGithubLink($file, $line = 1, $branch = 'master') { |
|
71 | + return $this->githubRepo . '/blob/' . $branch . '/' . $file . '#L' . $line; |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | } |
75 | 75 | \ No newline at end of file |