Completed
Branch master (140226)
by Paul
09:21
created
src/VersionControl/GitCommandBundle/GitCommands/Command/GitTagCommand.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/GitCommands/Command/GitInitCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/GitCommands/Command/GitSyncCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/GitCommands/Command/GitUndoCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/Entity/GitFile.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/Entity/GitDiffLine.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/Entity/GitTag.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
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
  */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/Entity/FileInfoInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/Service/SshProcess.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.