@@ -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\Form\View\Helper; |
11 | 11 | |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | |
53 | 53 | if ($element instanceof ViewPartialProviderInterface && !$ignoreViewPartial) { |
54 | 54 | return $this->getView()->partial($element->getViewPartial(), |
55 | - array( |
|
56 | - 'element' => $element, |
|
57 | - 'labelWitdh' => $labelWidth, |
|
58 | - 'label_attributes' => $labelAttributes |
|
55 | + array( |
|
56 | + 'element' => $element, |
|
57 | + 'labelWitdh' => $labelWidth, |
|
58 | + 'label_attributes' => $labelAttributes |
|
59 | 59 | ) |
60 | 60 | ); |
61 | 61 | } |
@@ -107,10 +107,10 @@ discard block |
||
107 | 107 | $desc = $element->getOption('description', false); |
108 | 108 | if ($desc && $this->layout != Form::LAYOUT_BARE) { |
109 | 109 | if (null !== ($translator = $this->getTranslator())) { |
110 | - $desc = $translator->translate( |
|
111 | - $desc, |
|
112 | - $this->getTranslatorTextDomain() |
|
113 | - ); |
|
110 | + $desc = $translator->translate( |
|
111 | + $desc, |
|
112 | + $this->getTranslatorTextDomain() |
|
113 | + ); |
|
114 | 114 | } |
115 | 115 | $elementString .= sprintf( |
116 | 116 | '<div id="%s-desc" class="cam-description alert alert-info">%s</div>', |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | 3 | * |
4 | - */ |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace Core\Form\View\Helper; |
7 | 7 |
@@ -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 | /** Core forms */ |
11 | 11 | namespace Core\Form; |
@@ -45,6 +45,6 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function getViewPartial() |
47 | 47 | { |
48 | - return $this->partial; |
|
48 | + return $this->partial; |
|
49 | 49 | } |
50 | 50 | } |
@@ -1,12 +1,12 @@ 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 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author [email protected] |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | |
12 | 12 | namespace Core\Listener; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function postDispatch(MvcEvent $e) |
58 | 58 | { |
59 | - // $view = $this->getServiceManager()->get('view'); |
|
59 | + // $view = $this->getServiceManager()->get('view'); |
|
60 | 60 | |
61 | 61 | } |
62 | 62 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @param EventManagerInterface $events |
68 | 68 | * @param integer $priority |
69 | - */ |
|
69 | + */ |
|
70 | 70 | public function attach(EventManagerInterface $events, $priority = 1) |
71 | 71 | { |
72 | 72 | $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, array($this, 'handleError'), $priority); |
@@ -147,19 +147,19 @@ discard block |
||
147 | 147 | $error = error_get_last(); |
148 | 148 | |
149 | 149 | if ($error) { |
150 | - $this->log->err( |
|
151 | - $error['message'], |
|
152 | - array( |
|
153 | - 'errno' => $error['type'], |
|
154 | - 'file' => $error['file'], |
|
155 | - 'line' => $error['line'] |
|
156 | - ) |
|
157 | - ); |
|
158 | - if ($this->redirect && |
|
150 | + $this->log->err( |
|
151 | + $error['message'], |
|
152 | + array( |
|
153 | + 'errno' => $error['type'], |
|
154 | + 'file' => $error['file'], |
|
155 | + 'line' => $error['line'] |
|
156 | + ) |
|
157 | + ); |
|
158 | + if ($this->redirect && |
|
159 | 159 | ($error['type'] & (E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR)) |
160 | - ) { |
|
161 | - if (is_callable($this->redirect)) { |
|
162 | - call_user_func($this->redirect); |
|
160 | + ) { |
|
161 | + if (is_callable($this->redirect)) { |
|
162 | + call_user_func($this->redirect); |
|
163 | 163 | } |
164 | 164 | } |
165 | 165 | } |
@@ -22,8 +22,8 @@ |
||
22 | 22 | protected $defaultLanguage; |
23 | 23 | |
24 | 24 | /** |
25 | - * @todo: get this from \Core\Options\ModuleOptions. |
|
26 | - */ |
|
25 | + * @todo: get this from \Core\Options\ModuleOptions. |
|
26 | + */ |
|
27 | 27 | protected $availableLanguages = array( |
28 | 28 | 'en' => 'en_EN', |
29 | 29 | 'de' => 'de_DE', |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | class StringListener implements ListenerAggregateInterface |
10 | 10 | { |
11 | - protected $listeners = array(); |
|
11 | + protected $listeners = array(); |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Attach to an event manager |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * (this file is taken from ZF 2.2) |
|
6 | - * |
|
7 | - * @filesource |
|
8 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
9 | - * @license MIT |
|
10 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * (this file is taken from ZF 2.2) |
|
6 | + * |
|
7 | + * @filesource |
|
8 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
9 | + * @license MIT |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | /** LoggerAbstractFactory.php */ |
13 | 13 | namespace Core\Log; |
@@ -1,12 +1,12 @@ |
||
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 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author [email protected] |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Core\Options; |
12 | 12 |