@@ -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 - 2015 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013 - 2015 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Organizations\Repository\Event; |
@@ -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 | } |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** Auth view helper */ |
11 | 11 | namespace Auth\View\Helper; |
@@ -24,6 +24,6 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function __invoke($values = array()) |
26 | 26 | { |
27 | - return $this->getView()->render('auth/index/login-info', $values); |
|
27 | + return $this->getView()->render('auth/index/login-info', $values); |
|
28 | 28 | } |
29 | 29 | } |
@@ -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-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * Core Module Bootstrap |
|
5 | + * |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** Core */ |
11 | 11 | namespace Core; |
@@ -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 | ), |
@@ -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( |
@@ -197,11 +197,11 @@ discard block |
||
197 | 197 | // Defines the Core/Navigation. |
198 | 198 | 'navigation' => array( |
199 | 199 | 'default' => array( |
200 | - 'home' => array( |
|
201 | - 'label' => /*@translate*/ 'Home', |
|
202 | - 'route' => 'lang', |
|
203 | - 'visible' => false |
|
204 | - ), |
|
200 | + 'home' => array( |
|
201 | + 'label' => /*@translate*/ 'Home', |
|
202 | + 'route' => 'lang', |
|
203 | + 'visible' => false |
|
204 | + ), |
|
205 | 205 | ), |
206 | 206 | ), |
207 | 207 | // Configuration of the controller service manager (Which loads controllers) |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** FileController.php */ |
11 | 11 | namespace Core\Controller; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $this->acl($file); |
76 | 76 | |
77 | 77 | $response->getHeaders()->addHeaderline('Content-Type', $file->type) |
78 | - ->addHeaderline('Content-Length', $file->length); |
|
78 | + ->addHeaderline('Content-Length', $file->length); |
|
79 | 79 | $response->sendHeaders(); |
80 | 80 | |
81 | 81 | $resource = $file->getResource(); |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** ActionController of Core */ |
11 | 11 | namespace Core\Controller; |
@@ -131,7 +131,7 @@ discard block |
||
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 | } |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Core\Controller\Plugin; |
11 | 11 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | public function trigger($event, $target = null) |
43 | 43 | { |
44 | 44 | if (empty($this->_template) || !is_string($this->_template)) { |
45 | - throw new \InvalidArgumentException('ContentCollector must have a template-name'); |
|
45 | + throw new \InvalidArgumentException('ContentCollector must have a template-name'); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | $responseCollection = $this->getController()->getEventManager()->trigger($event, $target); |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | $viewModel->setTemplate($this->_template); |
51 | 51 | foreach ($responseCollection as $i => $response) { |
52 | 52 | if (is_string($response)) { |
53 | - $template = $response; |
|
54 | - $response = new ViewModel(array('target' => $target)); |
|
55 | - $response->setTemplate($template); |
|
53 | + $template = $response; |
|
54 | + $response = new ViewModel(array('target' => $target)); |
|
55 | + $response->setTemplate($template); |
|
56 | 56 | } |
57 | 57 | $viewModel->addChild($response, $this->_captureTo . $i); |
58 | 58 | } |
@@ -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 |