@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | $tags = $this->gitCommands->command('tag')->getTags(); |
46 | 46 | |
47 | - $defaultData =array(); |
|
47 | + $defaultData = array(); |
|
48 | 48 | $form = $this->createNewTagForm($this->project, $defaultData); |
49 | 49 | |
50 | 50 | return array_merge($this->viewVariables, array( |
@@ -108,12 +108,12 @@ discard block |
||
108 | 108 | ->add('name', TextType::class, array( |
109 | 109 | 'label' => 'Tag Name', 'required' => true, 'constraints' => array( |
110 | 110 | new NotBlank(), |
111 | - ), ) |
|
111 | + ),) |
|
112 | 112 | ) |
113 | 113 | ->add('message', TextType::class, array( |
114 | 114 | 'label' => 'Tag Message', 'required' => true, 'constraints' => array( |
115 | 115 | new NotBlank(), |
116 | - ), ) |
|
116 | + ),) |
|
117 | 117 | ) |
118 | 118 | ->add('commit', HiddenType::class) |
119 | 119 | ->getForm(); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | public function pushTagAction(Request $request, $tag, $responseType) |
136 | 136 | { |
137 | 137 | $success = true; |
138 | - $form = $this->createPushTagForm($this->project,$tag); |
|
138 | + $form = $this->createPushTagForm($this->project, $tag); |
|
139 | 139 | $form->add('push', SubmitType::class, array('label' => 'Push')); |
140 | 140 | |
141 | 141 | $form->handleRequest($request); |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | ->add('remote', ChoiceType::class, array( |
205 | 205 | 'label' => 'Remote Server', 'choices' => $remoteChoices, 'data' => $firstOrigin, 'required' => false, 'choices_as_values' => true, 'constraints' => array( |
206 | 206 | new NotBlank(), |
207 | - ), ) |
|
207 | + ),) |
|
208 | 208 | ) |
209 | 209 | ->add('tag', HiddenType::class) |
210 | 210 | ->getForm(); |
@@ -220,12 +220,12 @@ discard block |
||
220 | 220 | ->add('remoteName', TextType::class, array( |
221 | 221 | 'label' => 'Remote Name', 'required' => false, 'constraints' => array( |
222 | 222 | new NotBlank(), |
223 | - ), ) |
|
223 | + ),) |
|
224 | 224 | ) |
225 | 225 | ->add('remoteUrl', TextType::class, array( |
226 | 226 | 'label' => 'Remote Url', 'required' => false, 'constraints' => array( |
227 | 227 | new NotBlank(), |
228 | - ), ) |
|
228 | + ),) |
|
229 | 229 | )->add('submit', SubmitType::class, array('label' => 'Add')) |
230 | 230 | |
231 | 231 | ->getForm(); |
@@ -242,12 +242,12 @@ discard block |
||
242 | 242 | ->add('remoteName', HiddenType::class, array( |
243 | 243 | 'constraints' => array( |
244 | 244 | new NotBlank(), |
245 | - ), ) |
|
245 | + ),) |
|
246 | 246 | ) |
247 | 247 | ->add('newRemoteName', TextType::class, array( |
248 | 248 | 'label' => 'New Remote Name', 'required' => false, 'constraints' => array( |
249 | 249 | new NotBlank(), |
250 | - ), ) |
|
250 | + ),) |
|
251 | 251 | )->add('submit', SubmitType::class, array('label' => 'Rename')) |
252 | 252 | |
253 | 253 | ->getForm(); |
@@ -219,12 +219,12 @@ |
||
219 | 219 | ->add('remote', ChoiceType::class, array( |
220 | 220 | 'label' => 'Remote Server', 'choices' => $remoteChoices, 'data' => $firstOrigin, 'required' => false, 'choices_as_values' => true, 'constraints' => array( |
221 | 221 | new NotBlank(), |
222 | - ), ) |
|
222 | + ),) |
|
223 | 223 | ) |
224 | 224 | ->add('branch', ChoiceType::class, array( |
225 | 225 | 'label' => 'Branch', 'choices' => $branchChoices, 'preferred_choices' => array($currentBranch), 'data' => trim($currentBranch), 'required' => false, 'choices_as_values' => true, 'constraints' => array( |
226 | 226 | new NotBlank(), |
227 | - ), ) |
|
227 | + ),) |
|
228 | 228 | ) |
229 | 229 | ->getForm(); |
230 | 230 |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | { |
109 | 109 | $firstPage = ''; |
110 | 110 | if ($this->currentPage > ($this->midRange + 1)) { // if number of pages between "currentPage" and "firstPage" exceeds $midRange with 1... |
111 | - $firstPage .= '<li><a href="'.$this->generateUrl(1).'" class="first">First Page</a></li>'; // ...show "first page"-link |
|
111 | + $firstPage .= '<li><a href="'.$this->generateUrl(1).'" class="first">First Page</a></li>'; // ...show "first page"-link |
|
112 | 112 | if ($this->currentPage > ($this->midRange + 2)) { // if number of pages between $currentPage and "first page" exceeds $midRange with more than 1 |
113 | 113 | //$firstPage .= '…'; // add "..." between "1st page"-link and first page in $range |
114 | 114 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | if (($this->currentPage < ($this->numPages - $this->midRange) - 1)) { // if number of pages between $currentPage and "last page" exceeds $range with more than two |
124 | 124 | //$lastPage .= '…'; // add "..." between "last page"-link and last page in $range |
125 | 125 | } |
126 | - $lastPage .= '<li><a href="'.$this->generateUrl($this->numPages).'" class="last">'.$this->numPages.'</a></li>'; // show "last page"-link |
|
126 | + $lastPage .= '<li><a href="'.$this->generateUrl($this->numPages).'" class="last">'.$this->numPages.'</a></li>'; // show "last page"-link |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | return $lastPage; |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | ->add('password', PasswordType::class, array('required' => false)) |
47 | 47 | ->add('privateKey', TextareaType::class, array('required' => false)) |
48 | 48 | ->add('privateKeyPassword', PasswordType::class, array('required' => false)) |
49 | - ->add('projectEnvironmentFilePerm', ProjectEnvironmentFilePermType::class, array('required' => false)); |
|
49 | + ->add('projectEnvironmentFilePerm', ProjectEnvironmentFilePermType::class, array('required' => false)); |
|
50 | 50 | |
51 | 51 | if ($this->useCloneLocation === true) { |
52 | 52 | $builder->add('gitCloneLocation', TextType::class, array('required' => false)); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $resolver->setDefaults(array( |
62 | 62 | 'data_class' => 'VersionControl\GitControlBundle\Entity\ProjectEnvironment' |
63 | 63 | //,'cascade_validation' => true |
64 | -, 'validation_groups' => function (FormInterface $form) { |
|
64 | +, 'validation_groups' => function(FormInterface $form) { |
|
65 | 65 | if ($form->has('gitaction')) { |
66 | 66 | $gitAction = $form->get('gitaction')->getData(); |
67 | 67 |
@@ -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) |
@@ -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 |
@@ -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( |