@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | |
22 | 22 | protected $sortPropertiesMap = [ |
23 | - 'name' => [ 'info.lastName', 'info.firstName', 'info.email' ], |
|
23 | + 'name' => ['info.lastName', 'info.firstName', 'info.email'], |
|
24 | 24 | ]; |
25 | 25 | |
26 | 26 | /** |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $this->models = new PriorityList(); |
35 | 35 | } |
36 | 36 | |
37 | - public function addViewModel($name, $model, $priority=0) |
|
37 | + public function addViewModel($name, $model, $priority = 0) |
|
38 | 38 | { |
39 | 39 | $this->models->insert($name, $model, $priority); |
40 | 40 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | // Routes |
13 | 13 | return array('router' => array('routes' => array('lang' => array('child_routes' => array( |
14 | - 'admin' => [ 'child_routes' => [ |
|
14 | + 'admin' => ['child_routes' => [ |
|
15 | 15 | 'jobs' => [ |
16 | 16 | 'type' => 'Segment', |
17 | 17 | 'options' => [ |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | if (true === $this->getOption('include_all_option')) { |
37 | 37 | $valueOptions = array_merge([ |
38 | 38 | 'all' => /*@translate*/ 'All', |
39 | - ], $valueOptions ); |
|
39 | + ], $valueOptions); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $this->setValueOptions($valueOptions); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $options = parent::getValueOptions(); |
83 | 83 | |
84 | 84 | return true === $this->getOption('include_all_option') |
85 | - ? array_merge([ 'all' => /*@translate*/ 'All' ], $options) |
|
85 | + ? array_merge(['all' => /*@translate*/ 'All'], $options) |
|
86 | 86 | : $options; |
87 | 87 | } |
88 | 88 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | if (true === $this->getOption('include_all_option')) { |
37 | 37 | $valueOptions = array_merge([ |
38 | 38 | 'all' => /*@translate*/ 'All', |
39 | - ], $valueOptions ); |
|
39 | + ], $valueOptions ); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $this->setValueOptions($valueOptions); |
@@ -39,15 +39,15 @@ |
||
39 | 39 | 'title' => 'Jobs', |
40 | 40 | 'data' => [ |
41 | 41 | /*@translate*/ 'Total jobs' => [ |
42 | - 'url' => [ 'lang/admin/jobs', [], true ], |
|
42 | + 'url' => ['lang/admin/jobs', [], true], |
|
43 | 43 | 'value' => $total, |
44 | 44 | ], |
45 | 45 | /*@translate*/ 'Active jobs' => [ |
46 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ], |
|
46 | + 'url' => ['lang/admin/jobs', [], ['query' => ['status' => 'active']], true], |
|
47 | 47 | 'value' => $active |
48 | 48 | ], |
49 | 49 | /*@translate*/ 'Pending jobs' => [ |
50 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ], |
|
50 | + 'url' => ['lang/admin/jobs', [], ['query' => ['status' => 'created']], true], |
|
51 | 51 | 'value' => $pending |
52 | 52 | ] |
53 | 53 | ], |
@@ -36,21 +36,21 @@ |
||
36 | 36 | $pending = $this->repository->count(['status.name' => StatusInterface::CREATED]); |
37 | 37 | |
38 | 38 | $event->addViewVariables('jobs', [ |
39 | - 'title' => 'Jobs', |
|
40 | - 'data' => [ |
|
39 | + 'title' => 'Jobs', |
|
40 | + 'data' => [ |
|
41 | 41 | /*@translate*/ 'Total jobs' => [ |
42 | 42 | 'url' => [ 'lang/admin/jobs', [], true ], |
43 | 43 | 'value' => $total, |
44 | 44 | ], |
45 | 45 | /*@translate*/ 'Active jobs' => [ |
46 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ], |
|
47 | - 'value' => $active |
|
48 | - ], |
|
46 | + 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ], |
|
47 | + 'value' => $active |
|
48 | + ], |
|
49 | 49 | /*@translate*/ 'Pending jobs' => [ |
50 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ], |
|
51 | - 'value' => $pending |
|
52 | - ] |
|
53 | - ], |
|
54 | - ]); |
|
50 | + 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ], |
|
51 | + 'value' => $pending |
|
52 | + ] |
|
53 | + ], |
|
54 | + ]); |
|
55 | 55 | } |
56 | 56 | } |
57 | 57 | \ No newline at end of file |
@@ -32,24 +32,24 @@ discard block |
||
32 | 32 | 'log' => array( |
33 | 33 | 'Core/Log' => array( |
34 | 34 | 'writers' => array( |
35 | - array( |
|
36 | - 'name' => 'stream', |
|
35 | + array( |
|
36 | + 'name' => 'stream', |
|
37 | 37 | 'priority' => 1000, |
38 | 38 | 'options' => array( |
39 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
39 | + 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
40 | + ), |
|
40 | 41 | ), |
41 | - ), |
|
42 | 42 | ), |
43 | 43 | ), |
44 | 44 | 'Log/Core/Mail' => array( |
45 | 45 | 'writers' => array( |
46 | - array( |
|
47 | - 'name' => 'stream', |
|
46 | + array( |
|
47 | + 'name' => 'stream', |
|
48 | 48 | 'priority' => 1000, |
49 | 49 | 'options' => array( |
50 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
50 | + 'stream' => __DIR__ .'/../../../log/mails.log', |
|
51 | + ), |
|
51 | 52 | ), |
52 | - ), |
|
53 | 53 | ), |
54 | 54 | ), |
55 | 55 | 'ErrorLogger' => array( |
@@ -234,17 +234,17 @@ discard block |
||
234 | 234 | // Defines the Core/Navigation. |
235 | 235 | 'navigation' => array( |
236 | 236 | 'default' => array( |
237 | - 'home' => array( |
|
238 | - 'label' => /*@translate*/ 'Home', |
|
239 | - 'route' => 'lang', |
|
240 | - 'visible' => false |
|
241 | - ), |
|
242 | - 'admin' => array( |
|
243 | - 'label ' => /*@translate*/ 'Admin', |
|
244 | - 'route' => 'lang/admin', |
|
245 | - 'resource' => 'route/lang/admin', |
|
246 | - 'order' => 200, |
|
247 | - ), |
|
237 | + 'home' => array( |
|
238 | + 'label' => /*@translate*/ 'Home', |
|
239 | + 'route' => 'lang', |
|
240 | + 'visible' => false |
|
241 | + ), |
|
242 | + 'admin' => array( |
|
243 | + 'label ' => /*@translate*/ 'Admin', |
|
244 | + 'route' => 'lang/admin', |
|
245 | + 'resource' => 'route/lang/admin', |
|
246 | + 'order' => 200, |
|
247 | + ), |
|
248 | 248 | ), |
249 | 249 | ), |
250 | 250 | // Configuration of the controller service manager (Which loads controllers) |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @license MIT |
13 | 13 | */ |
14 | 14 | |
15 | -$doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
|
15 | +$doctrineConfig = include __DIR__.'/doctrine.config.php'; |
|
16 | 16 | |
17 | 17 | |
18 | 18 | return array( |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | 'name' => 'stream', |
37 | 37 | 'priority' => 1000, |
38 | 38 | 'options' => array( |
39 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
39 | + 'stream' => __DIR__.'/../../../log/yawik.log', |
|
40 | 40 | ), |
41 | 41 | ), |
42 | 42 | ), |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | 'name' => 'stream', |
48 | 48 | 'priority' => 1000, |
49 | 49 | 'options' => array( |
50 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
50 | + 'stream' => __DIR__.'/../../../log/mails.log', |
|
51 | 51 | ), |
52 | 52 | ), |
53 | 53 | ), |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | 'ErrorLogger' => array( |
56 | 56 | 'service' => 'Core/ErrorLogger', |
57 | 57 | 'config' => array( |
58 | - 'stream' => __DIR__ . '/../../../log/error.log', |
|
58 | + 'stream' => __DIR__.'/../../../log/error.log', |
|
59 | 59 | 'log_errors' => true, |
60 | 60 | 'log_exceptions' => true, |
61 | 61 | ), |
@@ -216,17 +216,17 @@ discard block |
||
216 | 216 | 'translation_file_patterns' => array( |
217 | 217 | [ |
218 | 218 | 'type' => 'gettext', |
219 | - 'base_dir' => __DIR__ . '/../language', |
|
219 | + 'base_dir' => __DIR__.'/../language', |
|
220 | 220 | 'pattern' => '%s.mo', |
221 | 221 | ], |
222 | 222 | [ |
223 | 223 | 'type' => 'phparray', |
224 | - 'base_dir' => __DIR__ . '/../language', |
|
224 | + 'base_dir' => __DIR__.'/../language', |
|
225 | 225 | 'pattern' => 'Zend_Validate.%s.php', |
226 | 226 | ], |
227 | 227 | [ |
228 | 228 | 'type' => 'phparray', |
229 | - 'base_dir' => __DIR__ . '/../language', |
|
229 | + 'base_dir' => __DIR__.'/../language', |
|
230 | 230 | 'pattern' => 'Zend_Captcha.%s.php', |
231 | 231 | ] |
232 | 232 | ), |
@@ -291,29 +291,29 @@ discard block |
||
291 | 291 | 'exception_template' => 'error/index', |
292 | 292 | // Map template to files. Speeds up the lookup through the template stack. |
293 | 293 | 'template_map' => array( |
294 | - 'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml', |
|
295 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
296 | - 'error/404' => __DIR__ . '/../view/error/404.phtml', |
|
297 | - 'error/403' => __DIR__ . '/../view/error/403.phtml', |
|
298 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
299 | - 'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml', |
|
300 | - 'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml', |
|
301 | - 'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml', |
|
302 | - 'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml', |
|
303 | - 'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml', |
|
304 | - 'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml', |
|
305 | - 'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml', |
|
306 | - 'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml', |
|
307 | - 'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml', |
|
308 | - 'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml', |
|
309 | - 'mail/header' => __DIR__ . '/../view/mail/header.phtml', |
|
310 | - 'mail/footer' => __DIR__ . '/../view/mail/footer.phtml', |
|
311 | - 'mail/footer.en' => __DIR__ . '/../view/mail/footer.en.phtml', |
|
294 | + 'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml', |
|
295 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
296 | + 'error/404' => __DIR__.'/../view/error/404.phtml', |
|
297 | + 'error/403' => __DIR__.'/../view/error/403.phtml', |
|
298 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
299 | + 'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml', |
|
300 | + 'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml', |
|
301 | + 'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml', |
|
302 | + 'core/notifications' => __DIR__.'/../view/partial/notifications.phtml', |
|
303 | + 'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml', |
|
304 | + 'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml', |
|
305 | + 'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml', |
|
306 | + 'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml', |
|
307 | + 'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml', |
|
308 | + 'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml', |
|
309 | + 'mail/header' => __DIR__.'/../view/mail/header.phtml', |
|
310 | + 'mail/footer' => __DIR__.'/../view/mail/footer.phtml', |
|
311 | + 'mail/footer.en' => __DIR__.'/../view/mail/footer.en.phtml', |
|
312 | 312 | //'startpage' => __DIR__ . '/../view/layout/startpage.phtml', |
313 | 313 | ), |
314 | 314 | // Where to look for view templates not mapped above |
315 | 315 | 'template_path_stack' => array( |
316 | - __DIR__ . '/../view', |
|
316 | + __DIR__.'/../view', |
|
317 | 317 | ), |
318 | 318 | ), |
319 | 319 | 'view_helpers' => array( |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | /** |
171 | 171 | * Gets the mime-type of a file |
172 | 172 | * |
173 | - * @return mixed |
|
173 | + * @return string|null |
|
174 | 174 | */ |
175 | 175 | public function getType() |
176 | 176 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Gets the uploaded date of a file |
194 | 194 | * |
195 | - * @return mixed |
|
195 | + * @return null|\DateTime |
|
196 | 196 | */ |
197 | 197 | public function getDateUploaded() |
198 | 198 | { |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | /** |
229 | 229 | * Gets the length of the file |
230 | 230 | * |
231 | - * @return mixed |
|
231 | + * @return string|null |
|
232 | 232 | */ |
233 | 233 | public function getLength() |
234 | 234 | { |
@@ -141,15 +141,15 @@ |
||
141 | 141 | $size = $this->getLength(); |
142 | 142 | |
143 | 143 | if ($size >= 1073741824) { |
144 | - return round($size / 1073741824, 2) . ' GB'; |
|
144 | + return round($size / 1073741824, 2).' GB'; |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | if ($size >= 1048576) { |
148 | - return round($size / 1048576, 2) . ' MB'; |
|
148 | + return round($size / 1048576, 2).' MB'; |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | if ($size >= 1024) { |
152 | - return round($size / 1024, 2) . ' kB'; |
|
152 | + return round($size / 1024, 2).' kB'; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | return $size; |
@@ -15,7 +15,6 @@ |
||
15 | 15 | |
16 | 16 | /** |
17 | 17 | * |
18 | - |
|
19 | 18 | */ |
20 | 19 | interface FileInterface extends |
21 | 20 | IdentifiableEntityInterface, |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * for multiple paths. |
16 | 16 | * example https://github.com/doctrine/DoctrineORMModule |
17 | 17 | */ |
18 | - 'paths' => array( __DIR__ . '/../src/Cv/Entity'), |
|
18 | + 'paths' => array(__DIR__.'/../src/Cv/Entity'), |
|
19 | 19 | ), |
20 | 20 | ), |
21 | 21 | ), |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | 'translation_file_patterns' => array( |
28 | 28 | array( |
29 | 29 | 'type' => 'gettext', |
30 | - 'base_dir' => __DIR__ . '/../language', |
|
30 | + 'base_dir' => __DIR__.'/../language', |
|
31 | 31 | 'pattern' => '%s.mo', |
32 | 32 | ), |
33 | 33 | ), |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | |
135 | 135 | // Where to look for view templates not mapped above |
136 | 136 | 'template_path_stack' => array( |
137 | - __DIR__ . '/../view', |
|
137 | + __DIR__.'/../view', |
|
138 | 138 | ), |
139 | 139 | ), |
140 | 140 | 'filters' => array( |