@@ -49,7 +49,7 @@ |
||
49 | 49 | */ |
50 | 50 | public function cloneRepository($repo) |
51 | 51 | { |
52 | - $response = $this->command->runCommand(sprintf('git clone %s . 2>&1', escapeshellarg($repo))); |
|
52 | + $response = $this->command->runCommand(sprintf('git clone %s . 2>&1', escapeshellarg($repo))); |
|
53 | 53 | |
54 | 54 | return $response; |
55 | 55 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | { |
157 | 157 | $response = $this->command->runCommand('git reset --hard ORIG_HEAD'); |
158 | 158 | |
159 | - //Trigger file alter Event |
|
159 | + //Trigger file alter Event |
|
160 | 160 | $this->triggerGitAlterFilesEvent(); |
161 | 161 | |
162 | 162 | return $response; |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | |
226 | 226 | $response = $this->command->runCommand($command); |
227 | 227 | |
228 | - //Trigger file alter Event |
|
228 | + //Trigger file alter Event |
|
229 | 229 | $this->triggerGitAlterFilesEvent(); |
230 | 230 | |
231 | 231 | return $response; |
@@ -72,7 +72,7 @@ |
||
72 | 72 | $response = $this->command->runCommand(sprintf('git checkout %s %s', escapeshellarg($commitHash), escapeshellarg($file))); |
73 | 73 | |
74 | 74 | //Trigger file alter Event |
75 | - if($triggerGitAlterFilesEvent === true){ |
|
75 | + if ($triggerGitAlterFilesEvent === true) { |
|
76 | 76 | $this->triggerGitAlterFilesEvent(); |
77 | 77 | } |
78 | 78 |
@@ -53,7 +53,6 @@ |
||
53 | 53 | ! ! ignored |
54 | 54 | ------------------------------------------------- |
55 | 55 | If -b is used the short-format status is preceded by a line |
56 | - |
|
57 | 56 | * @author Paul Schweppe <[email protected]> |
58 | 57 | */ |
59 | 58 | class GitFile |
@@ -58,7 +58,7 @@ |
||
58 | 58 | if ($firstCharacter !== false) { |
59 | 59 | if ($firstCharacter == '+') { |
60 | 60 | $this->type = self::ADDED; |
61 | - // $type = Line::ADDED; |
|
61 | + // $type = Line::ADDED; |
|
62 | 62 | } elseif ($firstCharacter == '-') { |
63 | 63 | $this->type = self::REMOVED; |
64 | 64 | } else { |
@@ -16,7 +16,6 @@ |
||
16 | 16 | * Remote File Info. |
17 | 17 | * |
18 | 18 | * "git for-each-ref --format '%(refname:short)|%(subject)|%(taggerDate)|%(taggerName)|%(taggerEmail)|%(*objectname)|%(*objectname:short)' refs/tags --sort=taggerDate"; |
19 | - |
|
20 | 19 | * |
21 | 20 | * @author Paul Schweppe <[email protected]> |
22 | 21 | */ |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * |
21 | 21 | * @author Paul Schweppe <[email protected]> |
22 | 22 | */ |
23 | -class GitTag{ |
|
23 | +class GitTag { |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Tag name. |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * @author Paul Schweppe <[email protected]> |
21 | 21 | */ |
22 | -interface FileInfoInterface{ |
|
22 | +interface FileInfoInterface { |
|
23 | 23 | |
24 | 24 | /* |
25 | 25 | * Get Functions |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $this->execute($command); |
121 | 121 | } |
122 | 122 | |
123 | - //$this->disconnect(); |
|
123 | + //$this->disconnect(); |
|
124 | 124 | |
125 | 125 | return $this->stdout; |
126 | 126 | } |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | |
200 | 200 | if (count($stderr) > 1) { |
201 | 201 | //print_r($stderr); |
202 | - throw new \RuntimeException(sprintf("Error in command shell:%s \n Error Response:%s", $command, implode("\n", $stderr))); |
|
202 | + throw new \RuntimeException(sprintf("Error in command shell:%s \n Error Response:%s", $command, implode("\n", $stderr))); |
|
203 | 203 | //$this->dispatcher->dispatch(Events::onDeploymentRsyncFeedback, new FeedbackEvent('err', implode("\n", $stderr))); |
204 | 204 | } |
205 | 205 |
@@ -72,16 +72,16 @@ |
||
72 | 72 | if (isset($username) && $privateKey != null) { |
73 | 73 | $key = new RSA(); |
74 | 74 | |
75 | - //Set Private Key Password |
|
76 | - if ($privateKeyPassword) { |
|
77 | - $key->setPassword($privateKeyPassword); |
|
78 | - } |
|
75 | + //Set Private Key Password |
|
76 | + if ($privateKeyPassword) { |
|
77 | + $key->setPassword($privateKeyPassword); |
|
78 | + } |
|
79 | 79 | $key->loadKey($privateKey); |
80 | 80 | |
81 | - //Login using private key |
|
82 | - if (!$this->sftp->login($username, $key)) { |
|
83 | - throw new SshLoginException(sprintf('SFTP authentication failed for user "%s" using private key', $username)); |
|
84 | - } |
|
81 | + //Login using private key |
|
82 | + if (!$this->sftp->login($username, $key)) { |
|
83 | + throw new SshLoginException(sprintf('SFTP authentication failed for user "%s" using private key', $username)); |
|
84 | + } |
|
85 | 85 | } else { |
86 | 86 | if (!$this->sftp->login($username, $password)) { |
87 | 87 | throw new SshLoginException(sprintf('SFTP authentication failed for user "%s" using password', $username)); |