Completed
Push — develop ( 31c340...db8caa )
by Mathias
08:35
created
module/Applications/src/Applications/Repository/Application.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 - 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
 namespace Applications\Repository;
10 10
 
11 11
 use Core\Repository\AbstractRepository;
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $qb = $this->getPaginationQueryBuilder($params);
100 100
         $cursor = $qb->hydrate(false)
101
-                     ->select('_id')
102
-                     ->getQuery()
103
-                     ->execute();
101
+                        ->select('_id')
102
+                        ->getQuery()
103
+                        ->execute();
104 104
         
105 105
         $list = new PaginationList(array_keys(ArrayUtils::iteratorToArray($cursor)));
106 106
         return $list;
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
     {
130 130
         $auth=$this->getService('AuthenticationService');
131 131
         $qb=$this->createQueryBuilder()
132
-                  ->field("readBy")->notIn(array($auth->getUser()->id))
133
-                  ->field("job")->equals(new \MongoId($job->id));
132
+                    ->field("readBy")->notIn(array($auth->getUser()->id))
133
+                    ->field("job")->equals(new \MongoId($job->id));
134 134
         return $qb->getQuery()->execute();
135 135
     }
136 136
 
Please login to merge, or discard this patch.
src/Applications/Repository/Event/DeleteRemovedAttachmentsSubscriber.php 1 patch
Indentation   +12 added lines, -12 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 - 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
 /** JobReferencesUpdateListener.php */
11 11
 namespace Applications\Repository\Event;
@@ -51,14 +51,14 @@  discard block
 block discarded – undo
51 51
         $fileId = new \MongoId($file->id);
52 52
         
53 53
         $dm->createQueryBuilder('Applications\Entity\Application')
54
-           ->update()->multiple(true)
55
-           ->field('attachments')->equals($fileId)->pull($fileId)
56
-           ->getQuery()->execute();
54
+            ->update()->multiple(true)
55
+            ->field('attachments')->equals($fileId)->pull($fileId)
56
+            ->getQuery()->execute();
57 57
         
58 58
         
59 59
         $dm->createQueryBuilder('Applications\Entity\Application')
60
-           ->update()->multiple(true)
61
-           ->field('contact.image')->equals($fileId)->set(null)
62
-           ->getQuery()->execute();
60
+            ->update()->multiple(true)
61
+            ->field('contact.image')->equals($fileId)->set(null)
62
+            ->getQuery()->execute();
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
src/Applications/Repository/Event/UpdateFilesPermissionsSubscriber.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 - 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
 /** JobReferencesUpdateListener.php */
11 11
 namespace Applications\Repository\Event;
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
                
57 57
                 foreach ($document->getAttachments() as $attachment) {
58 58
                     $attachment->getPermissions()
59
-                               ->clear()
60
-                               ->inherit($permissions);
59
+                                ->clear()
60
+                                ->inherit($permissions);
61 61
                     if ($isUpdate) {
62 62
                         $uow->computeChangeSet(
63 63
                             $dm->getClassMetadata(get_class($attachment)),
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
                 
69 69
                 if ($image = $document->contact->image) {
70 70
                     $image->getPermissions()
71
-                          ->clear()
72
-                          ->inherit($permissions);
71
+                            ->clear()
72
+                            ->inherit($permissions);
73 73
                     if ($isUpdate) {
74 74
                         $uow->computeChangeSet(
75 75
                             $dm->getClassMetadata(get_class($image)),
Please login to merge, or discard this patch.
module/Auth/config/module.config.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
- * Configuration file of the Auth module
5
- *
6
- * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     * Configuration file of the Auth module
5
+     *
6
+     * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 return array(
11 11
 
@@ -244,12 +244,12 @@  discard block
 block discarded – undo
244 244
                 'options' => array(
245 245
                     'route' => '/login/:provider',
246 246
                     'constraints' => array(
247
-                       // 'provider' => '.+',
247
+                        // 'provider' => '.+',
248 248
                     ),
249 249
                     'defaults' => array(
250 250
                         'controller' => 'Auth\Controller\Index',
251 251
                         'action' => 'login'
252
-                     ),
252
+                        ),
253 253
                 ),
254 254
             ),
255 255
             'auth-hauth' => array(
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
                     'route/lang/my-password'
406 406
                 ),
407 407
                 'deny' => array(
408
-                   // 'route/lang/auth',
408
+                    // 'route/lang/auth',
409 409
                     'route/auth-provider',
410 410
                     'route/auth-extern',
411 411
                     'route/lang/forgot-password',
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
         'factories' => array(
505 505
             'auth' => '\Auth\Factory\View\Helper\AuthFactory',
506 506
             'acl'  => '\Acl\Factory\View\Helper\AclFactory',
507
-         ),
507
+            ),
508 508
     ),
509 509
     
510 510
     'form_elements' => array(
Please login to merge, or discard this patch.
module/Auth/src/Acl/Assertion/AssertionEvent.php 1 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 - 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;
Please login to merge, or discard this patch.
module/Auth/src/Acl/Controller/Plugin/Acl.php 1 patch
Indentation   +13 added lines, -13 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 - 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
 /** Acl.php */
11 11
 namespace Acl\Controller\Plugin;
@@ -138,14 +138,14 @@  discard block
 block discarded – undo
138 138
         if (!$this->test($resource, $privilege)) {
139 139
             $msg = null === $privilege
140 140
                  ? sprintf(
141
-                     'You are not allowed to access resource "%s"',
142
-                     is_object($resource) ? $resource->getResourceId() : $resource
143
-                 )
141
+                        'You are not allowed to access resource "%s"',
142
+                        is_object($resource) ? $resource->getResourceId() : $resource
143
+                    )
144 144
                  : sprintf(
145
-                     'You are not allowed to execute operation "%s" on resource "%s"',
146
-                     $privilege,
147
-                     is_object($resource) ? $resource->getResourceId() : $resource
148
-                 );
145
+                        'You are not allowed to execute operation "%s" on resource "%s"',
146
+                        $privilege,
147
+                        is_object($resource) ? $resource->getResourceId() : $resource
148
+                    );
149 149
             
150 150
             if ($resource instanceof FileInterface && 0 == strpos($resource->type, 'image/')) {
151 151
                 throw new UnauthorizedImageAccessException(str_replace('resource', 'image', $msg));
Please login to merge, or discard this patch.
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 - 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
 /** 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 - 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
 /** 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 - 2016 Cross Solution (http://cross-solution.de)
6
- * @license       MIT
7
- */
3
+     * YAWIK
4
+     *
5
+     * @copyright (c) 2013 - 2016 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.