@@ -38,7 +38,7 @@ |
||
38 | 38 | * @param Platform $platform |
39 | 39 | * @param Filesystem $filesystem |
40 | 40 | * @param Moodle $moodle |
41 | - * @param integer|null $timeouts |
|
41 | + * @param integer|null $timeout |
|
42 | 42 | * @param integer $attempts |
43 | 43 | */ |
44 | 44 | public function __construct(Project $project, Platform $platform, |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * |
59 | 59 | * @param string $gitExecutable |
60 | 60 | * @param string $directory |
61 | - * @param integer|null $timeout |
|
61 | + * @param integer $timeout |
|
62 | 62 | */ |
63 | 63 | public function __construct($gitExecutable, $directory, $timeout=60) { |
64 | 64 | $this->gitExecutable = $gitExecutable; |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @param string $directory |
61 | 61 | * @param integer|null $timeout |
62 | 62 | */ |
63 | - public function __construct($gitExecutable, $directory, $timeout=60) { |
|
63 | + public function __construct($gitExecutable, $directory, $timeout = 60) { |
|
64 | 64 | $this->gitExecutable = $gitExecutable; |
65 | 65 | $this->timeout = $timeout; |
66 | 66 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @throws VersionControlException |
97 | 97 | */ |
98 | - public function runCommand(Command $command, $exceptionCode=null) { |
|
98 | + public function runCommand(Command $command, $exceptionCode = null) { |
|
99 | 99 | $process = $this->createProcess($command->getCommandLine()); |
100 | 100 | $process->run(); |
101 | 101 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * |
170 | 170 | * @codeCoverageIgnore |
171 | 171 | */ |
172 | - public function fetch($remote=null) { |
|
172 | + public function fetch($remote = null) { |
|
173 | 173 | $command = new FetchCommand($remote); |
174 | 174 | return $this->runCommand( |
175 | 175 | $command, VersionControlException::CODE_FETCH_FAILED); |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * |
187 | 187 | * @codeCoverageIgnore |
188 | 188 | */ |
189 | - public function fetchTags($remote=null) { |
|
189 | + public function fetchTags($remote = null) { |
|
190 | 190 | $command = new FetchCommand($remote); |
191 | 191 | $command->setTags(true); |
192 | 192 | return $this->runCommand( |