Completed
Push — develop ( beb977...f996e0 )
by
unknown
06:44
created
module/Geo/src/Geo/Form/GeoText.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * Sets the converter
72 72
      *
73
-     * @param $converter
73
+     * @param Converter $converter
74 74
      *
75 75
      * @return $this
76 76
      */
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     /**
156 156
      * Gets the data of an element
157 157
      *
158
-     * @return mixed
158
+     * @return Hidden
159 159
      */
160 160
     public function getDataElement()
161 161
     {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     /**
166 166
      * Gets the name of an element
167 167
      *
168
-     * @return mixed
168
+     * @return Text
169 169
      */
170 170
     public function getNameElement()
171 171
     {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -144,12 +144,12 @@  discard block
 block discarded – undo
144 144
         $id = str_replace(array('[', ']'), array('-', ''), $name);
145 145
         $this->setAttribute('id', $id);
146 146
         $this->nameElement->setName($name . '[name]')
147
-                          ->setAttribute('id', $id . '-name')
148
-                          ->setAttribute('class', 'form-control geolocation');
147
+                            ->setAttribute('id', $id . '-name')
148
+                            ->setAttribute('class', 'form-control geolocation');
149 149
         $this->dataElement->setName($name . '[data]')
150
-                          ->setAttribute('id', $id . '-data');
150
+                            ->setAttribute('id', $id . '-data');
151 151
         $this->typeElement->setName($name . '[type]')
152
-                          ->setAttribute('id', $id . '-type');
152
+                            ->setAttribute('id', $id . '-type');
153 153
     }
154 154
 
155 155
     /**
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
             $lon = $lat = 0;
216 216
             
217 217
             foreach($lonLat as $k=>$v) {
218
-                 list($lon,$lat) = explode(',', $v, 2);
219
-                 $latLon[]=$lat.','.$lon;
218
+                    list($lon,$lat) = explode(',', $v, 2);
219
+                    $latLon[]=$lat.','.$lon;
220 220
             }
221 221
 
222 222
             $value['data'] = [
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -143,13 +143,13 @@  discard block
 block discarded – undo
143 143
         $name = $this->getName();
144 144
         $id = str_replace(array('[', ']'), array('-', ''), $name);
145 145
         $this->setAttribute('id', $id);
146
-        $this->nameElement->setName($name . '[name]')
147
-                          ->setAttribute('id', $id . '-name')
146
+        $this->nameElement->setName($name.'[name]')
147
+                          ->setAttribute('id', $id.'-name')
148 148
                           ->setAttribute('class', 'form-control geolocation');
149
-        $this->dataElement->setName($name . '[data]')
150
-                          ->setAttribute('id', $id . '-data');
151
-        $this->typeElement->setName($name . '[type]')
152
-                          ->setAttribute('id', $id . '-type');
149
+        $this->dataElement->setName($name.'[data]')
150
+                          ->setAttribute('id', $id.'-data');
151
+        $this->typeElement->setName($name.'[type]')
152
+                          ->setAttribute('id', $id.'-type');
153 153
     }
154 154
 
155 155
     /**
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      *
205 205
      * @return $this
206 206
      */
207
-    public function setValue($value, $type=null)
207
+    public function setValue($value, $type = null)
208 208
     {
209 209
         if ($value instanceOf LocationInterface) {
210 210
             $value = $this->getConverter()->toValue($value, $type ?: $this->typeElement->getValue());
@@ -221,9 +221,9 @@  discard block
 block discarded – undo
221 221
 
222 222
             $lon = $lat = 0;
223 223
             
224
-            foreach($lonLat as $k=>$v) {
225
-                 list($lon,$lat) = explode(',', $v, 2);
226
-                 $latLon[]=$lat.','.$lon;
224
+            foreach ($lonLat as $k=>$v) {
225
+                 list($lon, $lat) = explode(',', $v, 2);
226
+                 $latLon[] = $lat.','.$lon;
227 227
             }
228 228
 
229 229
             $value['data'] = [
@@ -232,8 +232,8 @@  discard block
 block discarded – undo
232 232
                     (float) $lon
233 233
                     ],
234 234
                 'type'=>'Point',
235
-                'city' => substr($value['name'],0,strrpos($value['name'], ',' )),
236
-                'region' =>  substr($value['name'],strrpos($value['name'], ',' )+2),
235
+                'city' => substr($value['name'], 0, strrpos($value['name'], ',')),
236
+                'region' =>  substr($value['name'], strrpos($value['name'], ',') + 2),
237 237
                 'postalcode' =>'',
238 238
                 'country' => 'DE'];
239 239
         }
Please login to merge, or discard this patch.
Organizations/Factory/Controller/Plugin/AcceptInvitationHandlerFactory.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
40 40
 
41 41
         $plugin = new AcceptInvitationHandler();
42 42
         $plugin->setUserRepository($userRepository)
43
-               ->setOrganizationRepository($organizationRepository)
44
-               ->setAuthenticationService($authenticationService);
43
+                ->setOrganizationRepository($organizationRepository)
44
+                ->setAuthenticationService($authenticationService);
45 45
 
46 46
         return $plugin;
47 47
     }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/TemplateLabelQualifications.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
                     )
63 63
                 )
64 64
             )
65
-       );
65
+        );
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Paginator/PaginatorServiceFactory.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 {
24 24
 
25 25
     /** (non-PHPdoc)
26
-    * @see \Zend\ServiceManager\FactoryInterface::createService()
27
-    */
26
+     * @see \Zend\ServiceManager\FactoryInterface::createService()
27
+     */
28 28
     public function createService(ServiceLocatorInterface $serviceLocator)
29 29
     {
30 30
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array();
33 33
         $config      = new PaginatorServiceConfig($configArray);
34 34
 
35
-        $service   = new PaginatorService($serviceLocator, $config);
35
+        $service = new PaginatorService($serviceLocator, $config);
36 36
 
37 37
         return $service;
38 38
     }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/MailSender.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,13 +136,13 @@
 block discarded – undo
136 136
     {
137 137
         $mail = $this->mailer->get('htmltemplate');
138 138
         $mail->setTemplate($template)
139
-             ->setSubject($subject)
140
-             ->setVariables(
141
-                 array(
139
+                ->setSubject($subject)
140
+                ->setVariables(
141
+                    array(
142 142
                                 'job'      => $job,
143 143
                                 'siteName' => $this->options['siteName'],
144 144
                             )
145
-             );
145
+                );
146 146
 
147 147
         if ($adminMail) {
148 148
             $mail->setTo($this->options['adminEmail']);
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Repository/Job.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * Gets the Job Titles of a certain user.
69 69
      *
70 70
      * @param $query
71
-     * @param $userId
71
+     * @param \Auth\Controller\Plugin\Auth $userId
72 72
      * @return mixed
73 73
      * @throws \Doctrine\ODM\MongoDB\MongoDBException
74 74
      */
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     /**
92 92
      * Look for an drafted Document of a given user
93 93
      *
94
-     * @param $user
94
+     * @param \Auth\Entity\AnonymousUser $user
95 95
      * @return \Jobs\Entity\Job|null
96 96
      */
97 97
     public function findDraft($user)
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $qb = $this->createQueryBuilder();
57 57
         $qb->hydrate(false)
58
-           ->select('applyId')
59
-           ->field('applyId')->equals($applyId);
58
+            ->select('applyId')
59
+            ->field('applyId')->equals($applyId);
60 60
            
61 61
         $result = $qb->getQuery()->execute();
62 62
         $count = $result->count();
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $qb = $this->createQueryBuilder();
90 90
         $qb->hydrate(false)
91
-           ->select('title', 'applyId')
92
-           ->field('permissions.view')->equals($userId)
93
-           ->field('title')->equals(new \MongoRegex('/' . $query . '/i'))
94
-           ->sort('title')
95
-           ->limit(5);
91
+            ->select('title', 'applyId')
92
+            ->field('permissions.view')->equals($userId)
93
+            ->field('title')->equals(new \MongoRegex('/' . $query . '/i'))
94
+            ->sort('title')
95
+            ->limit(5);
96 96
         
97 97
         $result = $qb->getQuery()->execute();
98 98
         
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $qb = $this->createQueryBuilder();
160 160
         $qb->distinct('organization')
161 161
             ->hydrate(true)
162
-           ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]);
162
+            ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]);
163 163
         $q = $qb->getQuery();
164 164
         $r = $q->execute();
165 165
         $r = $r->toArray();
@@ -224,8 +224,8 @@  discard block
 block discarded – undo
224 224
 
225 225
         if (null !== $isDeleted) {
226 226
             $qb->addAnd(
227
-               $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted))
228
-                          ->addOr($qb->expr()->field('isDeleted')->exists(false))
227
+                $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted))
228
+                            ->addOr($qb->expr()->field('isDeleted')->exists(false))
229 229
             );
230 230
         }
231 231
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function findByAssignedPermissionsResourceId($resourceId)
71 71
     {
72 72
         $criteria = $this->getIsDeletedCriteria(
73
-                ['permissions.assigned.' . $resourceId => [ '$exists' => true]]
73
+                ['permissions.assigned.'.$resourceId => ['$exists' => true]]
74 74
         );
75 75
 
76 76
         return $this->findBy($criteria);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $qb->hydrate(false)
91 91
            ->select('title', 'applyId')
92 92
            ->field('permissions.view')->equals($userId)
93
-           ->field('title')->equals(new \MongoRegex('/' . $query . '/i'))
93
+           ->field('title')->equals(new \MongoRegex('/'.$query.'/i'))
94 94
            ->sort('title')
95 95
            ->limit(5);
96 96
         
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $qb = $this->createQueryBuilder();
160 160
         $qb->distinct('organization')
161 161
             ->hydrate(true)
162
-           ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]);
162
+           ->field('status.name')->notIn([StatusInterface::EXPIRED, StatusInterface::INACTIVE]);
163 163
         $q = $qb->getQuery();
164 164
         $r = $q->execute();
165 165
         $r = $r->toArray();
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public function createQueryBuilder($isDeleted = false)
222 222
     {
223
-        $qb =  parent::createQueryBuilder();
223
+        $qb = parent::createQueryBuilder();
224 224
 
225 225
         if (null !== $isDeleted) {
226 226
             $qb->addAnd(
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/IndexController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
      */
159 159
     public function typeaheadAction()
160 160
     {
161
-        $query      = $this->params()->fromQuery('q', '*');
161
+        $query = $this->params()->fromQuery('q', '*');
162 162
 
163 163
         $return = array();
164 164
         foreach ($this->jobRepository->getTypeaheadResults($query, $this->auth('id')) as $id => $item) {
Please login to merge, or discard this patch.
module/Geo/src/Geo/Form/GeoText/Converter.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@
 block discarded – undo
36 36
         }
37 37
         $entity = new Location();
38 38
         $entity->setCity($data['city'])
39
-               ->setRegion($data['region'])
40
-               ->setPostalcode($data['postalcode'])
41
-               ->setCountry($data['country']);
39
+                ->setRegion($data['region'])
40
+                ->setPostalcode($data['postalcode'])
41
+                ->setCountry($data['country']);
42 42
         if (!empty($data['coordinates'])) {
43
-               $entity->setCoordinates(new Point($data['coordinates']));
43
+                $entity->setCoordinates(new Point($data['coordinates']));
44 44
         }
45 45
 
46 46
         return $entity;
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
             $coordinates = $location->getCoordinates();
72 72
             $data = [
73 73
                 "geometry" => [
74
-                    "coordinates" => $coordinates?$coordinates->getCoordinates():[0,0],
75
-                    "type" => $coordinates?$coordinates->getType():'Point'
74
+                    "coordinates" => $coordinates ? $coordinates->getCoordinates() : [0, 0],
75
+                    "type" => $coordinates ? $coordinates->getType() : 'Point'
76 76
                 ],
77 77
                 "type" => "Feature",
78 78
                 "properties" => [
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
                     "postcode" => $location->getPostalcode()
83 83
                 ]
84 84
             ];
85
-            return  $location->getCity() . '|' . Json::encode($data);
85
+            return  $location->getCity().'|'.Json::encode($data);
86 86
         } else {
87
-            return $location->getCity() . ', ' . $location->getRegion();
87
+            return $location->getCity().', '.$location->getRegion();
88 88
         }
89 89
     }
90 90
 
@@ -98,7 +98,7 @@  discard block
 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/Core/src/Core/Filter/XssFilter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     public function filter($value)
67 67
     {
68
-         $htmlPurifier = $this->getHtmlPurifier();
69
-         return $htmlPurifier->filter($value);
68
+            $htmlPurifier = $this->getHtmlPurifier();
69
+            return $htmlPurifier->filter($value);
70 70
     }
71 71
 }
72 72
\ No newline at end of file
Please login to merge, or discard this patch.