@@ -30,61 +30,61 @@ |
||
30 | 30 | ) |
31 | 31 | ->add( |
32 | 32 | 'content_WHAT', null, [ |
33 | - 'required' => true, |
|
34 | - 'data' => '*', |
|
35 | - 'attr' => [ |
|
36 | - 'style' => 'width: 180px;' |
|
37 | - ], |
|
38 | - 'disabled' => false, |
|
39 | - 'label' => false, |
|
40 | - 'trim' => true |
|
41 | - ] |
|
33 | + 'required' => true, |
|
34 | + 'data' => '*', |
|
35 | + 'attr' => [ |
|
36 | + 'style' => 'width: 180px;' |
|
37 | + ], |
|
38 | + 'disabled' => false, |
|
39 | + 'label' => false, |
|
40 | + 'trim' => true |
|
41 | + ] |
|
42 | 42 | ) |
43 | 43 | ->add( |
44 | 44 | 'content_FROM', ChoiceType::class, [ |
45 | - 'choices' => ['FROM' => 'FROM'], |
|
46 | - 'attr' => [ |
|
47 | - 'style' => 'width: 180px;' |
|
48 | - ], |
|
49 | - 'disabled' => true, |
|
50 | - 'label' => false, |
|
51 | - 'trim' => true |
|
52 | - ] |
|
45 | + 'choices' => ['FROM' => 'FROM'], |
|
46 | + 'attr' => [ |
|
47 | + 'style' => 'width: 180px;' |
|
48 | + ], |
|
49 | + 'disabled' => true, |
|
50 | + 'label' => false, |
|
51 | + 'trim' => true |
|
52 | + ] |
|
53 | 53 | ) |
54 | 54 | ->add( |
55 | 55 | 'content_TABLE', ChoiceType::class, [ |
56 | - 'choices' => ['caches' => 'caches', 'user' => 'user'], |
|
57 | - 'attr' => [ |
|
58 | - 'style' => 'width: 180px;' |
|
59 | - ], |
|
60 | - 'disabled' => false, |
|
61 | - 'label' => false, |
|
62 | - 'trim' => true |
|
63 | - ] |
|
56 | + 'choices' => ['caches' => 'caches', 'user' => 'user'], |
|
57 | + 'attr' => [ |
|
58 | + 'style' => 'width: 180px;' |
|
59 | + ], |
|
60 | + 'disabled' => false, |
|
61 | + 'label' => false, |
|
62 | + 'trim' => true |
|
63 | + ] |
|
64 | 64 | ) |
65 | 65 | ->add( |
66 | 66 | 'content_WHERE', ChoiceType::class, [ |
67 | - 'choices' => ['WHERE' => 'WHERE'], |
|
68 | - 'attr' => [ |
|
69 | - 'style' => 'width: 180px;' |
|
70 | - ], |
|
71 | - 'disabled' => true, |
|
72 | - 'label' => false, |
|
73 | - 'trim' => true |
|
74 | - ] |
|
67 | + 'choices' => ['WHERE' => 'WHERE'], |
|
68 | + 'attr' => [ |
|
69 | + 'style' => 'width: 180px;' |
|
70 | + ], |
|
71 | + 'disabled' => true, |
|
72 | + 'label' => false, |
|
73 | + 'trim' => true |
|
74 | + ] |
|
75 | 75 | ) |
76 | 76 | ->add( |
77 | 77 | 'content_CONDITION', null, [ |
78 | - 'required' => false, |
|
79 | - 'data' => '', |
|
80 | - 'attr' => [ |
|
81 | - 'placeholder' => 'id=\'123\'', |
|
82 | - 'style' => 'width: 180px;' |
|
83 | - ], |
|
84 | - 'disabled' => false, |
|
85 | - 'label' => false, |
|
86 | - 'trim' => true |
|
87 | - ] |
|
78 | + 'required' => false, |
|
79 | + 'data' => '', |
|
80 | + 'attr' => [ |
|
81 | + 'placeholder' => 'id=\'123\'', |
|
82 | + 'style' => 'width: 180px;' |
|
83 | + ], |
|
84 | + 'disabled' => false, |
|
85 | + 'label' => false, |
|
86 | + 'trim' => true |
|
87 | + ] |
|
88 | 88 | ) |
89 | 89 | ->add( |
90 | 90 | 'Suchen', SubmitType::class, [ |
@@ -40,12 +40,12 @@ |
||
40 | 40 | |
41 | 41 | return $this->render( |
42 | 42 | 'backend/oconly81/index.html.twig', [ |
43 | - 'ocOnly81_user' => $userData, |
|
44 | - 'ocOnly81_matrix' => $matrixData[0], |
|
45 | - 'ocOnly81_dsum' => $matrixData[1], |
|
46 | - 'ocOnly81_tsum' => $matrixData[2], |
|
47 | - 'ocOnly81_overall_sum' => $matrixData[3] |
|
48 | - ] |
|
43 | + 'ocOnly81_user' => $userData, |
|
44 | + 'ocOnly81_matrix' => $matrixData[0], |
|
45 | + 'ocOnly81_dsum' => $matrixData[1], |
|
46 | + 'ocOnly81_tsum' => $matrixData[2], |
|
47 | + 'ocOnly81_overall_sum' => $matrixData[3] |
|
48 | + ] |
|
49 | 49 | ); |
50 | 50 | } |
51 | 51 |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | private function ocOnly81_get_matrixData() |
58 | 58 | : array |
59 | 59 | { |
60 | - for ($i = 0; $i <= 8; $i ++) { |
|
61 | - for ($j = 0; $j <= 8; $j ++) { |
|
60 | + for ($i = 0; $i <= 8; $i++) { |
|
61 | + for ($j = 0; $j <= 8; $j++) { |
|
62 | 62 | $matrix[$i][$j] = 0; |
63 | 63 | $dsum[$i] = 0; |
64 | 64 | $tsum[$i] = 0; |
@@ -75,10 +75,10 @@ discard block |
||
75 | 75 | $data = $qb->execute()->fetchAll(); |
76 | 76 | |
77 | 77 | foreach ($data as $item) { |
78 | - $matrix[$item['difficulty'] - 2][$item['terrain'] - 2] ++; |
|
78 | + $matrix[$item['difficulty'] - 2][$item['terrain'] - 2]++; |
|
79 | 79 | } |
80 | 80 | |
81 | - for ($i = 0; $i <= 8; $i ++) { |
|
81 | + for ($i = 0; $i <= 8; $i++) { |
|
82 | 82 | $dsum[$i] = $dsum[$i] + array_sum($matrix[$i]); |
83 | 83 | $tsum[$i] = $tsum[$i] + array_sum(array_column($matrix, $i)); |
84 | 84 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | 'count' => 1 |
119 | 119 | ]; |
120 | 120 | } else { |
121 | - $result[$item['user_id']]['count'] ++; |
|
121 | + $result[$item['user_id']]['count']++; |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 |
@@ -76,11 +76,11 @@ |
||
76 | 76 | |
77 | 77 | return $this->render( |
78 | 78 | 'backend/maps/index.html.twig', [ |
79 | - 'mapCenterViewLat' => $mapCenterViewLat, |
|
80 | - 'mapCenterViewLon' => $mapCenterViewLon, |
|
81 | - 'mapZoom' => '6', |
|
82 | - 'mapWP' => $mapWP |
|
83 | - ] |
|
79 | + 'mapCenterViewLat' => $mapCenterViewLat, |
|
80 | + 'mapCenterViewLon' => $mapCenterViewLon, |
|
81 | + 'mapZoom' => '6', |
|
82 | + 'mapWP' => $mapWP |
|
83 | + ] |
|
84 | 84 | ); |
85 | 85 | } |
86 | 86 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $databaseArray |
145 | 145 | ); |
146 | 146 | |
147 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
147 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
148 | 148 | |
149 | 149 | return $entity; |
150 | 150 | } |
@@ -219,9 +219,9 @@ discard block |
||
219 | 219 | public function getEntityFromDatabaseArray(array $data) : UserRolesEntity |
220 | 220 | { |
221 | 221 | $entity = new UserRolesEntity(); |
222 | - $entity->id = (int) $data['id']; |
|
223 | - $entity->userId = (string) $data['user_id']; |
|
224 | - $entity->roleId = (string) $data['role_id']; |
|
222 | + $entity->id = (int)$data['id']; |
|
223 | + $entity->userId = (string)$data['user_id']; |
|
224 | + $entity->roleId = (string)$data['role_id']; |
|
225 | 225 | |
226 | 226 | return $entity; |
227 | 227 | } |
@@ -146,10 +146,10 @@ discard block |
||
146 | 146 | |
147 | 147 | return $this->render( |
148 | 148 | 'backend/roles/team.assignment.html.twig', [ |
149 | - 'rolesUserSearchForm' => $form->createView(), |
|
150 | - 'user_account_details' => $fetchedUser, |
|
151 | - 'roleNames' => $roleNames |
|
152 | - ] |
|
149 | + 'rolesUserSearchForm' => $form->createView(), |
|
150 | + 'user_account_details' => $fetchedUser, |
|
151 | + 'roleNames' => $roleNames |
|
152 | + ] |
|
153 | 153 | ); |
154 | 154 | } |
155 | 155 | |
@@ -177,10 +177,10 @@ discard block |
||
177 | 177 | |
178 | 178 | return $this->render( |
179 | 179 | 'backend/roles/team.assignment.html.twig', [ |
180 | - 'rolesUserSearchForm' => $form->createView(), |
|
181 | - 'user_account_details' => $fetchedUser, |
|
182 | - 'roleNames' => $roleNames |
|
183 | - ] |
|
180 | + 'rolesUserSearchForm' => $form->createView(), |
|
181 | + 'user_account_details' => $fetchedUser, |
|
182 | + 'roleNames' => $roleNames |
|
183 | + ] |
|
184 | 184 | ); |
185 | 185 | } |
186 | 186 | |
@@ -209,10 +209,10 @@ discard block |
||
209 | 209 | |
210 | 210 | return $this->render( |
211 | 211 | 'backend/roles/team.assignment.html.twig', [ |
212 | - 'rolesUserSearchForm' => $form->createView(), |
|
213 | - 'user_account_details' => $fetchedUser, |
|
214 | - 'roleNames' => $roleNames |
|
215 | - ] |
|
212 | + 'rolesUserSearchForm' => $form->createView(), |
|
213 | + 'user_account_details' => $fetchedUser, |
|
214 | + 'roleNames' => $roleNames |
|
215 | + ] |
|
216 | 216 | ); |
217 | 217 | } |
218 | 218 |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | $databaseArray |
173 | 173 | ); |
174 | 174 | |
175 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
175 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
176 | 176 | |
177 | 177 | return $entity; |
178 | 178 | } |
@@ -268,8 +268,8 @@ discard block |
||
268 | 268 | public function getEntityFromDatabaseArray(array $data) |
269 | 269 | : SecurityRolesEntity { |
270 | 270 | $entity = new SecurityRolesEntity(); |
271 | - $entity->id = (int) $data['id']; |
|
272 | - $entity->role = (string) $data['role']; |
|
271 | + $entity->id = (int)$data['id']; |
|
272 | + $entity->role = (string)$data['role']; |
|
273 | 273 | |
274 | 274 | return $entity; |
275 | 275 | } |
@@ -20,21 +20,21 @@ |
||
20 | 20 | $builder |
21 | 21 | ->add( |
22 | 22 | 'content_user_searchfield', null, [ |
23 | - 'attr' => [ |
|
24 | - 'placeholder' => 'User-Id', |
|
25 | - 'autofocus' => 'autofocus', |
|
26 | - 'size' => '10%', |
|
27 | - 'minlength' => '6', |
|
28 | - 'maxlength' => '7', |
|
29 | - 'style' => 'width: 250px;', |
|
30 | - 'pattern' => '^[0-9]{6,7}', |
|
31 | - 'title' => 'Only 6-7 numerics are allowed.', |
|
32 | - ], |
|
33 | - 'required' => true, |
|
34 | - 'disabled' => false, |
|
35 | - 'label' => false, |
|
36 | - 'trim' => true |
|
37 | - ] |
|
23 | + 'attr' => [ |
|
24 | + 'placeholder' => 'User-Id', |
|
25 | + 'autofocus' => 'autofocus', |
|
26 | + 'size' => '10%', |
|
27 | + 'minlength' => '6', |
|
28 | + 'maxlength' => '7', |
|
29 | + 'style' => 'width: 250px;', |
|
30 | + 'pattern' => '^[0-9]{6,7}', |
|
31 | + 'title' => 'Only 6-7 numerics are allowed.', |
|
32 | + ], |
|
33 | + 'required' => true, |
|
34 | + 'disabled' => false, |
|
35 | + 'label' => false, |
|
36 | + 'trim' => true |
|
37 | + ] |
|
38 | 38 | ) |
39 | 39 | ->add( |
40 | 40 | 'search_One', SubmitType::class, [ |
@@ -24,22 +24,22 @@ |
||
24 | 24 | $builder |
25 | 25 | ->add( |
26 | 26 | 'content_comment_field', TextareaType::class, [ |
27 | - 'attr' => [ |
|
28 | - 'maxlength' => '100000', |
|
29 | - 'overflow' => 'auto', |
|
30 | - 'rows' => '10', |
|
31 | - ], |
|
32 | - 'required' => false, |
|
33 | - 'disabled' => false, |
|
34 | - 'label' => false, |
|
35 | - 'trim' => true |
|
36 | - ] |
|
27 | + 'attr' => [ |
|
28 | + 'maxlength' => '100000', |
|
29 | + 'overflow' => 'auto', |
|
30 | + 'rows' => '10', |
|
31 | + ], |
|
32 | + 'required' => false, |
|
33 | + 'disabled' => false, |
|
34 | + 'label' => false, |
|
35 | + 'trim' => true |
|
36 | + ] |
|
37 | 37 | ) |
38 | 38 | ->add( |
39 | 39 | 'save_comment_button', SubmitType::class, [ |
40 | - 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 180px;'], |
|
41 | - 'label' => ' |
@@ -27,14 +27,14 @@ discard block |
||
27 | 27 | ], |
28 | 28 | 'constraints' => [ |
29 | 29 | new File([ |
30 | - 'maxSize' => '20480000', |
|
31 | - 'mimeTypes' => [ |
|
32 | - 'application/gpx+xml', |
|
33 | - 'application/xml', |
|
34 | - 'text/xml', |
|
35 | - ], |
|
36 | - 'mimeTypesMessage' => 'Please upload a valid GPX/XML document', |
|
37 | - ]) |
|
30 | + 'maxSize' => '20480000', |
|
31 | + 'mimeTypes' => [ |
|
32 | + 'application/gpx+xml', |
|
33 | + 'application/xml', |
|
34 | + 'text/xml', |
|
35 | + ], |
|
36 | + 'mimeTypesMessage' => 'Please upload a valid GPX/XML document', |
|
37 | + ]) |
|
38 | 38 | ], |
39 | 39 | 'multiple' => false, |
40 | 40 | 'required' => true, |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | ) |
46 | 46 | ->add( |
47 | 47 | 'start_upload', SubmitType::class, [ |
48 | - 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 100px;'], |
|
49 | - 'label' => ' |