@@ -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 | } |
@@ -45,13 +45,13 @@ discard block |
||
| 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 |
||
| 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( |
@@ -51,7 +51,7 @@ discard block |
||
| 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 | )))); |
@@ -80,7 +80,7 @@ discard block |
||
| 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( |