Test Setup Failed
Pull Request — master (#9)
by
unknown
11:27
created
GitControlBundle/Annotation/Driver/ProjectAccessAnnotationDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                     $redirectUrl = $controller[0]->initAction($id, $configuration->grantType);
70 70
                     if ($redirectUrl) {
71 71
                         $event->setController(
72
-                            function () use ($redirectUrl) {
72
+                            function() use ($redirectUrl) {
73 73
                                 return new RedirectResponse($redirectUrl);
74 74
                             });
75 75
                     }
Please login to merge, or discard this patch.
GitControlBundle/Tests/Controller/ProjectFilesControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
         $project = $this->getProject($user);
13 13
         
14 14
         // Get File List
15
-        $projectFileListURL = $this->client->getContainer()->get('router')->generate('project_filelist',array('id'=>$project->getId()));
15
+        $projectFileListURL = $this->client->getContainer()->get('router')->generate('project_filelist', array('id'=>$project->getId()));
16 16
 
17 17
         // Create a new entry in the database
18 18
         $crawler = $this->client->request('GET', $projectFileListURL);
Please login to merge, or discard this patch.
src/VersionControl/GitControlBundle/Encryptors/AES256Encryptor.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
         if (defined('PHP_MAJOR_VERSION') && PHP_MAJOR_VERSION >= 7) {
46 46
             $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length("AES-256-ECB"));
47 47
         
48
-            return trim(base64_encode(openssl_encrypt ( 
49
-                $data , 
48
+            return trim(base64_encode(openssl_encrypt( 
49
+                $data, 
50 50
                 "AES-256-ECB", 
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
                                         ))));
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
         if (defined('PHP_MAJOR_VERSION') && PHP_MAJOR_VERSION >= 7) {
75 75
             $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length("AES-256-ECB"));
76 76
             
77
-            return trim(openssl_decrypt ( 
78
-                base64_decode($data) , 
77
+            return trim(openssl_decrypt( 
78
+                base64_decode($data), 
79 79
                 "AES-256-ECB", 
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/GitControlBundle/Command/CreateAdminCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         if (!$input->getArgument('username')) {
82 82
             $question = new Question('Please choose a username:');
83
-            $question->setValidator(function ($username) {
83
+            $question->setValidator(function($username) {
84 84
                 if (empty($username)) {
85 85
                     throw new \Exception('Username can not be empty');
86 86
                 }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
         if (!$input->getArgument('email')) {
94 94
             $question = new Question('Please choose an email:');
95
-            $question->setValidator(function ($email) {
95
+            $question->setValidator(function($email) {
96 96
                 if (empty($email)) {
97 97
                     throw new \Exception('Email can not be empty');
98 98
                 }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         if (!$input->getArgument('password')) {
106 106
             $question = new Question('Please choose a password:');
107
-            $question->setValidator(function ($password) {
107
+            $question->setValidator(function($password) {
108 108
                 if (empty($password)) {
109 109
                     throw new \Exception('Password can not be empty');
110 110
                 }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         if (!$input->getArgument('name')) {
119 119
             $question = new Question('Please choose a display name:');
120
-            $question->setValidator(function ($name) {
120
+            $question->setValidator(function($name) {
121 121
                 if (empty($name)) {
122 122
                     throw new \Exception('Display name can not be empty');
123 123
                 }
Please login to merge, or discard this patch.
GitlabIssueBundle/Form/EventListener/AddProjectNameFieldSubscriber.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,18 +33,18 @@
 block discarded – undo
33 33
         if ($projectIssueIntegratorGitlab && $projectIssueIntegratorGitlab instanceof \VersionControl\GitlabIssueBundle\Entity\ProjectIssueIntegratorGitlab) {
34 34
             $form->add('projectName', GitlabProjectType::class, array(
35 35
                     'choices' => $this->getProjectChoices($projectIssueIntegratorGitlab),
36
-                    'multiple' => false,   // Multiple selection allowed
36
+                    'multiple' => false, // Multiple selection allowed
37 37
                     'placeholder' => 'Choose a projecton Gitlab',
38 38
                     'required' => false,
39 39
                     'choices_as_values' => true,
40
-                    'choice_label' => function ($gitLabProject) {
40
+                    'choice_label' => function($gitLabProject) {
41 41
                         if ($gitLabProject) {
42 42
                             return $gitLabProject->getName();
43 43
                         }
44 44
 
45 45
                         return;
46 46
                     },
47
-                    'choice_value' => function ($gitLabProject) {
47
+                    'choice_value' => function($gitLabProject) {
48 48
                         if ($gitLabProject) {
49 49
                             return $gitLabProject->getId();
50 50
                         }
Please login to merge, or discard this patch.
src/VersionControl/GitlabIssueBundle/Form/IssueType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,20 +37,20 @@  discard block
 block discarded – undo
37 37
             ->add('description', TextareaType::class)
38 38
             ->add('issueMilestone', ChoiceType::class, array(
39 39
                     'choices' => $this->getIssueMilestoneChoices(),
40
-                    'multiple' => false,   // Multiple selection allowed
40
+                    'multiple' => false, // Multiple selection allowed
41 41
                     //'expanded' => true,   // Render as checkboxes
42 42
                     'placeholder' => 'Choose a milestone',
43 43
                     'required' => false,
44 44
                     'choices_as_values' => true,
45 45
                     //'property' => 'title', // Assuming that the entity has a "name" property
46
-                    'choice_label' => function ($issueMilestone) {
46
+                    'choice_label' => function($issueMilestone) {
47 47
                         if ($issueMilestone) {
48 48
                             return $issueMilestone->getTitle();
49 49
                         }
50 50
 
51 51
                         return;
52 52
                     },
53
-                    'choice_value' => function ($issueMilestone) {
53
+                    'choice_value' => function($issueMilestone) {
54 54
                         if ($issueMilestone) {
55 55
                             return $issueMilestone->getId();
56 56
                         }
@@ -71,20 +71,20 @@  discard block
 block discarded – undo
71 71
             //->add('verUser')
72 72
             ->add('issueLabel', ChoiceType::class, array(
73 73
                     'choices' => $this->getIssueLabelChoices(),
74
-                    'multiple' => true,   // Multiple selection allowed
75
-                    'expanded' => true,   // Render as checkboxes
74
+                    'multiple' => true, // Multiple selection allowed
75
+                    'expanded' => true, // Render as checkboxes
76 76
                     //'property' => 'title', // Assuming that the entity has a "name" property
77 77
                     //'class' => 'VersionControl\GitControlBundle\Entity\IssueLabel',
78 78
                     'required' => false,
79 79
                     'choices_as_values' => true,
80
-                    'choice_label' => function ($issueLabel) {
80
+                    'choice_label' => function($issueLabel) {
81 81
                         if ($issueLabel) {
82 82
                             return $issueLabel->getTitle();
83 83
                         }
84 84
 
85 85
                         return;
86 86
                     },
87
-                    'choice_value' => function ($issueLabel) {
87
+                    'choice_value' => function($issueLabel) {
88 88
                         if ($issueLabel) {
89 89
                             return $issueLabel->getId();
90 90
                         }
Please login to merge, or discard this patch.
src/VersionControl/GitlabIssueBundle/Form/IssueEditType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,20 +38,20 @@  discard block
 block discarded – undo
38 38
                     )
39 39
             ->add('issueMilestone', ChoiceType::class, array(
40 40
                     'choices' => $this->getIssueMilestoneChoices(),
41
-                    'multiple' => false,   // Multiple selection allowed
41
+                    'multiple' => false, // Multiple selection allowed
42 42
                     //'expanded' => true,   // Render as checkboxes
43 43
                     'placeholder' => 'Choose a milestone',
44 44
                     'required' => false,
45 45
                     'choices_as_values' => true,
46 46
                     //'property' => 'title', // Assuming that the entity has a "name" property
47
-                    'choice_label' => function ($issueMilestone) {
47
+                    'choice_label' => function($issueMilestone) {
48 48
                         if ($issueMilestone) {
49 49
                             return $issueMilestone->getTitle();
50 50
                         }
51 51
 
52 52
                         return;
53 53
                     },
54
-                    'choice_value' => function ($issueMilestone) {
54
+                    'choice_value' => function($issueMilestone) {
55 55
                         if ($issueMilestone) {
56 56
                             return $issueMilestone->getId();
57 57
                         }
@@ -68,20 +68,20 @@  discard block
 block discarded – undo
68 68
                 ))
69 69
             ->add('issueLabel', ChoiceType::class, array(
70 70
                     'choices' => $this->getIssueLabelChoices(),
71
-                    'multiple' => true,   // Multiple selection allowed
72
-                    'expanded' => true,   // Render as checkboxes
71
+                    'multiple' => true, // Multiple selection allowed
72
+                    'expanded' => true, // Render as checkboxes
73 73
                     //'property' => 'title', // Assuming that the entity has a "name" property
74 74
                     //'class' => 'VersionControl\GitControlBundle\Entity\IssueLabel',
75 75
                     'required' => false,
76 76
                     'choices_as_values' => true,
77
-                    'choice_label' => function ($issueLabel) {
77
+                    'choice_label' => function($issueLabel) {
78 78
                         if ($issueLabel) {
79 79
                             return $issueLabel->getTitle();
80 80
                         }
81 81
 
82 82
                         return;
83 83
                     },
84
-                    'choice_value' => function ($issueLabel) {
84
+                    'choice_value' => function($issueLabel) {
85 85
                         if ($issueLabel) {
86 86
                             return $issueLabel->getId();
87 87
                         }
Please login to merge, or discard this patch.
src/VersionControl/DoctrineEncryptBundle/Encryptors/AES256Encryptor.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
         if (defined('PHP_MAJOR_VERSION') && PHP_MAJOR_VERSION >= 7) {
46 46
             $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length("AES-256-ECB"));
47 47
         
48
-            return trim(base64_encode(openssl_encrypt ( 
49
-                $data , 
48
+            return trim(base64_encode(openssl_encrypt( 
49
+                $data, 
50 50
                 "AES-256-ECB", 
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
                                         ))));
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
         if (defined('PHP_MAJOR_VERSION') && PHP_MAJOR_VERSION >= 7) {
75 75
             $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length("AES-256-ECB"));
76 76
             
77
-            return trim(openssl_decrypt ( 
78
-                base64_decode($data) , 
77
+            return trim(openssl_decrypt( 
78
+                base64_decode($data), 
79 79
                 "AES-256-ECB", 
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.