Completed
Push — develop ( afe0ec...7c3dfe )
by
unknown
13:30
created
module/Core/src/Core/Form/Form.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@
 block discarded – undo
257 257
     }
258 258
 
259 259
     /**
260
-     * @param $spec
260
+     * @param string $spec
261 261
      *
262 262
      * @return $this
263 263
      */
Please login to merge, or discard this patch.
module/Geo/src/Geo/Controller/Plugin/Photon.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * @param string $par Query Parameter
19 19
      * @param string $geoCoderUrl Url of the geo location service
20
-     * @param string $land language
20
+     * @param string $lang language
21 21
      *
22 22
      * @return array|mixed|string
23 23
      */
Please login to merge, or discard this patch.
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 namespace Geo\Controller\Plugin;
11 11
 
@@ -51,16 +51,16 @@  discard block
 block discarded – undo
51 51
         $r=[];
52 52
         foreach ($result as $key => $val) {
53 53
             $row=['name' => (property_exists($val->properties, 'name') ? $val->properties->name:''),
54
-                  'postcode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''),
55
-                  'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''),
56
-                  'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''),
57
-                  'state' => (property_exists($val->properties, 'state') ? $val->properties->state : ''),
58
-                  'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''),
59
-                  'coordinates' => implode(":", $val->geometry->coordinates),
60
-                  'osm_key' => (property_exists($val->properties, 'osm_key') ? $val->properties->osm_key : ''),
61
-                  'osm_value' => (property_exists($val->properties, 'osm_value') ? $val->properties->osm_value : ''),
62
-                  'osm_id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : ''),
63
-                  'data' => json_encode($val),
54
+                    'postcode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''),
55
+                    'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''),
56
+                    'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''),
57
+                    'state' => (property_exists($val->properties, 'state') ? $val->properties->state : ''),
58
+                    'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''),
59
+                    'coordinates' => implode(":", $val->geometry->coordinates),
60
+                    'osm_key' => (property_exists($val->properties, 'osm_key') ? $val->properties->osm_key : ''),
61
+                    'osm_value' => (property_exists($val->properties, 'osm_value') ? $val->properties->osm_value : ''),
62
+                    'osm_id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : ''),
63
+                    'data' => json_encode($val),
64 64
             ];
65 65
             $r[]=$row;
66 66
         }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $client->setMethod('GET');
28 28
 
29 29
         $osmTags = [
30
-            'tourism','aeroway','railway', 'amenity', 'historic', 'tunnel', 'mountain_pass',
30
+            'tourism', 'aeroway', 'railway', 'amenity', 'historic', 'tunnel', 'mountain_pass',
31 31
             'leisure', 'natural', 'bridge', 'waterway'
32 32
         ];
33 33
 
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
         $result = $response->getBody();
49 49
         $result = json_decode($result);
50 50
         $result = $result->features;
51
-        $r=[];
51
+        $r = [];
52 52
         foreach ($result as $key => $val) {
53
-            $row=['name' => (property_exists($val->properties, 'name') ? $val->properties->name:''),
54
-                  'postcode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''),
55
-                  'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''),
53
+            $row = ['name' => (property_exists($val->properties, 'name') ? $val->properties->name : ''),
54
+                  'postcode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode : ''),
55
+                  'city' =>(property_exists($val->properties, 'city') ? $val->properties->city : ''),
56 56
                   'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''),
57 57
                   'state' => (property_exists($val->properties, 'state') ? $val->properties->state : ''),
58 58
                   'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''),
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                   'osm_id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : ''),
63 63
                   'data' => json_encode($val),
64 64
             ];
65
-            $r[]=$row;
65
+            $r[] = $row;
66 66
         }
67 67
         return $r;
68 68
     }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/BaseFieldset.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     protected $locationEngineType;
27 27
 
28 28
     /**
29
-     * @param $locationEngineType
29
+     * @param string $locationEngineType
30 30
      */
31 31
     public function setLocationEngineType($locationEngineType) {
32 32
         $this->locationEngineType = $locationEngineType;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/ListFilterLocationFieldset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function __construct(array $options = [])
30 30
     {
31 31
         parent::__construct();
32
-        if (array_key_exists('location_engine_type',$options)) {
32
+        if (array_key_exists('location_engine_type', $options)) {
33 33
             $this->locationEngineType = $options['location_engine_type'];
34 34
         }
35 35
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 ),
67 67
                 'attributes' => [
68 68
                     'value' => '10', // default distance
69
-                    'data-searchbox'  => -1,  // hide the search box
69
+                    'data-searchbox'  => -1, // hide the search box
70 70
                     'data-allowclear' => 'false', // allow to clear a selected value
71 71
                     'data-placeholder'  => /*@translate*/ 'Distance',
72 72
                 ]
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/Form/ListFilterLocationFieldsetFactory.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @license MIT
7
- * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @license MIT
7
+     * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
+     */
9 9
   
10 10
 /** */
11 11
 namespace Organizations\Repository\Event;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/Form/BaseFieldsetFactory.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @license MIT
7
- * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @license MIT
7
+     * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
+     */
9 9
   
10 10
 /** */
11 11
 namespace Organizations\Repository\Event;
Please login to merge, or discard this patch.
module/Geo/src/Geo/Form/GeoText.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** GetText.php */
11 11
 namespace Geo\Form;
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
         $id = str_replace(array('[', ']'), array('-', ''), $name);
96 96
         $this->setAttribute('id', $id);
97 97
         $this->nameElement->setName($name . '[name]')
98
-                          ->setAttribute('id', $id . '-name')
99
-                          ->setAttribute('class', 'form-control geolocation');
98
+                            ->setAttribute('id', $id . '-name')
99
+                            ->setAttribute('class', 'form-control geolocation');
100 100
         $this->dataElement->setName($name . '[data]')
101
-                          ->setAttribute('id', $id . '-data');
101
+                            ->setAttribute('id', $id . '-data');
102 102
         $this->typeElement->setName($name . '[type]')
103
-                          ->setAttribute('id', $id . '-type');
103
+                            ->setAttribute('id', $id . '-type');
104 104
     }
105 105
 
106 106
     /**
@@ -145,8 +145,8 @@  discard block
 block discarded – undo
145 145
         if ('geo' == $value['type'] && empty($value['data'])) {
146 146
             $lonLat = $this->getConverter()->toCoordinates($value['name']);
147 147
             foreach($lonLat as $k=>$v) {
148
-                 list($lon,$lat) = explode(',', $v, 2);
149
-                 $latLon[]=$lat.','.$lon;
148
+                    list($lon,$lat) = explode(',', $v, 2);
149
+                    $latLon[]=$lat.','.$lon;
150 150
             }
151 151
             $value['data'] = ['coordinates'=>[ (float) $lat, (float) $lon] ,'type'=>'Point', 'region' => '' ,'postalcode' =>'', 'country' => 'DE'];
152 152
         }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -137,18 +137,18 @@
 block discarded – undo
137 137
      *
138 138
      * @return $this
139 139
      */
140
-    public function setValue($value, $type=null)
140
+    public function setValue($value, $type = null)
141 141
     {
142 142
         if ($value instanceOf Location) {
143 143
             $value = $this->getConverter()->toValue($value, $type ?: $this->typeElement->getValue());
144 144
         }
145 145
         if ('geo' == $value['type'] && empty($value['data'])) {
146 146
             $lonLat = $this->getConverter()->toCoordinates($value['name']);
147
-            foreach($lonLat as $k=>$v) {
148
-                 list($lon,$lat) = explode(',', $v, 2);
149
-                 $latLon[]=$lat.','.$lon;
147
+            foreach ($lonLat as $k=>$v) {
148
+                 list($lon, $lat) = explode(',', $v, 2);
149
+                 $latLon[] = $lat . ',' . $lon;
150 150
             }
151
-            $value['data'] = ['coordinates'=>[ (float) $lat, (float) $lon] ,'type'=>'Point', 'region' => '' ,'postalcode' =>'', 'country' => 'DE'];
151
+            $value['data'] = ['coordinates'=>[(float) $lat, (float) $lon], 'type'=>'Point', 'region' => '', 'postalcode' =>'', 'country' => 'DE'];
152 152
         }
153 153
         if (!is_array($value)) {
154 154
             $value = explode('|', $value, 2);
Please login to merge, or discard this patch.
module/Geo/src/Geo/Form/GeoText/Converter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     public function toCoordinates($input) {
99 99
         $client = new Client('http://api.cross-solution.de/geo');
100 100
         $client->setMethod('GET');
101
-        $client->setParameterGet(array('q' => $input, 'country' => 'DE', 'coor' => 1, 'zoom' => 1 , 'strict' => 0));
101
+        $client->setParameterGet(array('q' => $input, 'country' => 'DE', 'coor' => 1, 'zoom' => 1, 'strict' => 0));
102 102
         $response = $client->send();
103 103
         $result = $response->getBody();
104 104
         $result = json_decode($result);
Please login to merge, or discard this patch.
module/Geo/src/Geo/Controller/IndexController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $query = $this->params()->fromQuery();
48 48
 
49
-        switch($this->plugin){
49
+        switch ($this->plugin) {
50 50
             case 'photon':
51 51
                 /* @var Plugin\Photon $geoApi */
52 52
                 $geoApi = $this->getPluginManager()->get('geo/photon');
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }
61 61
         $result = array();
62 62
         if (!empty($query['q'])) {
63
-            $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang','de'));
63
+            $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang', 'de'));
64 64
         }
65 65
         $viewModel = new JsonModel($result);
66 66
         return $viewModel;
Please login to merge, or discard this patch.