@@ -28,9 +28,9 @@ |
||
28 | 28 | protected function getGitCommand(): string |
29 | 29 | { |
30 | 30 | return 'log --pretty=format:' . escapeshellarg($this->format) |
31 | - . $this->abbrev |
|
32 | - . $this->author |
|
33 | - . $this->merges |
|
34 | - . $this->since; |
|
31 | + . $this->abbrev |
|
32 | + . $this->author |
|
33 | + . $this->merges |
|
34 | + . $this->since; |
|
35 | 35 | } |
36 | 36 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | '<author><![CDATA[%an]]></author>%n' . |
34 | 34 | '<subject><![CDATA[%s]]></subject>%n' . |
35 | 35 | '<body><![CDATA[%n%b%n]]></body>%n' . |
36 | - '</commit>'; |
|
36 | + '</commit>'; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * Parse log output into list of Commit objects |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | public function byRevision(string $from, string $to = ''): Log |
111 | 111 | { |
112 | 112 | $this->since = ' ' . escapeshellarg($from) . '..' |
113 | - . (empty($to) ? '' : escapeshellarg($to)); |
|
113 | + . (empty($to) ? '' : escapeshellarg($to)); |
|
114 | 114 | return $this; |
115 | 115 | } |
116 | 116 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | public function byDate(string $from, string $to = ''): Log |
137 | 137 | { |
138 | 138 | $this->since = ' --after=' . escapeshellarg($from) |
139 | - . (empty($to) ? '' : ' --before=' . escapeshellarg($to)); |
|
139 | + . (empty($to) ? '' : ' --before=' . escapeshellarg($to)); |
|
140 | 140 | return $this; |
141 | 141 | } |
142 | 142 | } |
@@ -47,9 +47,9 @@ |
||
47 | 47 | public function getCommand(): string |
48 | 48 | { |
49 | 49 | $command = 'git' |
50 | - . $this->getRootOption() |
|
51 | - . ' ' |
|
52 | - . $this->getGitCommand(); |
|
50 | + . $this->getRootOption() |
|
51 | + . ' ' |
|
52 | + . $this->getGitCommand(); |
|
53 | 53 | return $command; |
54 | 54 | } |
55 | 55 |