@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | if ($this->validateTagName($version)) { |
62 | 62 | $command = sprintf('git tag -a %s -m %s', escapeshellarg($version), escapeshellarg($message)); |
63 | 63 | if($commitShortCode){ |
64 | - $command .= ' '.escapeshellarg($commitShortCode); |
|
64 | + $command .= ' '.escapeshellarg($commitShortCode); |
|
65 | 65 | } |
66 | 66 | $output = $this->command->runCommand($command); |
67 | 67 | } else { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | return true; |
102 | 102 | } else { |
103 | 103 | //$output = $this->command->runCommand(sprintf('(git check-ref-format "refs/heads/%s");echo -e "\n$?"',$branchName)); |
104 | - $response = $this->command->runCommand(sprintf('git check-ref-format "refs/tags/%s"', $tagName), false); |
|
104 | + $response = $this->command->runCommand(sprintf('git check-ref-format "refs/tags/%s"', $tagName), false); |
|
105 | 105 | |
106 | 106 | if ($this->command->getLastExitStatus() !== 0) { |
107 | 107 | return false; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $tags = $this->command->runCommand($command); |
39 | 39 | $lines = $this->splitOnNewLine($tags, true); |
40 | 40 | |
41 | - foreach ($lines as $line){ |
|
41 | + foreach ($lines as $line) { |
|
42 | 42 | $tagEntities[] = new GitTag($line); |
43 | 43 | } |
44 | 44 | |
@@ -56,11 +56,11 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @return string command response |
58 | 58 | */ |
59 | - public function createAnnotatedTag($version, $message, $commitShortCode = false ) |
|
59 | + public function createAnnotatedTag($version, $message, $commitShortCode = false) |
|
60 | 60 | { |
61 | 61 | if ($this->validateTagName($version)) { |
62 | 62 | $command = sprintf('git tag -a %s -m %s', escapeshellarg($version), escapeshellarg($message)); |
63 | - if($commitShortCode){ |
|
63 | + if ($commitShortCode) { |
|
64 | 64 | $command .= ' '.escapeshellarg($commitShortCode); |
65 | 65 | } |
66 | 66 | $output = $this->command->runCommand($command); |
@@ -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 |