Completed
Pull Request — develop (#245)
by ANTHONIUS
08:30
created
module/Orders/config/view.config.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
  * @license MIT
7 7
  * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8 8
  */
9
-$dir = realpath(__DIR__ . '/../view');
9
+$dir = realpath(__DIR__.'/../view');
10 10
 
11
-return [ 'view_manager' => [ 'template_map' => [
11
+return ['view_manager' => ['template_map' => [
12 12
 
13
-    'orders/list/index' => $dir . '/orders/list/index.phtml',
14
-    'orders/list/index.ajax' => $dir . '/orders/list/index.ajax.phtml',
15
-    'orders/list/view' => $dir . '/orders/list/view.phtml',
13
+    'orders/list/index' => $dir.'/orders/list/index.phtml',
14
+    'orders/list/index.ajax' => $dir.'/orders/list/index.ajax.phtml',
15
+    'orders/list/view' => $dir.'/orders/list/view.phtml',
16 16
 
17 17
 ]]];
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
module/Orders/src/View/Helper/FormatInvoiceAddress.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,16 +31,16 @@
 block discarded – undo
31 31
         $translate = $this->getView()->plugin('translate');
32 32
         $title = $address->getGender();
33 33
         $name = $address->getName();
34
-        $fullname = ($title ? "$title " : '') . "<strong>$name</strong>";
34
+        $fullname = ($title ? "$title " : '')."<strong>$name</strong>";
35 35
         $company = $address->getCompany();
36 36
         $street = $address->getStreet();
37
-        $city = $address->getZipCode() . ' ' . $address->getCity();
37
+        $city = $address->getZipCode().' '.$address->getCity();
38 38
         $region = $address->getRegion();
39 39
         $country = $address->getCountry();
40
-        $location = ($region ? "$region / " : '') . $country;
41
-        $vatId = '<em>' . $translate('VAT ID') . '</em>: ' . $address->getVatIdNumber();
40
+        $location = ($region ? "$region / " : '').$country;
41
+        $vatId = '<em>'.$translate('VAT ID').'</em>: '.$address->getVatIdNumber();
42 42
         $email = $address->getEmail();
43
-        $email = $email ? '<i class="fa fa-envelope"></i> ' . $this->getView()->plugin('link')->__invoke($email) : '';
43
+        $email = $email ? '<i class="fa fa-envelope"></i> '.$this->getView()->plugin('link')->__invoke($email) : '';
44 44
 
45 45
 
46 46
         $markup = "<address>$fullname<br>$company<br><br>$street<br>$city<br>$location<br><br>$email<br><br>$vatId</address>";
Please login to merge, or discard this patch.
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.
src/Organizations/Controller/Plugin/GetOrganizationHandler.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
      */
41 41
     protected $acl;
42 42
 
43
-    public function __construct(RepositoryService $repositoryService,AuthenticationService $auth, Acl $acl) {
44
-        $this->repositoryService=$repositoryService;
45
-        $this->auth=$auth;
46
-        $this->acl=$acl;
43
+    public function __construct(RepositoryService $repositoryService, AuthenticationService $auth, Acl $acl) {
44
+        $this->repositoryService = $repositoryService;
45
+        $this->auth = $auth;
46
+        $this->acl = $acl;
47 47
     }
48 48
 
49 49
     public function __invoke()
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
      * @throws UnauthorizedAccessException
60 60
      * @throws \Doctrine\ODM\MongoDB\LockException
61 61
      */
62
-    public function process(Params $params,$allowDraft = true)
62
+    public function process(Params $params, $allowDraft = true)
63 63
     {
64
-        $repositories   = $this->repositoryService;
64
+        $repositories = $this->repositoryService;
65 65
         /* @var \Organizations\Repository\Organization $organizationRepository */
66 66
         $organizationRepository = $this->repositoryService->get('Organizations/Organization');
67 67
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $user = $this->auth->getUser(); /* @var $user \Auth\Entity\UserInterface */
71 71
 
72 72
         /* @var $organizationId string */
73
-        $organizationId = empty($idFromRoute)?$idFromSubForm:$idFromRoute;
73
+        $organizationId = empty($idFromRoute) ? $idFromSubForm : $idFromRoute;
74 74
 
75 75
         $editOwnOrganization = '__my__' === $organizationId;
76 76
 
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
             return $organization;
106 106
         }
107 107
 
108
-        $organization      = $organizationRepository->find($organizationId);
108
+        $organization = $organizationRepository->find($organizationId);
109 109
         if (!$organization) {
110
-            throw new \RuntimeException('No Organization found with id "' . $organizationId . '"');
110
+            throw new \RuntimeException('No Organization found with id "'.$organizationId.'"');
111 111
         }
112 112
         return $organization;
113 113
     }
Please login to merge, or discard this patch.