@@ -39,7 +39,7 @@ |
||
39 | 39 | if (!array_key_exists('path', $config)) { |
40 | 40 | throw new \RuntimeException('path is missing', 500); |
41 | 41 | } |
42 | - return $config['scheme'] . '://' . $config['host'] . '/' . $config['path']; |
|
42 | + return $config['scheme'].'://'.$config['host'].'/'.$config['path']; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function getConfig() |
40 | 40 | { |
41 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
41 | + return ModuleConfigLoader::load(__DIR__.'/config'); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | return array( |
52 | 52 | 'Zend\Loader\StandardAutoloader' => array( |
53 | 53 | 'namespaces' => array( |
54 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
55 | - __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ . 'Test', |
|
54 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
55 | + __NAMESPACE__.'Test' => __DIR__.'/test/'.__NAMESPACE__.'Test', |
|
56 | 56 | ), |
57 | 57 | ), |
58 | 58 | ); |
@@ -6,12 +6,12 @@ |
||
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 |
@@ -31,16 +31,16 @@ |
||
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>"; |
@@ -1,33 +1,33 @@ |
||
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 | ); |
@@ -27,7 +27,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -46,7 +46,7 @@ |
||
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 | /** |
@@ -113,7 +113,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -59,7 +59,7 @@ discard block |
||
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 |
||
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 { |