Completed
Pull Request — development (#897)
by
unknown
50s
created
htdocs_symfony/src/Repository/MapsRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             foreach ($mapWP as $WP) {
69 69
                 $centerPoint['lat'] += $WP->latitude;
70 70
                 $centerPoint['lon'] += $WP->longitude;
71
-                $centerPoint['count'] ++;
71
+                $centerPoint['count']++;
72 72
             }
73 73
             if ($centerPoint['count'] > 0) {
74 74
                 $mapCenterViewLat = $centerPoint['lat'] / $centerPoint['count'];
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/OCOnly81Repository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
     public function ocOnly81_get_matrixData()
36 36
     : array
37 37
     {
38
-        for ($i = 0; $i <= 8; $i ++) {
39
-            for ($j = 0; $j <= 8; $j ++) {
38
+        for ($i = 0; $i <= 8; $i++) {
39
+            for ($j = 0; $j <= 8; $j++) {
40 40
                 $matrix[$i][$j] = 0;
41 41
                 $dsum[$i] = 0;
42 42
                 $tsum[$i] = 0;
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
         $data = $qb->executeQuery()->fetchAllAssociative();
54 54
 
55 55
         foreach ($data as $item) {
56
-            $matrix[$item['difficulty'] - 2][$item['terrain'] - 2] ++;
56
+            $matrix[$item['difficulty'] - 2][$item['terrain'] - 2]++;
57 57
         }
58 58
 
59
-        for ($i = 0; $i <= 8; $i ++) {
59
+        for ($i = 0; $i <= 8; $i++) {
60 60
             $dsum[$i] = $dsum[$i] + array_sum($matrix[$i]);
61 61
             $tsum[$i] = $tsum[$i] + array_sum(array_column($matrix, $i));
62 62
         }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                     'count' => 1
98 98
                 ];
99 99
             } else {
100
-                $result[$item['user_id']]['count'] ++;
100
+                $result[$item['user_id']]['count']++;
101 101
             }
102 102
         }
103 103
 
Please login to merge, or discard this patch.
htdocs_symfony/src/Form/SupportCommentField.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -24,22 +24,22 @@
 block discarded – undo
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' => '
Please login to merge, or discard this patch.
htdocs_symfony/src/Form/SupportImportGPX.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
45 45
             )
46 46
             ->add(
47 47
                 'start_upload', SubmitType::class, [
48
-                                  'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 100px;'],
49
-                                  'label' => '
Please login to merge, or discard this patch.