Completed
Branch master (140226)
by Paul
09:21
created
src/VersionControl/GitCommandBundle/GitCommands/Command/GitFilesCommand.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
             
355 355
             if($this->isFileIgnored($filePath) === false){
356 356
                 $response = $this->addToGitIgnore($filePath);
357
-            }else {
357
+            } else {
358 358
                 throw new \VersionControl\GitCommandBundle\GitCommands\Exception\FileStatusException('File path is already ignored');
359 359
             }
360 360
 
@@ -387,10 +387,10 @@  discard block
 block discarded – undo
387 387
                 if($statusCount <= 0){
388 388
                     $response .= $this->command->runCommand(sprintf('git rm --cached %s', escapeshellarg($filePath)));
389 389
                     $response .= "\n Please commit to complete the removal of this file from git index";
390
-                }else{
390
+                } else{
391 391
                     throw new \VersionControl\GitCommandBundle\GitCommands\Exception\FileStatusException('Please commit all files first');
392 392
                 }
393
-            }else{
393
+            } else{
394 394
                 throw new \VersionControl\GitCommandBundle\GitCommands\Exception\FileStatusException('File path is not been tracked');
395 395
             }
396 396
 
Please login to merge, or discard this patch.
GitCommandBundle/Tests/GitCommands/Command/GitTagCommandTest.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         //
74 74
         try {
75 75
             $this->assertEquals('', $tagCommand->pushTag('origin','tag1'), 'Push tag1 to origin');
76
-        }catch (\VersionControl\GitCommandBundle\GitCommands\Exception\RunGitCommandException $e) {
76
+        } catch (\VersionControl\GitCommandBundle\GitCommands\Exception\RunGitCommandException $e) {
77 77
             $errorMessage = $e->getMessage();
78 78
         }
79 79
         $this->assertContains("fatal: 'origin' does not appear to be a git repository", trim($errorMessage), 'push tag command error');
Please login to merge, or discard this patch.
GitCommandBundle/Tests/GitCommands/Command/GitFilesCommandTest.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $errorMessage = '';
60 60
         try{
61 61
             $this->gitCommands->command('files')->listFiles('../');
62
-        }catch(\VersionControl\GitCommandBundle\GitCommands\Exception\InvalidDirectoryException $e){
62
+        } catch(\VersionControl\GitCommandBundle\GitCommands\Exception\InvalidDirectoryException $e){
63 63
             $errorMessage = $e->getMessage();
64 64
         }
65 65
         $this->assertContains("Directory path is not valid", trim($errorMessage), 'Invalid Directory error');
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $errorMessage = '';
80 80
         try{
81 81
             $fileNotExisting = $this->gitCommands->command('files')->getFile('MoreFiles/testDoesNotExist');
82
-        }catch(\VersionControl\GitCommandBundle\GitCommands\Exception\InvalidDirectoryException $e){
82
+        } catch(\VersionControl\GitCommandBundle\GitCommands\Exception\InvalidDirectoryException $e){
83 83
             $errorMessage = $e->getMessage();
84 84
         }
85 85
         
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $message = '';
160 160
         try{
161 161
             $filesCommand->ignoreFile('test');
162
-        }catch(\VersionControl\GitCommandBundle\GitCommands\Exception\FileStatusException $e){
162
+        } catch(\VersionControl\GitCommandBundle\GitCommands\Exception\FileStatusException $e){
163 163
             $message = $e->getMessage();
164 164
         }
165 165
         
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         
168 168
         try{
169 169
              $filesCommand->ignoreFile('testFileDoesNotExist');
170
-        }catch(\VersionControl\GitCommandBundle\GitCommands\Exception\InvalidFilePathException $e){
170
+        } catch(\VersionControl\GitCommandBundle\GitCommands\Exception\InvalidFilePathException $e){
171 171
             $message = $e->getMessage();
172 172
         }
173 173
         
Please login to merge, or discard this patch.
src/VersionControl/GitControlBundle/Controller/ProjectCommitController.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -405,11 +405,11 @@
 block discarded – undo
405 405
             $gitUndoCommand = $this->gitCommands->command('undo');
406 406
             if($option === 'theirs'){
407 407
                 $response = $gitUndoCommand->checkoutTheirFile($file);
408
-            }elseif($option === 'ours'){
408
+            } elseif($option === 'ours'){
409 409
                 $response = $gitUndoCommand->checkoutOurFile($file);
410
-            }elseif($option === 'delete'){
410
+            } elseif($option === 'delete'){
411 411
                 $response = $gitUndoCommand->deleteFile($file);
412
-            }else{
412
+            } else{
413 413
                 $response = $gitUndoCommand->addFile($file);
414 414
             }
415 415
             
Please login to merge, or discard this patch.
src/VersionControl/GitControlBundle/Controller/ProjectFilesController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 if(strtolower($file->getFilename()) === 'readme' ){
53 53
                     $readme = $this->gitFilesCommands->readFile($file);
54 54
                     break;
55
-                }else{
55
+                } else{
56 56
                     //Get last md file
57 57
                      $readme = $this->gitFilesCommands->readFile($file);
58 58
                 }
Please login to merge, or discard this patch.
src/VersionControl/GitControlBundle/Encryptors/AES256Encryptor.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 $this->secretKey,
52 52
                 0,
53 53
                 $iv)));
54
-        }else{
54
+        } else{
55 55
             return trim(base64_encode(mcrypt_encrypt(
56 56
                                         MCRYPT_RIJNDAEL_256, $this->secretKey, $data, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND
57 57
                                         ))));
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                 $this->secretKey,
81 81
                 0,
82 82
                 $iv));
83
-        }else{
83
+        } else{
84 84
             return trim(mcrypt_decrypt(
85 85
                                 MCRYPT_RIJNDAEL_256, $this->secretKey, base64_decode($data), MCRYPT_MODE_ECB, mcrypt_create_iv(
86 86
                                         mcrypt_get_iv_size(
Please login to merge, or discard this patch.
src/VersionControl/DoctrineEncryptBundle/Encryptors/AES256Encryptor.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 $this->secretKey,
45 45
                 0,
46 46
                 $iv)));
47
-        }else{
47
+        } else{
48 48
             return trim(base64_encode(mcrypt_encrypt(
49 49
                                         MCRYPT_RIJNDAEL_256, $this->secretKey, $data, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND
50 50
                                         ))));
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                 $this->secretKey,
70 70
                 0,
71 71
                 $iv));
72
-        }else{
72
+        } else{
73 73
             return trim(mcrypt_decrypt(
74 74
                                 MCRYPT_RIJNDAEL_256, $this->secretKey, base64_decode($data), MCRYPT_MODE_ECB, mcrypt_create_iv(
75 75
                                         mcrypt_get_iv_size(
Please login to merge, or discard this patch.