Passed
Push — master ( 0e280c...066e99 )
by Julius
02:00
created
src/Extension/GithubLocationExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,12 +71,12 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Builder/RstBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.