Completed
Push — develop ( 31c340...db8caa )
by Mathias
08:35
created
module/Auth/src/Auth/Factory/Listener/MailForgotPasswordFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         $options = $serviceLocator->get('Auth\Options');
31 31
         $coreOptions = $serviceLocator->get('Core\Options');
32 32
         $mailService = $serviceLocator->get('Core\MailService');
33
-        $listener = new MailForgotPassword($options,$mailService, $coreOptions);
33
+        $listener = new MailForgotPassword($options, $mailService, $coreOptions);
34 34
         return $listener;
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/MailForgotPassword.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
      */
38 38
     protected $mailService;
39 39
 
40
-    public function __construct($options, $mailService, $coreOptions){
41
-        $this->options=$options;
42
-        $this->mailService=$mailService;
40
+    public function __construct($options, $mailService, $coreOptions) {
41
+        $this->options = $options;
42
+        $this->mailService = $mailService;
43 43
         $this->coreOptions = $coreOptions;
44 44
     }
45 45
 
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function __invoke(AuthEvent $e)
52 52
     {
53
-        $siteName=$this->coreOptions->getSiteName();
53
+        $siteName = $this->coreOptions->getSiteName();
54 54
 
55 55
         $user                    = $e->getUser();
56 56
         $userEmail               = $user->info->email;
57 57
         $userName                = $user->info->displayName;
58 58
         $resetLink               = $e->getResetLink();
59 59
 
60
-        $fromEmail               =  $this->options->getFromEmail();
61
-        $fromName                =  $this->options->getFromName();
60
+        $fromEmail               = $this->options->getFromEmail();
61
+        $fromName                = $this->options->getFromName();
62 62
 
63 63
         $mail                    = $this->mailService->get('htmltemplate');
64 64
         $mail->user              = $user;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/ListFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
      *
54 54
      * fieldset: string service name of the Fieldset class
55 55
      */
56
-    public function __construct($name = null, array $options=[])
56
+    public function __construct($name = null, array $options = [])
57 57
     {
58
-        $this->fieldset = array_key_exists('fieldset',$options)?$options['fieldset']:self::BASE_FIELDSET;
58
+        $this->fieldset = array_key_exists('fieldset', $options) ? $options['fieldset'] : self::BASE_FIELDSET;
59 59
         parent::__construct();
60 60
     }
61 61
 
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/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/Plugin/Photon.php 1 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/Core/src/Core/Paginator/PaginatorFactoryAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $repository     = $repositories->get($this->getRepository());
35 35
         $queryBuilder   = $repository->createQueryBuilder();
36 36
         $filter         = $serviceLocator->getServiceLocator()->get('filterManager')->get($this->getFilter());
37
-        $adapter       = new \Core\Paginator\Adapter\DoctrineMongoLateCursor($queryBuilder, $filter);
37
+        $adapter = new \Core\Paginator\Adapter\DoctrineMongoLateCursor($queryBuilder, $filter);
38 38
         $service        = new Paginator($adapter);
39 39
         return $service;
40 40
     }
Please login to merge, or discard this patch.
module/Core/src/Core/Mail/MailServiceFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,16 +24,16 @@
 block discarded – undo
24 24
 
25 25
         /* @var \Auth\Options\ModuleOptions $authOptions */
26 26
         $authOptions = $serviceLocator->get('Auth\Options');
27
-        $configArray=[
27
+        $configArray = [
28 28
                 'from' => [
29 29
                     'name' => $authOptions->getFromName(),
30 30
                     'email' => $authOptions->getFromEmail()
31 31
                 ]
32 32
         ];
33 33
 
34
-        $config      = new MailServiceConfig($configArray);
34
+        $config = new MailServiceConfig($configArray);
35 35
         
36
-        $service   = new MailService($config);
36
+        $service = new MailService($config);
37 37
         
38 38
         return $service;
39 39
         
Please login to merge, or discard this patch.
module/Geo/src/Geo/Form/GeoText.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -137,16 +137,16 @@  discard block
 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 151
 
152 152
             $value['data'] = [
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
                     (float) $lon
156 156
                     ],
157 157
                 'type'=>'Point',
158
-                'city' => substr($value['name'],0,strrpos($value['name'], ',' )),
159
-                'region' =>  substr($value['name'],strrpos($value['name'], ',' )+2),
158
+                'city' => substr($value['name'], 0, strrpos($value['name'], ',')),
159
+                'region' =>  substr($value['name'], strrpos($value['name'], ',') + 2),
160 160
                 'postalcode' =>'',
161 161
                 'country' => 'DE'];
162 162
         }
Please login to merge, or discard this patch.