@@ -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 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | public function __construct() |
| 37 | 37 | { |
| 38 | 38 | $this->client = new \Github\Client( |
| 39 | - new \Github\HttpClient\CachedHttpClient(array('cache_dir' => $this->getCacheDir())) |
|
| 39 | + new \Github\HttpClient\CachedHttpClient(array('cache_dir' => $this->getCacheDir())) |
|
| 40 | 40 | ); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -29,15 +29,15 @@ |
||
| 29 | 29 | ; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * @param OptionsResolverInterface $resolver |
|
| 34 | - */ |
|
| 35 | - public function configureOptions(OptionsResolver $resolver) |
|
| 36 | - { |
|
| 37 | - $resolver->setDefaults(array( |
|
| 32 | + /** |
|
| 33 | + * @param OptionsResolverInterface $resolver |
|
| 34 | + */ |
|
| 35 | + public function configureOptions(OptionsResolver $resolver) |
|
| 36 | + { |
|
| 37 | + $resolver->setDefaults(array( |
|
| 38 | 38 | 'data_class' => 'VersionControl\GithubIssueBundle\Entity\ProjectIssueIntegratorGithub', |
| 39 | 39 | )); |
| 40 | - } |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * @return string |
@@ -66,8 +66,8 @@ |
||
| 66 | 66 | },*/ |
| 67 | 67 | )) |
| 68 | 68 | //->add('project', 'hidden_entity',array( |
| 69 | - // 'class' => 'VersionControl\GitControlBundle\Entity\Project' |
|
| 70 | - // )) |
|
| 69 | + // 'class' => 'VersionControl\GitControlBundle\Entity\Project' |
|
| 70 | + // )) |
|
| 71 | 71 | //->add('verUser') |
| 72 | 72 | ->add('issueLabel', ChoiceType::class, array( |
| 73 | 73 | 'choices' => $this->getIssueLabelChoices(), |
@@ -66,8 +66,8 @@ |
||
| 66 | 66 | },*/ |
| 67 | 67 | )) |
| 68 | 68 | //->add('project', 'hidden_entity',array( |
| 69 | - // 'class' => 'VersionControl\GitControlBundle\Entity\Project' |
|
| 70 | - // )) |
|
| 69 | + // 'class' => 'VersionControl\GitControlBundle\Entity\Project' |
|
| 70 | + // )) |
|
| 71 | 71 | //->add('verUser') |
| 72 | 72 | ->add('issueLabel', ChoiceType::class, array( |
| 73 | 73 | 'choices' => $this->getIssueLabelChoices(), |
@@ -72,16 +72,16 @@ |
||
| 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)); |