Completed
Branch master (140226)
by Paul
09:21
created
src/VersionControl/GitControlBundle/Form/IssueType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
             //->add('updatedAt')
38 38
             //->add('githubNumber')
39 39
             ->add('issueMilestone', EntityType::class, array(
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
                     'property' => 'title', // Assuming that the entity has a "name" property
45 45
                     'class' => 'VersionControl\GitControlBundle\Entity\IssueMilestone',
46
-                    'query_builder' => function (IssueMilestoneRepository $er) use ($project) {
46
+                    'query_builder' => function(IssueMilestoneRepository $er) use ($project) {
47 47
                         return $er->createQueryBuilder('a')
48 48
                             ->where('a.project = :project')
49 49
                             ->setParameter('project', $project)
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
                 ))
56 56
             //->add('verUser')
57 57
             ->add('issueLabel', EntityType::class, array(
58
-                    'multiple' => true,   // Multiple selection allowed
59
-                    'expanded' => true,   // Render as checkboxes
58
+                    'multiple' => true, // Multiple selection allowed
59
+                    'expanded' => true, // Render as checkboxes
60 60
                     'property' => 'title', // Assuming that the entity has a "name" property
61 61
                     'class' => 'VersionControl\GitControlBundle\Entity\IssueLabel',
62 62
                     'required' => false,
63
-                    'query_builder' => function (EntityRepository $er) use ($project) {
63
+                    'query_builder' => function(EntityRepository $er) use ($project) {
64 64
                         return $er->createQueryBuilder('a')
65 65
                             ->where('a.project = :project OR a.allProjects = 1')
66 66
                             ->setParameter('project', $project)
Please login to merge, or discard this patch.
src/VersionControl/GitControlBundle/Form/IssueEditType.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
                     'property' => 'title', // Assuming that the entity has a "name" property
38 38
                     'class' => 'VersionControl\GitControlBundle\Entity\IssueMilestone',
39 39
                 ))
40
-             ->add('issueLabel', EntityType::class, array(
40
+                ->add('issueLabel', EntityType::class, array(
41 41
                     'multiple' => true,   // Multiple selection allowed
42 42
                     'expanded' => true,   // Render as checkboxes
43 43
                     'property' => 'title', // Assuming that the entity has a "name" property
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             ->add('status', ChoiceType::class, array('label' => 'State', 'choices' => array('open' => 'Open', 'closed' => 'Close'), 'required' => false, 'placeholder' => 'Please select a State')
31 31
                     )
32 32
             ->add('issueMilestone', EntityType::class, array(
33
-                    'multiple' => false,   // Multiple selection allowed
33
+                    'multiple' => false, // Multiple selection allowed
34 34
                     //'expanded' => true,   // Render as checkboxes
35 35
                     'placeholder' => 'Choose a milestone',
36 36
                     'required' => false,
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
                     'class' => 'VersionControl\GitControlBundle\Entity\IssueMilestone',
39 39
                 ))
40 40
              ->add('issueLabel', EntityType::class, array(
41
-                    'multiple' => true,   // Multiple selection allowed
42
-                    'expanded' => true,   // Render as checkboxes
41
+                    'multiple' => true, // Multiple selection allowed
42
+                    'expanded' => true, // Render as checkboxes
43 43
                     'property' => 'title', // Assuming that the entity has a "name" property
44 44
                     'class' => 'VersionControl\GitControlBundle\Entity\IssueLabel',
45 45
                     'required' => false,
Please login to merge, or discard this patch.
src/VersionControl/GitControlBundle/Form/UserProjectsType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
                     'class' => 'VersionControl\GitControlBundle\Entity\User\User',
37 37
                     'choice_label' => 'username',
38 38
                     'placeholder' => 'Please select a user',
39
-                    'query_builder' => function (EntityRepository $er) use ($projectId) {
39
+                    'query_builder' => function(EntityRepository $er) use ($projectId) {
40 40
                         $qb = $er->createQueryBuilder('a');
41 41
 
42 42
                         $nots = $qb
Please login to merge, or discard this patch.
src/VersionControl/GitControlBundle/Form/CommitType.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             ->add('comment', TextareaType::class, array(
41 41
             'label' => 'Comment', 'required' => false,
42 42
             //,'constraints' => array(
43
-               // new NotBlank(array('message'=>'Please add a commit comment.'))
43
+                // new NotBlank(array('message'=>'Please add a commit comment.'))
44 44
             //)
45 45
             ))
46 46
         ->add('statushash', HiddenType::class, array(
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
                 'choice_label' => function ($gitFile) {
61 61
                     return $gitFile->getPath1();
62 62
                 },
63
-                 'choice_value' => function ($gitFile) {
64
-                     return $gitFile->getPath1();
65
-                 },
63
+                    'choice_value' => function ($gitFile) {
64
+                        return $gitFile->getPath1();
65
+                    },
66 66
                 //'constraints' => array(
67 67
                 //    new NotBlank()
68 68
                 //    ,new \VersionControl\GitControlBundle\Validator\Constraints\StatusHash()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@
 block discarded – undo
57 57
                 'expanded' => true,
58 58
                 'required' => false,
59 59
                 'choices_as_values' => true,
60
-                'choice_label' => function ($gitFile) {
60
+                'choice_label' => function($gitFile) {
61 61
                     return $gitFile->getPath1();
62 62
                 },
63
-                 'choice_value' => function ($gitFile) {
63
+                 'choice_value' => function($gitFile) {
64 64
                      return $gitFile->getPath1();
65 65
                  },
66 66
                 //'constraints' => array(
Please login to merge, or discard this patch.
public/theme/plugins/datatables/extensions/Scroller/examples/data/ssp.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
 // parameter represents the DataTables column identifier. In this case simple
30 30
 // indexes
31 31
 $columns = array(
32
-    array('db' => 'id',         'dt' => 0),
33
-    array('db' => 'firstname',  'dt' => 1),
34
-    array('db' => 'surname',    'dt' => 2),
35
-    array('db' => 'zip',        'dt' => 3),
36
-    array('db' => 'country',    'dt' => 4),
32
+    array('db' => 'id', 'dt' => 0),
33
+    array('db' => 'firstname', 'dt' => 1),
34
+    array('db' => 'surname', 'dt' => 2),
35
+    array('db' => 'zip', 'dt' => 3),
36
+    array('db' => 'country', 'dt' => 4),
37 37
 );
38 38
 
39 39
 // SQL server connection information
Please login to merge, or discard this patch.
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/ProjectEnvironmentControllerTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         // List users for project
15 15
         $url = $this->client->getContainer()->get('router')->generate('projectenvironment_new', array('id' => $project->getId()));
16 16
         $crawler = $this->client->request('GET', $url, array(), array(), array(
17
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
17
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
18 18
         ));
19 19
         $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$url);
20 20
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         // List users for project
50 50
         $url = $this->client->getContainer()->get('router')->generate('projectenvironment_existing', array('id' => $project->getId()));
51 51
         $crawler = $this->client->request('GET', $url, array(), array(), array(
52
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
52
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
53 53
         ));
54 54
         $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET /userprojects/');
55 55
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         // List users for project
81 81
         $url = $this->client->getContainer()->get('router')->generate('projectenvironment_clone', array('id' => $project->getId()));
82 82
         $crawler = $this->client->request('GET', $url, array(), array(), array(
83
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
83
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
84 84
         ));
85 85
         $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET /userprojects/');
86 86
 
Please login to merge, or discard this patch.
GitControlBundle/Tests/Controller/IssueLabelControllerTest.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
14 14
         // List Issue labels
15 15
         $listLabelURL = $this->client->getContainer()->get('router')->generate('issuelabels', array('id' => $project->getId()));
16 16
         $crawler = $this->client->request('GET', $listLabelURL, array(), array(), array(
17
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
17
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
18 18
         ));
19 19
         $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$listLabelURL);
20 20
 
21 21
         //Click New Issue Label Link
22 22
         $newIssueLabelLink = $crawler->filter('a:contains("New Label")')->link();
23 23
         $crawler = $this->client->request($newIssueLabelLink->getMethod(), $newIssueLabelLink->getUri(), array(), array(), array(
24
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
24
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
25 25
         ));
26 26
 
27 27
         $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$newIssueLabelLink->getUri());
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
         // Check data in the show view
40 40
         $this->assertGreaterThan(0, $crawler->filter('a:contains("Test Label")')->count(), 'Missing element a:contains("Test Label")');
41 41
 
42
-         // Edit the issue label
42
+            // Edit the issue label
43 43
         $issueLabelEditLink = $crawler->filter('a:contains("Test Label")')->link();
44 44
         $crawler = $this->client->request($issueLabelEditLink->getMethod(), $issueLabelEditLink->getUri(), array(), array(), array(
45
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
45
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
46 46
         ));
47 47
 
48 48
         $this->assertGreaterThan(0, $crawler->filter('h1:contains("Test Label")')->count(), 'Missing element h1:contains("Test Label") on Issue label show page');
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         //Click Delete link
61 61
         $issueLabelDeleteLink = $crawler->filter('a:contains("Delete")')->link();
62 62
         $crawler = $this->client->request($issueLabelDeleteLink->getMethod(), $issueLabelDeleteLink->getUri(), array(), array(), array(
63
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
63
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
64 64
         ));
65 65
         $crawler = $this->client->followRedirect();
66 66
         $this->assertNotRegExp('/Test Label Edit/', $this->client->getResponse()->getContent());
Please login to merge, or discard this patch.
VersionControl/GitControlBundle/Tests/Controller/IssueControllerTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         $url = $this->client->getContainer()->get('router')->generate('issues', array('id' => $project->getId()));
16 16
 
17 17
         $crawler = $this->client->request('GET', $url, array(), array(), array(
18
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
18
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
19 19
         ));
20 20
         //$this->assertEquals(302, $this->client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET ".$url);
21 21
         //$crawler = $this->client->followRedirect();
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
         $newIssueLink = $crawler->filter('.box-tools > form > .pull-right > a')->link();
25 25
         $crawler = $this->client->request($newIssueLink->getMethod(), $newIssueLink->getUri(), array(), array(), array(
26
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
26
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
27 27
         ));
28 28
 
29 29
         $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$url);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         //Show Issue
47 47
         $issueShowLink = $crawler->filter('a:contains("Test")')->link();
48 48
         $crawler = $this->client->request($issueShowLink->getMethod(), $issueShowLink->getUri(), array(), array(), array(
49
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
49
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
50 50
         ));
51 51
 
52 52
         $this->assertGreaterThan(0, $crawler->filter('h1:contains("Test")')->count(), 'Missing element h1:contains("Test") on Issue show page');
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         // Edit the entity
55 55
         $issueEditLink = $crawler->filter('a:contains("Edit")')->link();
56 56
         $crawler = $this->client->request($issueEditLink->getMethod(), $issueEditLink->getUri(), array(), array(), array(
57
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
57
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
58 58
         ));
59 59
 
60 60
         $form = $crawler->selectButton('Update')->form(array(
@@ -75,13 +75,13 @@  discard block
 block discarded – undo
75 75
 
76 76
         //Back to Show Issue
77 77
         $crawler = $this->client->request($issueShowLink->getMethod(), $issueShowLink->getUri(), array(), array(), array(
78
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
78
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
79 79
         ));
80 80
 
81 81
         //Close Issue
82 82
         $issueCloseLink = $crawler->filter('a:contains("Close")')->link();
83 83
         $crawler = $this->client->request($issueCloseLink->getMethod(), $issueCloseLink->getUri(), array(), array(), array(
84
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
84
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
85 85
         ));
86 86
 
87 87
         $crawler = $this->client->followRedirect();
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
 
90 90
         //Back to Show Issue
91 91
         $crawler = $this->client->request($issueShowLink->getMethod(), $issueShowLink->getUri(), array(), array(), array(
92
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
92
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
93 93
         ));
94 94
 
95 95
         //Re-Open Issue
96 96
         $issueReOpenLink = $crawler->filter('a:contains("Re-Open")')->link();
97 97
         $crawler = $this->client->request($issueReOpenLink->getMethod(), $issueReOpenLink->getUri(), array(), array(), array(
98
-             'HTTP_X-Requested-With' => 'XMLHttpRequest',
98
+                'HTTP_X-Requested-With' => 'XMLHttpRequest',
99 99
         ));
100 100
 
101 101
         $crawler = $this->client->followRedirect();
Please login to merge, or discard this patch.