Completed
Push — develop ( 39c196...b11cac )
by Carsten
26:33
created
module/Orders/src/autoload_classmap.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,33 +1,33 @@
 block discarded – undo
1 1
 <?php
2 2
 // Generated by ZF2's ./bin/classmap_generator.php
3 3
 return array(
4
-    'Orders\Repository\Filter\PaginationQuery'                               => __DIR__ . '/Repository/Filter/PaginationQuery.php',
5
-    'Orders\Repository\Orders'                                               => __DIR__ . '/Repository/Orders.php',
6
-    'Orders\Options\ModuleOptions'                                           => __DIR__ . '/Options/ModuleOptions.php',
7
-    'Orders\View\Helper\FormatInvoiceAddress'                                => __DIR__ . '/View/Helper/FormatInvoiceAddress.php',
8
-    'Orders\Form\InvoiceAddress'                                             => __DIR__ . '/Form/InvoiceAddress.php',
9
-    'Orders\Form\Listener\ValidateJobInvoiceAddress'                         => __DIR__ . '/Form/Listener/ValidateJobInvoiceAddress.php',
10
-    'Orders\Form\Listener\InjectInvoiceAddressInJobContainer'                => __DIR__ . '/Form/Listener/InjectInvoiceAddressInJobContainer.php',
11
-    'Orders\Form\InvoiceAddressSettingsFieldset'                             => __DIR__ . '/Form/InvoiceAddressSettingsFieldset.php',
12
-    'Orders\Form\InvoiceAddressFieldset'                                     => __DIR__ . '/Form/InvoiceAddressFieldset.php',
13
-    'Orders\Entity\Order'                                                    => __DIR__ . '/Entity/Order.php',
14
-    'Orders\Entity\ProductInterface'                                         => __DIR__ . '/Entity/ProductInterface.php',
15
-    'Orders\Entity\SettingsContainer'                                        => __DIR__ . '/Entity/SettingsContainer.php',
16
-    'Orders\Entity\InvoiceAddressSettings'                                   => __DIR__ . '/Entity/InvoiceAddressSettings.php',
17
-    'Orders\Entity\InvoiceAddress'                                           => __DIR__ . '/Entity/InvoiceAddress.php',
18
-    'Orders\Entity\OrderInterface'                                           => __DIR__ . '/Entity/OrderInterface.php',
19
-    'Orders\Entity\Snapshot\SnapshotTrait'                                   => __DIR__ . '/Entity/Snapshot/SnapshotTrait.php',
20
-    'Orders\Entity\Snapshot\BuilderInterface'                                => __DIR__ . '/Entity/Snapshot/BuilderInterface.php',
21
-    'Orders\Entity\Snapshot\SnapshotInterface'                               => __DIR__ . '/Entity/Snapshot/SnapshotInterface.php',
22
-    'Orders\Entity\Snapshot\Job\JobSnapshot'                                 => __DIR__ . '/Entity/Snapshot/Job/JobSnapshot.php',
23
-    'Orders\Entity\Snapshot\Job\Builder'                                     => __DIR__ . '/Entity/Snapshot/Job/Builder.php',
24
-    'Orders\Entity\InvoiceAddressInterface'                                  => __DIR__ . '/Entity/InvoiceAddressInterface.php',
25
-    'Orders\Entity\Product'                                                  => __DIR__ . '/Entity/Product.php',
26
-    'Orders\Entity\OrderNumberCounter'                                       => __DIR__ . '/Entity/OrderNumberCounter.php',
27
-    'Orders\Controller\ListController'                                       => __DIR__ . '/Controller/ListController.php',
28
-    'Orders\Listener\CreateJobOrder'                                         => __DIR__ . '/Listener/CreateJobOrder.php',
29
-    'Orders\Factory\Form\JobInvoiceAddressFactory'                           => __DIR__ . '/Factory/Form/JobInvoiceAddressFactory.php',
30
-    'Orders\Factory\Form\Listener\InjectInvoiceAddressInJobContainerFactory' => __DIR__ . '/Factory/Form/Listener/InjectInvoiceAddressInJobContainerFactory.php',
31
-    'Orders\Factory\Entity\JobInvoiceAddressFactory'                         => __DIR__ . '/Factory/Entity/JobInvoiceAddressFactory.php',
32
-    'Orders\Factory\Listener\CreateJobOrderFactory'                          => __DIR__ . '/Factory/Listener/CreateJobOrderFactory.php',
4
+    'Orders\Repository\Filter\PaginationQuery'                               => __DIR__.'/Repository/Filter/PaginationQuery.php',
5
+    'Orders\Repository\Orders'                                               => __DIR__.'/Repository/Orders.php',
6
+    'Orders\Options\ModuleOptions'                                           => __DIR__.'/Options/ModuleOptions.php',
7
+    'Orders\View\Helper\FormatInvoiceAddress'                                => __DIR__.'/View/Helper/FormatInvoiceAddress.php',
8
+    'Orders\Form\InvoiceAddress'                                             => __DIR__.'/Form/InvoiceAddress.php',
9
+    'Orders\Form\Listener\ValidateJobInvoiceAddress'                         => __DIR__.'/Form/Listener/ValidateJobInvoiceAddress.php',
10
+    'Orders\Form\Listener\InjectInvoiceAddressInJobContainer'                => __DIR__.'/Form/Listener/InjectInvoiceAddressInJobContainer.php',
11
+    'Orders\Form\InvoiceAddressSettingsFieldset'                             => __DIR__.'/Form/InvoiceAddressSettingsFieldset.php',
12
+    'Orders\Form\InvoiceAddressFieldset'                                     => __DIR__.'/Form/InvoiceAddressFieldset.php',
13
+    'Orders\Entity\Order'                                                    => __DIR__.'/Entity/Order.php',
14
+    'Orders\Entity\ProductInterface'                                         => __DIR__.'/Entity/ProductInterface.php',
15
+    'Orders\Entity\SettingsContainer'                                        => __DIR__.'/Entity/SettingsContainer.php',
16
+    'Orders\Entity\InvoiceAddressSettings'                                   => __DIR__.'/Entity/InvoiceAddressSettings.php',
17
+    'Orders\Entity\InvoiceAddress'                                           => __DIR__.'/Entity/InvoiceAddress.php',
18
+    'Orders\Entity\OrderInterface'                                           => __DIR__.'/Entity/OrderInterface.php',
19
+    'Orders\Entity\Snapshot\SnapshotTrait'                                   => __DIR__.'/Entity/Snapshot/SnapshotTrait.php',
20
+    'Orders\Entity\Snapshot\BuilderInterface'                                => __DIR__.'/Entity/Snapshot/BuilderInterface.php',
21
+    'Orders\Entity\Snapshot\SnapshotInterface'                               => __DIR__.'/Entity/Snapshot/SnapshotInterface.php',
22
+    'Orders\Entity\Snapshot\Job\JobSnapshot'                                 => __DIR__.'/Entity/Snapshot/Job/JobSnapshot.php',
23
+    'Orders\Entity\Snapshot\Job\Builder'                                     => __DIR__.'/Entity/Snapshot/Job/Builder.php',
24
+    'Orders\Entity\InvoiceAddressInterface'                                  => __DIR__.'/Entity/InvoiceAddressInterface.php',
25
+    'Orders\Entity\Product'                                                  => __DIR__.'/Entity/Product.php',
26
+    'Orders\Entity\OrderNumberCounter'                                       => __DIR__.'/Entity/OrderNumberCounter.php',
27
+    'Orders\Controller\ListController'                                       => __DIR__.'/Controller/ListController.php',
28
+    'Orders\Listener\CreateJobOrder'                                         => __DIR__.'/Listener/CreateJobOrder.php',
29
+    'Orders\Factory\Form\JobInvoiceAddressFactory'                           => __DIR__.'/Factory/Form/JobInvoiceAddressFactory.php',
30
+    'Orders\Factory\Form\Listener\InjectInvoiceAddressInJobContainerFactory' => __DIR__.'/Factory/Form/Listener/InjectInvoiceAddressInJobContainerFactory.php',
31
+    'Orders\Factory\Entity\JobInvoiceAddressFactory'                         => __DIR__.'/Factory/Entity/JobInvoiceAddressFactory.php',
32
+    'Orders\Factory\Listener\CreateJobOrderFactory'                          => __DIR__.'/Factory/Listener/CreateJobOrderFactory.php',
33 33
 );
Please login to merge, or discard this patch.
module/Orders/Module.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $config = [
28 28
             'Zend\Loader\StandardAutoloader' => [
29 29
                 'namespaces' => [
30
-                    __NAMESPACE__ => __DIR__ . '/src',
30
+                    __NAMESPACE__ => __DIR__.'/src',
31 31
                 ],
32 32
             ],
33 33
         ];
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
 
39 39
             case 'production':
40 40
                 $config['Zend\Loader\ClassMapAutoloader'] = [
41
-                    __DIR__ . '/src/autoload_classmap.php',
41
+                    __DIR__.'/src/autoload_classmap.php',
42 42
                 ];
43 43
                 break;
44 44
 
45 45
             case 'testing':
46
-                $config['Zend\Loader\StandardAutoloader']['namespaces'][__NAMESPACE__ . 'Test']
47
-                    = __DIR__ . '/test/' . __NAMESPACE__ . 'Test';
46
+                $config['Zend\Loader\StandardAutoloader']['namespaces'][__NAMESPACE__.'Test']
47
+                    = __DIR__.'/test/'.__NAMESPACE__.'Test';
48 48
                 break;
49 49
         }
50 50
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function getConfig()
55 55
     {
56
-        return ModuleConfigLoader::load(__DIR__ . '/config');
56
+        return ModuleConfigLoader::load(__DIR__.'/config');
57 57
     }
58 58
 
59 59
 
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/OrganizationImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     function getUri()
48 48
     {
49
-        return '/' . trim('file/Organizations.OrganizationImage/' . $this->id . "/" . urlencode($this->name),'/');
49
+        return '/'.trim('file/Organizations.OrganizationImage/'.$this->id."/".urlencode($this->name), '/');
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/Employee.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     public function setStatus($status)
115 115
     {
116
-        if (!defined('self::STATUS_' . strtoupper($status))) {
116
+        if (!defined('self::STATUS_'.strtoupper($status))) {
117 117
             $status = self::STATUS_ASSIGNED;
118 118
         }
119 119
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @param $role
135 135
      */
136 136
     public function setRole($role) {
137
-        $this->role=$role;
137
+        $this->role = $role;
138 138
     }
139 139
 
140 140
     /**
Please login to merge, or discard this patch.
Organizations/src/Organizations/Entity/Hydrator/OrganizationHydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             if (!$this->filterComposite->filter($propertyName)) {
60 60
                 continue;
61 61
             }
62
-            $getter = 'get' . ucfirst($propertyName);
62
+            $getter = 'get'.ucfirst($propertyName);
63 63
             $value = method_exists($object, $getter)
64 64
                    ? $object->$getter()
65 65
                    : $property->getValue($object);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         foreach ($this->data as $key => $value) {
88 88
             if (isset($reflProperties[$key])) {
89 89
                 $value  = $this->hydrateValue($key, $value);
90
-                $setter = 'set' . ucfirst($key);
90
+                $setter = 'set'.ucfirst($key);
91 91
                 if (method_exists($object, $setter)) {
92 92
                     $object->$setter($value);
93 93
                 } else {
Please login to merge, or discard this patch.
Organizations/src/Organizations/Controller/Plugin/InvitationHandler.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -310,9 +310,9 @@
 block discarded – undo
310 310
         if (!$user) {
311 311
             $user = $repository->create();
312 312
             $user->setEmail($email)
313
-                 ->setLogin($email)
314
-                 ->setRole(\Auth\Entity\User::ROLE_RECRUITER)
315
-                 ->setIsDraft(true);
313
+                    ->setLogin($email)
314
+                    ->setRole(\Auth\Entity\User::ROLE_RECRUITER)
315
+                    ->setIsDraft(true);
316 316
             $info = $user->getInfo();
317 317
             /* @var $info \Auth\Entity\InfoInterface */
318 318
             $info->setEmail($email);
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Hydrator/AnonymEntityHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             $setterMethods = $object->getSetters();
44 44
         }
45 45
         foreach ($data as $key => $value) {
46
-            $setter = 'set' . ucfirst($key);
46
+            $setter = 'set'.ucfirst($key);
47 47
             if (in_array($setter, $setterMethods)) {
48 48
                 $object->$setter($value);
49 49
             } else {
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Permissions.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -149,21 +149,21 @@  discard block
 block discarded – undo
149 149
         }
150 150
 
151 151
         if (preg_match('~^is(View|Change|None|All)Granted$~', $method, $match)) {
152
-            $permission = constant('self::PERMISSION_' . strtoupper($match[1]));
152
+            $permission = constant('self::PERMISSION_'.strtoupper($match[1]));
153 153
             return $this->isGranted($params[0], $permission);
154 154
         }
155 155
         
156 156
         if (preg_match('~^grant(View|Change|None|All)$~', $method, $match)) {
157
-            $permission = constant('self::PERMISSION_' . strtoupper($match[1]));
157
+            $permission = constant('self::PERMISSION_'.strtoupper($match[1]));
158 158
             return $this->grant($params[0], $permission);
159 159
         }
160 160
         
161 161
         if (preg_match('~^revoke(View|Change|None|All)$~', $method, $match)) {
162
-            $permission = constant('self::PERMISSION_' . strtoupper($match[1]));
162
+            $permission = constant('self::PERMISSION_'.strtoupper($match[1]));
163 163
             return $this->revoke($params[0], $permission);
164 164
         }
165 165
         
166
-        throw new \BadMethodCallException('Unknown method "' . $method . '"');
166
+        throw new \BadMethodCallException('Unknown method "'.$method.'"');
167 167
     }
168 168
 
169 169
     /**
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
         if ($build) {
312 312
             $this->build();
313 313
         }
314
-        $this->hasChanged= true;
314
+        $this->hasChanged = true;
315 315
 
316 316
         // restore orginial permissions type
317 317
         $this->type = $oldType;
@@ -444,10 +444,10 @@  discard block
 block discarded – undo
444 444
         }
445 445
         
446 446
         if ($resource instanceof UserInterface) {
447
-            return 'user:' . $resource->getId();
447
+            return 'user:'.$resource->getId();
448 448
         }
449 449
         
450
-        return 'user:' . $resource;
450
+        return 'user:'.$resource;
451 451
     }
452 452
 
453 453
     /**
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
         );
468 468
         if (!in_array($permission, $perms)) {
469 469
             throw new \InvalidArgumentException(
470
-                'Invalid permission. Must be one of ' . implode(', ', $perms)
470
+                'Invalid permission. Must be one of '.implode(', ', $perms)
471 471
             );
472 472
         }
473 473
     }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -354,6 +354,9 @@
 block discarded – undo
354 354
         return $this;
355 355
     }
356 356
     
357
+    /**
358
+     * @param string $permission
359
+     */
357 360
     private function checkIsGranted($userId, $permission)
358 361
     {
359 362
         if (!$userId) { return false; }
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/AbstractEntity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             return $this->$method($value);
50 50
         }
51 51
         
52
-        throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this). "'");
52
+        throw new OutOfBoundsException("'$property' is not a valid property of '".get_class($this)."'");
53 53
     }
54 54
     
55 55
     /**
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         if (method_exists($this, $method)) {
77 77
             return $this->$method();
78 78
         }
79
-        throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this) . "'");
79
+        throw new OutOfBoundsException("'$property' is not a valid property of '".get_class($this)."'");
80 80
     }
81 81
     
82 82
     /**
Please login to merge, or discard this patch.