@@ -27,7 +27,7 @@ |
||
27 | 27 | { |
28 | 28 | public function attach(EventManagerInterface $events) |
29 | 29 | { |
30 | - $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, [ $this, 'onDispatchError']); |
|
30 | + $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, [$this, 'onDispatchError']); |
|
31 | 31 | |
32 | 32 | return $this; |
33 | 33 | } |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace JobsTest\Form; |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | if ($exception instanceof UnauthorizedImageAccessException) { |
58 | 58 | $image = __DIR__ . '/../../../../../public/images/unauthorized-access.png'; |
59 | 59 | $response->setStatusCode(403) |
60 | - ->setContent(file_get_contents($image)) |
|
61 | - ->getHeaders() |
|
62 | - ->addHeaderLine('Content-Type', 'image/png'); |
|
60 | + ->setContent(file_get_contents($image)) |
|
61 | + ->getHeaders() |
|
62 | + ->addHeaderLine('Content-Type', 'image/png'); |
|
63 | 63 | $e->stopPropagation(); |
64 | 64 | $response->sendHeaders(); |
65 | 65 | //echo file_get_contents($image); |
@@ -99,10 +99,10 @@ discard block |
||
99 | 99 | $model->setTemplate($this->getExceptionTemplate()); |
100 | 100 | $e->setResult($model); |
101 | 101 | |
102 | - // $statusCode = $response->getStatusCode(); |
|
103 | - // if ($statusCode === 200) { |
|
102 | + // $statusCode = $response->getStatusCode(); |
|
103 | + // if ($statusCode === 200) { |
|
104 | 104 | $response->setStatusCode(403); |
105 | - // } |
|
105 | + // } |
|
106 | 106 | |
107 | 107 | |
108 | 108 | } |
@@ -76,10 +76,10 @@ discard block |
||
76 | 76 | # $LogListener->attach($eventManager); |
77 | 77 | |
78 | 78 | if (!\Zend\Console\Console::isConsole()) { |
79 | - $redirectCallback = function () use ($e) { |
|
79 | + $redirectCallback = function() use ($e) { |
|
80 | 80 | $routeMatch = $e->getRouteMatch(); |
81 | 81 | $lang = $routeMatch ? $routeMatch->getParam('lang', 'en') : 'en'; |
82 | - $uri = $e->getRouter()->getBaseUrl() . '/' . $lang . '/error'; |
|
82 | + $uri = $e->getRouter()->getBaseUrl() . '/' . $lang . '/error'; |
|
83 | 83 | |
84 | 84 | header('Location: ' . $uri); |
85 | 85 | }; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | $eventManager->attach( |
118 | 118 | MvcEvent::EVENT_DISPATCH_ERROR, |
119 | - function ($event) { |
|
119 | + function($event) { |
|
120 | 120 | $application = $event->getApplication(); |
121 | 121 | if ($application::ERROR_EXCEPTION == $event->getError()) { |
122 | 122 | $ex = $event->getParam('exception'); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | ); |
131 | 131 | $eventManager->attach( |
132 | 132 | MvcEvent::EVENT_DISPATCH, |
133 | - function ($event) use ($eventManager) { |
|
133 | + function($event) use ($eventManager) { |
|
134 | 134 | $eventManager->trigger('postDispatch', $event); |
135 | 135 | }, |
136 | 136 | -150 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * Core Module Bootstrap |
|
5 | - * |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * Core Module Bootstrap |
|
5 | + * |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** Core */ |
11 | 11 | namespace Core; |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Configuration for the DoctrineMongoODMModule |
|
4 | - * |
|
5 | - * Will be merged in the 'doctrine' Key from module.config.php |
|
6 | - */ |
|
3 | + * Configuration for the DoctrineMongoODMModule |
|
4 | + * |
|
5 | + * Will be merged in the 'doctrine' Key from module.config.php |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | return array( |
9 | 9 | |
@@ -26,11 +26,11 @@ discard block |
||
26 | 26 | // 'driver' => 'odm_default', |
27 | 27 | // |
28 | 28 | // 'generate_proxies' => true, |
29 | - 'proxy_dir' => 'cache/DoctrineMongoODMModule/Proxy', |
|
29 | + 'proxy_dir' => 'cache/DoctrineMongoODMModule/Proxy', |
|
30 | 30 | // 'proxy_namespace' => 'DoctrineMongoODMModule\Proxy', |
31 | 31 | // |
32 | 32 | // 'generate_hydrators' => true, |
33 | - 'hydrator_dir' => 'cache/DoctrineMongoODMModule/Hydrator', |
|
33 | + 'hydrator_dir' => 'cache/DoctrineMongoODMModule/Hydrator', |
|
34 | 34 | // 'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator', |
35 | 35 | // |
36 | 36 | // 'default_db' => '', |
@@ -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 | ), |
@@ -1,16 +1,16 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * Configuration file of the Core module |
|
5 | - * |
|
6 | - * This file intents to provide the configuration for all other modules |
|
7 | - * as well (convention over configuration). |
|
8 | - * Having said that, you may always overwrite or extend the configuration |
|
9 | - * in your own modules configuration file(s) (or via the config autoloading). |
|
10 | - * |
|
11 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
12 | - * @license MIT |
|
13 | - */ |
|
3 | + * YAWIK |
|
4 | + * Configuration file of the Core module |
|
5 | + * |
|
6 | + * This file intents to provide the configuration for all other modules |
|
7 | + * as well (convention over configuration). |
|
8 | + * Having said that, you may always overwrite or extend the configuration |
|
9 | + * in your own modules configuration file(s) (or via the config autoloading). |
|
10 | + * |
|
11 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
12 | + * @license MIT |
|
13 | + */ |
|
14 | 14 | |
15 | 15 | $doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
16 | 16 | |
@@ -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( |
@@ -207,11 +207,11 @@ discard block |
||
207 | 207 | // Defines the Core/Navigation. |
208 | 208 | 'navigation' => array( |
209 | 209 | 'default' => array( |
210 | - 'home' => array( |
|
211 | - 'label' => /*@translate*/ 'Home', |
|
212 | - 'route' => 'lang', |
|
213 | - 'visible' => false |
|
214 | - ), |
|
210 | + 'home' => array( |
|
211 | + 'label' => /*@translate*/ 'Home', |
|
212 | + 'route' => 'lang', |
|
213 | + 'visible' => false |
|
214 | + ), |
|
215 | 215 | ), |
216 | 216 | ), |
217 | 217 | // Configuration of the controller service manager (Which loads controllers) |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $this->filterSortParam($params); |
43 | 43 | $paginator = $this->createPaginator($repository, $params); |
44 | 44 | $paginator->setCurrentPageNumber($params->get('page', 1)) |
45 | - ->setItemCountPerPage($params->get('count', 10)); |
|
45 | + ->setItemCountPerPage($params->get('count', 10)); |
|
46 | 46 | |
47 | 47 | return $paginator; |
48 | 48 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | throw new \InvalidArgumentException('$defaultParams must be an array or implement \Traversable'); |
37 | 37 | } |
38 | 38 | |
39 | - $services = $this->getController()->getServiceLocator(); |
|
39 | + $services = $this->getController()->getServiceLocator(); |
|
40 | 40 | $paginatorManager = $services->get('Core/PaginatorService'); |
41 | 41 | $paginator = $paginatorManager->get($paginatorName); |
42 | 42 | if (!isset($paginator) || !$paginator instanceof ZendPaginator) { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * @param array $defaultParams |
31 | 31 | * @param bool $usePostParams |
32 | 32 | * |
33 | - * @return mixed |
|
33 | + * @return ZendPaginator |
|
34 | 34 | */ |
35 | 35 | public function __invoke($paginatorName, $defaultParams = array(), $usePostParams = false) |
36 | 36 | { |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author [email protected] |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Core\Controller\Plugin; |
12 | 12 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | $adapter->setParams($params); |
69 | 69 | $paginator->setCurrentPageNumber($params->get('page', 1)) |
70 | - ->setItemCountPerPage($params->get('count', 10)); |
|
70 | + ->setItemCountPerPage($params->get('count', 10)); |
|
71 | 71 | |
72 | 72 | return $paginator; |
73 | 73 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | const NAMESPACE_INFO = 'info'; |
22 | 22 | const NAMESPACE_WARNING = 'warning'; |
23 | 23 | const NAMESPACE_DANGER = 'danger'; |
24 | - const NAMESPACE_SUCCESS = 'success'; |
|
24 | + const NAMESPACE_SUCCESS = 'success'; |
|
25 | 25 | |
26 | 26 | protected $namespace2priority = array( |
27 | 27 | self::NAMESPACE_INFO => NotificationEntity::INFO, |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function setListener($listener) |
61 | 61 | { |
62 | - $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this,'createOutput'), 1); |
|
62 | + $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this, 'createOutput'), 1); |
|
63 | 63 | $this->notificationListener = $listener; |
64 | 64 | } |
65 | 65 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return $this->$method($value); |
42 | 42 | } |
43 | 43 | |
44 | - throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this). "'"); |
|
44 | + throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this) . "'"); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |