Completed
Branch develop (7585df)
by Carsten
11:01
created
module/Auth/src/Auth/Listener/SocialProfilesUnconfiguredErrorListener.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/UnauthorizedAccessListener.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
module/Auth/src/Auth/View/Helper/LoginInfo.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
module/Core/Module.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
module/Core/config/module.config.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             ),
Please login to merge, or discard this patch.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -32,24 +32,24 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/FileController.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/IndexController.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/ContentCollector.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/CreatePaginator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
         
Please login to merge, or discard this patch.