Completed
Pull Request — develop (#459)
by ANTHONIUS
07:22
created
module/Organizations/config/module.config.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
                 ],
14 14
             ],
15 15
             'annotation' => [
16
-                'paths' => [ __DIR__ . '/../src/Organizations/Entity']
16
+                'paths' => [__DIR__.'/../src/Organizations/Entity']
17 17
             ],
18 18
         ],
19 19
         'eventmanager' => [
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         'translation_file_patterns' => [
41 41
             [
42 42
                 'type' => 'gettext',
43
-                'base_dir' => __DIR__ . '/../language',
43
+                'base_dir' => __DIR__.'/../language',
44 44
                 'pattern' => '%s.mo',
45 45
             ],
46 46
         ],
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     'controllers' => [
51 51
         'factories' => [
52
-	        'Organizations/InviteEmployee' => [\Organizations\Controller\InviteEmployeeController::class,'factory'],
52
+	        'Organizations/InviteEmployee' => [\Organizations\Controller\InviteEmployeeController::class, 'factory'],
53 53
             'Organizations/Index' => 'Organizations\Factory\Controller\IndexControllerFactory',
54 54
         ]
55 55
     ],
@@ -65,18 +65,18 @@  discard block
 block discarded – undo
65 65
     'view_manager' => [
66 66
         // Map template to files. Speeds up the lookup through the template stack.
67 67
         'template_map' => [
68
-             'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
69
-             'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
70
-             'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
71
-             'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
72
-             'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
73
-             'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
74
-             'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml',
75
-             'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml',
68
+             'organizations/index/edit' => __DIR__.'/../view/organizations/index/form.phtml',
69
+             'organizations/form/employees-fieldset' => __DIR__.'/../view/form/employees-fieldset.phtml',
70
+             'organizations/form/employee-fieldset' => __DIR__.'/../view/form/employee-fieldset.phtml',
71
+             'organizations/form/invite-employee-bar' => __DIR__.'/../view/form/invite-employee-bar.phtml',
72
+             'organizations/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml',
73
+             'organizations/error/invite' => __DIR__.'/../view/error/invite.phtml',
74
+             'organizations/mail/invite-employee' => __DIR__.'/../view/mail/invite-employee.phtml',
75
+             'organizations/form/workflow-fieldset' => __DIR__.'/../view/form/workflow-fieldset.phtml',
76 76
         ],
77 77
         // Where to look for view templates not mapped above
78 78
         'template_path_stack' => [
79
-            __DIR__ . '/../view',
79
+            __DIR__.'/../view',
80 80
         ],
81 81
     ],
82 82
     'form_elements' => [
@@ -146,11 +146,11 @@  discard block
 block discarded – undo
146 146
                 'allow' => [
147 147
                     'Entity/OrganizationImage',
148 148
                     'route/lang/organizations/invite',
149
-                    'Organizations/InviteEmployee' => [ 'accept' ],
149
+                    'Organizations/InviteEmployee' => ['accept'],
150 150
                 ],
151 151
                 'deny' => [
152 152
                     'route/lang/organizations',
153
-                    'Organizations/InviteEmployee' => [ 'invite' ],
153
+                    'Organizations/InviteEmployee' => ['invite'],
154 154
                 ],
155 155
             ],
156 156
             // recruiters are allowed to view their companies
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                 'allow' => [
159 159
                     'route/lang/organizations',
160 160
                     'Organizations/InviteEmployee',
161
-                    'Entity/Organization' => [ 'edit' => 'Organizations/Write' ],
161
+                    'Entity/Organization' => ['edit' => 'Organizations/Write'],
162 162
                 ],
163 163
             ],
164 164
         ],
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
             'organizations' => [
175 175
                 'label' => 'Organizations',
176 176
                 'route' => 'lang/organizations',
177
-                'order' => 65,                             // allows to order the menu items
178
-                'resource' => 'route/lang/organizations',  // if a resource is defined, the acl will be applied.
177
+                'order' => 65, // allows to order the menu items
178
+                'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied.
179 179
 
180 180
                 'pages' => [
181 181
                     'list' => [
Please login to merge, or discard this patch.
src/Organizations/Entity/Hydrator/OrganizationHydratorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
 class OrganizationHydratorFactory implements FactoryInterface
19 19
 {
20
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) {
20
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null) {
21 21
 		$repositoryManager = $container->get('repositories');
22 22
 		$repOrganization = $repositoryManager->get('Organizations/Organization');
23 23
 		$repOrganizationName = $repositoryManager->get('Organizations/OrganizationName');
Please login to merge, or discard this patch.
src/Organizations/Factory/Controller/IndexControllerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
         $viewHelper = $container->get('ViewHelperManager');
34 34
         $translator = $container->get('translator');
35 35
 
36
-        return new IndexController($form, $organizationRepository,$translator,$formManager,$viewHelper);
36
+        return new IndexController($form, $organizationRepository, $translator, $formManager, $viewHelper);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/Organizations/Factory/Form/OrganizationsNameFieldsetFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
 	 * @inheritdoc
31 31
 	 * @return OrganizationsNameFieldset
32 32
 	 */
33
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
33
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
34 34
 	{
35
-		$fieldset = new OrganizationsNameFieldset($requestedName,$options);
35
+		$fieldset = new OrganizationsNameFieldset($requestedName, $options);
36 36
 		
37 37
 		$fieldset->setRepositories($container->get('repositories'));
38 38
 		return $fieldset;
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Form/OrganizationsNameFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	/**
41 41
 	 * @param RepositoryService $repositories
42 42
 	 */
43
-	public function setRepositories( $repositories )
43
+	public function setRepositories($repositories)
44 44
 	{
45 45
 		$this->repositories = $repositories;
46 46
 	}
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Mail/EmployeeInvitationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
      * @return void
108 108
      * @throws \InvalidArgumentException
109 109
      */
110
-    public function setCreationOptions(array $options=null)
110
+    public function setCreationOptions(array $options = null)
111 111
     {
112 112
         if (!isset($options['user']) || !$options['user'] instanceof UserInterface) {
113 113
             throw new \InvalidArgumentException('An user interface is required!');
Please login to merge, or discard this patch.
module/Geo/src/Geo/Service/AbstractClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     protected $country;
39 39
 
40 40
 
41
-    public function __construct($uri, $country="DE", $cache = false)
41
+    public function __construct($uri, $country = "DE", $cache = false)
42 42
     {
43 43
         $this->country = $country;
44 44
         $this->client = $this->setupClient($uri);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function query($term, array $params = [])
64 64
     {
65 65
     	/* @TODO: [ZF3] overriding $term value because it always returns null */
66
-    	if(is_null($term)){
66
+    	if (is_null($term)) {
67 67
 		    $term = $_REQUEST['q'];
68 68
 	    }
69 69
         $cacheId = md5($term);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
         $response = $this->client->send();
78 78
         if ($response->getStatusCode() !== 200) {
79
-            throw new \RuntimeException('Query failed, because ' . $response->getReasonPhrase());
79
+            throw new \RuntimeException('Query failed, because '.$response->getReasonPhrase());
80 80
         }
81 81
 
82 82
         $result = $response->getBody();
Please login to merge, or discard this patch.
module/Auth/src/Auth/Entity/Info.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function setBirthDay($birthDay)
140 140
     {
141
-        $this->birthDay=$birthDay;
141
+        $this->birthDay = $birthDay;
142 142
         return $this;
143 143
     }
144 144
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      */
160 160
     public function setBirthMonth($birthMonth)
161 161
     {
162
-        $this->birthMonth=$birthMonth;
162
+        $this->birthMonth = $birthMonth;
163 163
         return $this;
164 164
     }
165 165
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     public function setBirthYear($birthYear)
182 182
     {
183
-        $this->birthYear=$birthYear;
183
+        $this->birthYear = $birthYear;
184 184
         return $this;
185 185
     }
186 186
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function setEmail($email)
203 203
     {
204
-        $this->email = trim((String)$email);
204
+        $this->email = trim((String) $email);
205 205
         return $this;
206 206
     }
207 207
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      */
245 245
     public function setFirstName($firstName)
246 246
     {
247
-        $this->firstName = trim((String)$firstName);
247
+        $this->firstName = trim((String) $firstName);
248 248
         return $this;
249 249
     }
250 250
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      */
267 267
     public function setGender($gender)
268 268
     {
269
-        $this->gender = trim((String)$gender);
269
+        $this->gender = trim((String) $gender);
270 270
         return $this;
271 271
     }
272 272
 
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
      */
288 288
     public function setHouseNumber($houseNumber)
289 289
     {
290
-        $this->houseNumber=$houseNumber;
290
+        $this->houseNumber = $houseNumber;
291 291
         return $this;
292 292
     }
293 293
 
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
         if (!$this->lastName) {
333 333
             return $emailIfEmpty ? $this->email : '';
334 334
         }
335
-        return ($this->firstName ? $this->firstName . ' ' : '') . $this->lastName;
335
+        return ($this->firstName ? $this->firstName.' ' : '').$this->lastName;
336 336
     }
337 337
     
338 338
     /**
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
      */
427 427
     public function setStreet($street)
428 428
     {
429
-        $this->street=$street;
429
+        $this->street = $street;
430 430
         return $this;
431 431
     }
432 432
 
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
      */
448 448
     public function setCountry($country)
449 449
     {
450
-        $this->country=$country;
450
+        $this->country = $country;
451 451
         return $this;
452 452
     }
453 453
 
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/OrganizationContact.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function setHouseNumber($houseNumber = "")
88 88
     {
89
-        $this->houseNumber=$houseNumber;
89
+        $this->houseNumber = $houseNumber;
90 90
         return $this;
91 91
     }
92 92
     
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     public function setStreet($street = "")
154 154
     {
155
-        $this->street=$street;
155
+        $this->street = $street;
156 156
         return $this;
157 157
     }
158 158
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public function setCountry($country = "")
176 176
     {
177
-        $this->country=$country;
177
+        $this->country = $country;
178 178
         return $this;
179 179
     }
180 180
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     public function setPhone($phone = "")
201 201
     {
202
-        $this->phone=$phone;
202
+        $this->phone = $phone;
203 203
         return $this;
204 204
     }
205 205
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      */
223 223
     public function setFax($fax = "")
224 224
     {
225
-        $this->fax=$fax;
225
+        $this->fax = $fax;
226 226
         return $this;
227 227
     }
228 228
 
Please login to merge, or discard this patch.