@@ -13,10 +13,10 @@ |
||
| 13 | 13 | $project = $this->getProject($user); |
| 14 | 14 | |
| 15 | 15 | // Get File List |
| 16 | - $projectFileListURL = $this->client->getContainer()->get('router')->generate('project_filelist',array('id'=>$project->getId())); |
|
| 16 | + $projectFileListURL = $this->client->getContainer()->get('router')->generate('project_filelist', array('id'=>$project->getId())); |
|
| 17 | 17 | |
| 18 | 18 | // Create a new entry in the database |
| 19 | 19 | $crawler = $this->client->request('GET', $projectFileListURL); |
| 20 | - $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$projectFileListURL); |
|
| 20 | + $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET ' . $projectFileListURL); |
|
| 21 | 21 | } |
| 22 | 22 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | $crawler = $this->client->request('GET', $url, array(), array(), array( |
| 17 | 17 | 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
| 18 | 18 | )); |
| 19 | - $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET '.$url); |
|
| 19 | + $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), 'Unexpected HTTP status code for GET ' . $url); |
|
| 20 | 20 | |
| 21 | 21 | $gitPath = $this->createTempFolder('NewRepo'); |
| 22 | 22 | // Fill in the form and submit it |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $container->setParameter('version_control_dynamic_discriminator_map.mapping', array()); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 38 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 39 | 39 | $loader->load('services.yml'); |
| 40 | 40 | |
| 41 | 41 | //$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
@@ -59,7 +59,7 @@ |
||
| 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); |
@@ -37,20 +37,20 @@ discard block |
||
| 37 | 37 | ->add('description', TextareaType::class) |
| 38 | 38 | ->add('issueMilestone', 'choice', 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 |
||
| 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 | } |
@@ -38,20 +38,20 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -30,7 +30,7 @@ |
||
| 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 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $this->authenticate(); |
| 66 | 66 | $label = $this->client->api('projects')->addLabel($this->issueIntegrator->getProjectName(), array( |
| 67 | 67 | 'name' => $issueLabel->getTitle(), |
| 68 | - 'color' => '#'.$issueLabel->getHexColor(), |
|
| 68 | + 'color' => '#' . $issueLabel->getHexColor(), |
|
| 69 | 69 | )); |
| 70 | 70 | |
| 71 | 71 | return $this->mapToEntity($label); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $label = $this->client->api('projects')->updateLabel($this->issueIntegrator->getProjectName(), array( |
| 82 | 82 | 'name' => $issueLabel->getId(), |
| 83 | 83 | 'new_name' => $issueLabel->getTitle(), |
| 84 | - 'color' => '#'.$issueLabel->getHexColor(), |
|
| 84 | + 'color' => '#' . $issueLabel->getHexColor(), |
|
| 85 | 85 | )); |
| 86 | 86 | |
| 87 | 87 | return $this->mapToEntity($label); |
@@ -37,20 +37,20 @@ discard block |
||
| 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 |
||
| 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 | } |