Completed
Branch develop (7585df)
by Carsten
11:01
created
module/Auth/src/Acl/Listener/CheckPermissionsListener.php 1 patch
Indentation   +8 added lines, -8 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
 /** CheckRouteListener.php */
11 11
 namespace Acl\Listener;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @param  EventManagerInterface $events
60 60
      * @param  integer $priority
61
-    */
61
+     */
62 62
     public function attach(EventManagerInterface $events)
63 63
     {
64 64
         $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, array($this, 'onRoute'), -10);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $acl  = $this->getAcl();
113 113
         
114 114
         if ($acl->hasResource($resourceId) && !$acl->isAllowed($role, $resourceId, $privilege)) {
115
-           /*
115
+            /*
116 116
             * Exceptions are only catched within the dispatch listener, so
117 117
             * we have to set the exception manually in the event
118 118
             * and trigger the DISPATCH_ERROR event.
Please login to merge, or discard this patch.
module/Auth/src/Auth/Entity/InfoInterface.php 1 patch
Indentation   +11 added lines, -11 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 model */
11 11
 namespace Auth\Entity;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * Gets the Day of the date of birth
31 31
      *
32 32
      * @return string
33
-    */
33
+     */
34 34
     public function getBirthDay();
35 35
     
36 36
     /**
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * Gets the month of the date of birth
45 45
      *
46 46
      * @return string
47
-    */
47
+     */
48 48
     public function getBirthMonth();
49 49
 
50 50
     /**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * Gets the Year of the date of birth.
59 59
      *
60 60
      * @return string
61
-    */
61
+     */
62 62
     public function getBirthYear();
63 63
     
64 64
     /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * Gets the gender
112 112
      *
113 113
      * @return string
114
-    */
114
+     */
115 115
     public function getGender();
116 116
     
117 117
     
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      * Gets the users street
153 153
      *
154 154
      * @return string
155
-    */
155
+     */
156 156
     public function getStreet();
157 157
     
158 158
     /**
Please login to merge, or discard this patch.
module/Auth/src/Auth/Entity/User.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
6
- * @license       MIT
7
- */
3
+     * YAWIK
4
+     *
5
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
6
+     * @license       MIT
7
+     */
8 8
 
9 9
 namespace Auth\Entity;
10 10
 
Please login to merge, or discard this patch.
module/Auth/src/Auth/Factory/Form/RoleSelectFactory.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
 namespace Auth\Factory\Form;
11 11
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                           || array_key_exists('user', $config['acl']['roles'])
40 40
                           ? array(User::ROLE_USER)
41 41
                           : array('none')
42
-                         );
42
+                            );
43 43
         
44 44
         $valueOptions = array();
45 45
         foreach ($publicRoles as $role) {
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/GroupFieldset.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
 /** GroupFieldset.php */
11 11
 namespace Auth\Form;
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
     public function init()
29 29
     {
30 30
         $this->setName('data')
31
-             ->setLabel('Group data')
32
-             ->setUseAsBaseFieldset(true)
33
-             ->setHydrator(new EntityHydrator());
31
+                ->setLabel('Group data')
32
+                ->setUseAsBaseFieldset(true)
33
+                ->setHydrator(new EntityHydrator());
34 34
         
35 35
         $this->add(
36 36
             array(
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 'required' => true,
71 71
                 'validators' => array(
72 72
                     array('name'    => 'Auth/Form/UniqueGroupName',
73
-                          'options' => array(
73
+                            'options' => array(
74 74
                             'allowName' => 'edit' == $this->getOption('mode')
75 75
                                           ? $this->getObject()->getName()
76 76
                                           : null
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/GroupUsersCollection.php 1 patch
Indentation   +9 added lines, -9 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
 /** UsersCollection.php */
11 11
 namespace Auth\Form;
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
         );
99 99
         
100 100
         $this->setCount(0)
101
-             ->setAllowRemove(true)
102
-             ->setAllowAdd(true)
103
-             ->setShouldCreateTemplate(true);
101
+                ->setAllowRemove(true)
102
+                ->setAllowAdd(true)
103
+                ->setShouldCreateTemplate(true);
104 104
         
105 105
         
106 106
     }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/UserBaseFieldset.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
     public function init()
21 21
     {
22 22
         $this->setName('base');
23
-             //->setLabel( /* @translate */ 'General');
24
-             //->setHydrator(new \Core\Model\Hydrator\ModelHydrator());
23
+                //->setLabel( /* @translate */ 'General');
24
+                //->setHydrator(new \Core\Model\Hydrator\ModelHydrator());
25 25
 
26 26
         
27 27
         $this->add(
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/UserImageFactory.php 1 patch
Indentation   +9 added lines, -9 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
 /**  */
11 11
 namespace Auth\Form;
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
         /** @var ModuleOptions $options */
59 59
 
60 60
         $form->get($this->fileName)->setViewHelper('FormImageUpload')
61
-                                   ->setMaxSize($options->getContactImageMaxSize())
62
-                                   ->setAllowedTypes($options->getContactImageMimeType())
63
-                                   ->setForm($form);
61
+                                    ->setMaxSize($options->getContactImageMaxSize())
62
+                                    ->setAllowedTypes($options->getContactImageMimeType())
63
+                                    ->setForm($form);
64 64
                                    
65 65
     }
66 66
 }
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.