@@ -37,13 +37,13 @@ discard block |
||
| 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 |
||
| 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) |
@@ -37,7 +37,7 @@ |
||
| 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 |
@@ -30,7 +30,7 @@ discard block |
||
| 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 |
||
| 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, |
@@ -36,7 +36,7 @@ |
||
| 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 |
@@ -40,7 +40,7 @@ discard block |
||
| 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 |
||
| 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() |
@@ -57,10 +57,10 @@ |
||
| 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( |
@@ -29,11 +29,11 @@ |
||
| 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 |
@@ -69,7 +69,7 @@ |
||
| 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 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -14,14 +14,14 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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()); |
@@ -15,7 +15,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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(); |