Test Failed
Pull Request — master (#13)
by
unknown
08:57
created
src/VersionControl/GitCommandBundle/GitCommands/Command/GitLogCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
     {
186 186
         $this->logCommand = 'git --no-pager log -m "--pretty=format:\'' . $this->format . '\'"';
187 187
         if ($this->logCount) {
188
-            $this->logCommand .= ' -' . (int)$this->logCount . ' ';
188
+            $this->logCommand .= ' -' . (int) $this->logCount . ' ';
189 189
         }
190 190
 
191 191
         if ($this->showReferences === true) {
Please login to merge, or discard this patch.
VersionControl/GitCommandBundle/GitCommands/Command/GitBranchCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@
 block discarded – undo
311 311
         $currentBranch = $this->getCurrentBranch();
312 312
         if ($branchName === $currentBranch) {
313 313
             throw new RuntimeException(
314
-                'You cannot merge a branch with itself. Please checkout a '.
314
+                'You cannot merge a branch with itself. Please checkout a ' .
315 315
                 'different branch before trying to merge.'
316 316
             );
317 317
         }
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/GitCommands/Command/GitTagCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             throw new InvalidBranchNameException('This is not a valid branch name');
66 66
         }
67 67
 
68
-        $command = sprintf($this->initGitCommand().' tag -a %s -m %s', escapeshellarg($version), escapeshellarg($message));
68
+        $command = sprintf($this->initGitCommand() . ' tag -a %s -m %s', escapeshellarg($version), escapeshellarg($message));
69 69
         if ($commitShortCode) {
70 70
             $command .= ' ' . escapeshellarg($commitShortCode);
71 71
         }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function pushTag($remote, $tag): string
87 87
     {
88
-        $command = sprintf($this->initGitCommand().' push %s %s', escapeshellarg(trim($remote)), escapeshellarg(trim($tag)));
88
+        $command = sprintf($this->initGitCommand() . ' push %s %s', escapeshellarg(trim($remote)), escapeshellarg(trim($tag)));
89 89
 
90 90
         return $this->command->runCommand($command);
91 91
     }
Please login to merge, or discard this patch.
app/src/VersionControl/GitCommandBundle/Service/SecLibSftpProcess.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -72,16 +72,16 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
app/src/VersionControl/GitCommandBundle/Tests/GitCommandTestCase.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,7 @@
 block discarded – undo
108 108
         $path = $this->path;
109 109
 
110 110
         $filename = $folder == null ?
111
-            $path . DIRECTORY_SEPARATOR . $name :
112
-            $path . DIRECTORY_SEPARATOR . $folder . DIRECTORY_SEPARATOR . $name;
111
+            $path . DIRECTORY_SEPARATOR . $name : $path . DIRECTORY_SEPARATOR . $folder . DIRECTORY_SEPARATOR . $name;
113 112
         $handle = fopen($filename, 'wb');
114 113
         $fileContent = $content == null ? 'test content' : $content;
115 114
         $this->assertNotSame(false, fwrite($handle, $fileContent), sprintf('unable to write the file %s', $name));
Please login to merge, or discard this patch.
GitCommandBundle/Tests/GitCommands/Command/GitDiffCommandTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
         $this->updateFile('test', 'Test Data has changed');
38 38
     }
39 39
 
40
-    public function testGetPreviousCommitHash(){
40
+    public function testGetPreviousCommitHash() {
41 41
 
42 42
         $previousCommitHash = $this->gitCommands->command('diff')->getPreviousCommitHash();
43
-        $this->assertTrue(strlen($previousCommitHash) === 7,'Previous Commit hash does not equal 7 characters: '.$previousCommitHash);
43
+        $this->assertTrue(strlen($previousCommitHash) === 7, 'Previous Commit hash does not equal 7 characters: ' . $previousCommitHash);
44 44
 
45 45
     }
46 46
 
@@ -52,26 +52,26 @@  discard block
 block discarded – undo
52 52
 
53 53
         $diffs = $this->gitCommands->command('diff')->getDiffFile('test');
54 54
 
55
-        $this->assertCount(1, $diffs,'Diff count does not equal expected 17. Actual:'.count($diffs).print_r($diffs,true));
55
+        $this->assertCount(1, $diffs, 'Diff count does not equal expected 17. Actual:' . count($diffs) . print_r($diffs, true));
56 56
         foreach ($diffs as $diff) {
57 57
             $this->assertInstanceOf(GitDiff::class, $diff);
58 58
         }
59 59
     }
60 60
 
61
-    public function testGetDiffFileBetweenCommits(){
61
+    public function testGetDiffFileBetweenCommits() {
62 62
 
63 63
         $previousCommitHash = $this->gitCommands->command('diff')->getPreviousCommitHash();
64 64
 
65
-        $diffs = $this->gitCommands->command('diff')->getDiffFileBetweenCommits('test',$previousCommitHash,'HEAD');
65
+        $diffs = $this->gitCommands->command('diff')->getDiffFileBetweenCommits('test', $previousCommitHash, 'HEAD');
66 66
         foreach ($diffs as $diff) {
67 67
             $this->assertInstanceOf(GitDiff::class, $diff);
68 68
         }
69 69
     }
70 70
 
71
-    public function testGetFilesInCommit(){
71
+    public function testGetFilesInCommit() {
72 72
         $filesCommitted = $this->gitCommands->command('diff')->getFilesInCommit('HEAD');
73 73
 
74
-        $this->assertCount(1, $filesCommitted,'Only one file should have been commited. Actual:'.count($filesCommitted));
74
+        $this->assertCount(1, $filesCommitted, 'Only one file should have been commited. Actual:' . count($filesCommitted));
75 75
 
76 76
         foreach ($filesCommitted as $commitFile) {
77 77
             $this->assertInstanceOf(GitCommitFile::class, $commitFile);
Please login to merge, or discard this patch.
src/VersionControl/GitCommandBundle/Tests/GitCommands/GitDiffParserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $diffParser = new GitDiffParser($diffString);
61 61
         $diffs = $diffParser->parse();
62 62
         
63
-        $this->assertCount(1, $diffs,'Diff count does not equal expected 17. Actual:'.count($diffs).print_r($diffs,true));
63
+        $this->assertCount(1, $diffs, 'Diff count does not equal expected 17. Actual:' . count($diffs) . print_r($diffs, true));
64 64
         foreach ($diffs as $diff) {
65 65
             $this->assertInstanceOf(GitDiff::class, $diff);
66 66
         }
Please login to merge, or discard this patch.
DependencyInjection/VersionControlGitlabIssueExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         $configuration = new Configuration();
31 31
         $config = $this->processConfiguration($configuration, $configs);
32 32
 
33
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
33
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
34 34
         $loader->load('services.yml');
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
app/src/VersionControl/GitlabIssueBundle/Repository/GitlabBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
     protected function getCacheDir()
61 61
     {
62
-        $dir = dirname(__DIR__).'/../../../app/cache/githubcache';
62
+        $dir = dirname(__DIR__) . '/../../../app/cache/githubcache';
63 63
 
64 64
         if (!file_exists($dir)) {
65 65
             mkdir($dir, 0755);
Please login to merge, or discard this patch.