@@ -17,7 +17,7 @@ |
||
17 | 17 | * |
18 | 18 | * @author Anthonius Munthi <[email protected]> |
19 | 19 | * @ODM\MappedSuperclass |
20 | - */ |
|
20 | + */ |
|
21 | 21 | abstract class AbstractIdentifiableEntity extends AbstractEntity implements IdentifiableEntityInterface |
22 | 22 | { |
23 | 23 | use IdentifiableEntityTrait; |
@@ -61,8 +61,8 @@ |
||
61 | 61 | $file = $this->getFileEntity(); |
62 | 62 | |
63 | 63 | $file->setName($value['name']) |
64 | - ->setType($value['type']) |
|
65 | - ->setFile($value['tmp_name']); |
|
64 | + ->setType($value['type']) |
|
65 | + ->setFile($value['tmp_name']); |
|
66 | 66 | |
67 | 67 | return $file; |
68 | 68 | } |
@@ -52,10 +52,10 @@ |
||
52 | 52 | |
53 | 53 | if ($emailOrAddressOrList instanceof UserInterface) { |
54 | 54 | parent::updateAddressList( |
55 | - $addressList, |
|
56 | - $emailOrAddressOrList->getInfo()->getEmail(), |
|
57 | - $emailOrAddressOrList->getInfo()->getDisplayName(false), |
|
58 | - $callingMethod |
|
55 | + $addressList, |
|
56 | + $emailOrAddressOrList->getInfo()->getEmail(), |
|
57 | + $emailOrAddressOrList->getInfo()->getDisplayName(false), |
|
58 | + $callingMethod |
|
59 | 59 | ); |
60 | 60 | return; |
61 | 61 | } |
@@ -131,7 +131,7 @@ |
||
131 | 131 | { |
132 | 132 | $viewModel = new ViewModel(); |
133 | 133 | $viewModel->setTemplate('error/index') |
134 | - ->setVariable('message', 'An unexpected error had occured. Please try again later.'); |
|
134 | + ->setVariable('message', 'An unexpected error had occured. Please try again later.'); |
|
135 | 135 | return $viewModel; |
136 | 136 | } |
137 | 137 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | $response->getHeaders()->addHeaderline('Content-Type', $file->type) |
35 | - ->addHeaderline('Content-Length', $file->size); |
|
35 | + ->addHeaderline('Content-Length', $file->size); |
|
36 | 36 | $response->sendHeaders(); |
37 | 37 | |
38 | 38 | $resource = $file->getResource(); |
@@ -81,7 +81,7 @@ |
||
81 | 81 | |
82 | 82 | $adapter->setParams($params); |
83 | 83 | $paginator->setCurrentPageNumber($params->get('page', 1)) |
84 | - ->setItemCountPerPage($params->get('count', 10)); |
|
84 | + ->setItemCountPerPage($params->get('count', 10)); |
|
85 | 85 | |
86 | 86 | return $paginator; |
87 | 87 | } |
@@ -121,8 +121,8 @@ |
||
121 | 121 | $paginator = $paginators->get($paginatorName, $params); |
122 | 122 | } |
123 | 123 | $paginator->setCurrentPageNumber(isset($params['page']) ? $params['page'] : 1) |
124 | - ->setItemCountPerPage(isset($params['count']) ? $params['count'] : 10) |
|
125 | - ->setPageRange(isset($params['range']) ? $params['range'] : 5); |
|
124 | + ->setItemCountPerPage(isset($params['count']) ? $params['count'] : 10) |
|
125 | + ->setPageRange(isset($params['range']) ? $params['range'] : 5); |
|
126 | 126 | |
127 | 127 | return $paginator; |
128 | 128 | } |
@@ -25,13 +25,13 @@ |
||
25 | 25 | */ |
26 | 26 | class PaginatorServiceFactory implements FactoryInterface |
27 | 27 | { |
28 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
29 | - { |
|
30 | - $configArray = $container->get('Config'); |
|
31 | - $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array(); |
|
32 | - $config = new PaginatorServiceConfig($configArray); |
|
33 | - $service = new PaginatorService($container,$config->toArray()); |
|
28 | + public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
29 | + { |
|
30 | + $configArray = $container->get('Config'); |
|
31 | + $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array(); |
|
32 | + $config = new PaginatorServiceConfig($configArray); |
|
33 | + $service = new PaginatorService($container,$config->toArray()); |
|
34 | 34 | |
35 | - return $service; |
|
36 | - } |
|
35 | + return $service; |
|
36 | + } |
|
37 | 37 | } |
@@ -159,7 +159,7 @@ |
||
159 | 159 | : [ |
160 | 160 | 'description' => isset($result[2]) ? $result[2] : null, |
161 | 161 | 'viewScript' => isset($result[3]) ? $result[3] : null, |
162 | - ], |
|
162 | + ], |
|
163 | 163 | ]; |
164 | 164 | } |
165 | 165 |