@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | class JsonPaginationQueryFactory implements FactoryInterface |
16 | 16 | { |
17 | - public function createService (\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) |
|
17 | + public function createService (\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) |
|
18 | 18 | { |
19 | 19 | $services = $serviceLocator->getServiceLocator(); |
20 | 20 | $auth = $services->get('AuthenticationService'); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | 'form_elements' => array( |
72 | 72 | 'invokables' => array( |
73 | 73 | 'Location' => 'Geo\Form\GeoText', |
74 | - ), |
|
74 | + ), |
|
75 | 75 | ), |
76 | 76 | |
77 | 77 | 'view_manager' => array( |
@@ -1,11 +1,11 @@ discard block |
||
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 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | $config = $this->getController()->getServiceLocator()->get('config'); |
22 | 22 | if (empty($config['geocoder_cross_url'])) { |
23 | - throw new \InvalidArgumentException('Now Service-Adress for Geo-Service available'); |
|
23 | + throw new \InvalidArgumentException('Now Service-Adress for Geo-Service available'); |
|
24 | 24 | } |
25 | 25 | $client = new \Zend\Http\Client($config['geocoder_photon_url']); |
26 | 26 | $client->setMethod('GET'); |
@@ -1,11 +1,11 @@ discard block |
||
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 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $lang = $this->getController()->getEvent()->getRouteMatch()->getParam('lang', 'en'); |
23 | 23 | |
24 | 24 | if (empty($config['geocoder_photon_url'])) { |
25 | - throw new \InvalidArgumentException('Now Service-Adress for Geo-Service available'); |
|
25 | + throw new \InvalidArgumentException('Now Service-Adress for Geo-Service available'); |
|
26 | 26 | } |
27 | 27 | $client = new \Zend\Http\Client($config['geocoder_photon_url']); |
28 | 28 | $client->setMethod('GET'); |
@@ -51,16 +51,16 @@ discard block |
||
51 | 51 | $result = $result->features; |
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 | } |
@@ -1,11 +1,11 @@ discard block |
||
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; |
@@ -88,12 +88,12 @@ discard block |
||
88 | 88 | $id = str_replace(array('[', ']'), array('-', ''), $name); |
89 | 89 | $this->setAttribute('id', $id); |
90 | 90 | $this->nameElement->setName($name . '[name]') |
91 | - ->setAttribute('id', $id . '-name') |
|
92 | - ->setAttribute('class', 'form-control geolocation'); |
|
91 | + ->setAttribute('id', $id . '-name') |
|
92 | + ->setAttribute('class', 'form-control geolocation'); |
|
93 | 93 | $this->dataElement->setName($name . '[data]') |
94 | - ->setAttribute('id', $id . '-data'); |
|
94 | + ->setAttribute('id', $id . '-data'); |
|
95 | 95 | $this->typeElement->setName($name . '[type]') |
96 | - ->setAttribute('id', $id . '-type'); |
|
96 | + ->setAttribute('id', $id . '-type'); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -1,11 +1,11 @@ discard block |
||
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 Geo\Form\GeoText; |
@@ -35,11 +35,11 @@ discard block |
||
35 | 35 | } |
36 | 36 | $entity = new Location(); |
37 | 37 | $entity->setCity($data['city']) |
38 | - ->setRegion($data['region']) |
|
39 | - ->setPostalcode($data['postalcode']) |
|
40 | - ->setCountry($data['country']); |
|
38 | + ->setRegion($data['region']) |
|
39 | + ->setPostalcode($data['postalcode']) |
|
40 | + ->setCountry($data['country']); |
|
41 | 41 | if (!empty($data['coordinates'])) { |
42 | - $entity->setCoordinates(new Point($data['coordinates'])); |
|
42 | + $entity->setCoordinates(new Point($data['coordinates'])); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 |
@@ -1,11 +1,11 @@ discard block |
||
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 Install; |
@@ -60,6 +60,6 @@ discard block |
||
60 | 60 | $services = $application->getServiceManager(); |
61 | 61 | |
62 | 62 | $services->get('Install/Listener/LanguageSetter') |
63 | - ->attach($eventManager); |
|
63 | + ->attach($eventManager); |
|
64 | 64 | } |
65 | 65 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @copyright 2015 Cross Solution <http://cross-solution.de> |
|
6 | - * @author Mathias Gelhausen <[email protected]> |
|
7 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @copyright 2015 Cross Solution <http://cross-solution.de> |
|
6 | + * @author Mathias Gelhausen <[email protected]> |
|
7 | + */ |
|
8 | 8 | $env = getenv('APPLICATION_ENV') ?: 'production'; |
9 | 9 | |
10 | 10 | return 'production' == $env |
@@ -1,11 +1,11 @@ |
||
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 | return array( |
11 | 11 |