Completed
Pull Request — develop (#329)
by Carsten
07:08
created
module/Applications/src/Applications/Entity/StatusInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * A new application has been received
22 22
      */
23
-    const INCOMING  = 'incoming';
23
+    const INCOMING = 'incoming';
24 24
 
25 25
     /**
26 26
      * An acknowledgement of receipt has been sent
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * An applicant ist invited to in interview
32 32
      */
33
-    const INVITED   = 'invited';
33
+    const INVITED = 'invited';
34 34
 
35 35
     /**
36 36
      * The applicant has been canceled
37 37
      */
38
-    const REJECTED  = 'rejected';
38
+    const REJECTED = 'rejected';
39 39
     
40 40
     public function __construct($status = self::INCOMING);
41 41
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @var string
26 26
      */
27
-    protected $label        = /*@translate*/ 'Cover Letter';
27
+    protected $label = /*@translate*/ 'Cover Letter';
28 28
     
29 29
     /**
30 30
      * {@inheritDoc}
Please login to merge, or discard this patch.
module/Applications/src/Applications/Mail/NewApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      */
96 96
     public function setUser($user)
97 97
     {
98
-        $this->user=$user;
98
+        $this->user = $user;
99 99
         return $this;
100 100
     }
101 101
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Repository/Application.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,8 @@
 block discarded – undo
128 128
      */
129 129
     public function loadUnreadApplicationsForJob($job)
130 130
     {
131
-        $auth=$this->getService('AuthenticationService');
132
-        $qb=$this->createQueryBuilder()
131
+        $auth = $this->getService('AuthenticationService');
132
+        $qb = $this->createQueryBuilder()
133 133
                   ->field("readBy")->notIn(array($auth->getUser()->id))
134 134
                   ->field("job")->equals(new \MongoId($job->id));
135 135
         return $qb->getQuery()->execute();
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -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.
module/Applications/src/Applications/Repository/Subscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function findByUri($uri, $create = false)
27 27
     {
28
-        $subscriber = $this->findOneBy(array( "uri" => $uri ));
28
+        $subscriber = $this->findOneBy(array("uri" => $uri));
29 29
         if (!isset($subscriber) && $create) {
30 30
             $subscriber = $this->create();
31 31
             $subscriber->uri = $uri;
Please login to merge, or discard this patch.
module/Auth/src/Acl/Assertion/AbstractEventManagerAwareAssertion.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,9 +97,9 @@
 block discarded – undo
97 97
 
98 98
         $event = new AssertionEvent(null, $this);
99 99
         $event->setAcl($acl)
100
-              ->setRole($role)
101
-              ->setResource($resource)
102
-              ->setPrivilege($privilege);
100
+                ->setRole($role)
101
+                ->setResource($resource)
102
+                ->setPrivilege($privilege);
103 103
 
104 104
         $events = $this->getEventManager();
105 105
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
         $results = $events->trigger(
107 107
             $event,
108
-            function ($r) {
108
+            function($r) {
109 109
                 return false === $r;
110 110
             }
111 111
         );
Please login to merge, or discard this patch.
module/Auth/src/Acl/Listener/CheckPermissionsListener.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
             $eventManager = $event->getTarget()->getEventManager();
124 124
             $results = $eventManager->trigger(MvcEvent::EVENT_DISPATCH_ERROR, $event);
125 125
             if (count($results)) {
126
-                $return  = $results->last();
126
+                $return = $results->last();
127 127
             } else {
128 128
                 $return = $e->getParams();
129 129
             }
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
      * Attach to an event manager
30 30
      *
31 31
      * @param  EventManagerInterface $events
32
-     * @param  integer $priority
33 32
      */
34 33
     public function attach(EventManagerInterface $events)
35 34
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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/Controller/ManageGroupsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
          */
49 49
         $events->attach(
50 50
             MvcEvent::EVENT_DISPATCH,
51
-            function ($event) {
51
+            function($event) {
52 52
                 $routeMatch = $event->getRouteMatch();
53 53
                 $action     = $routeMatch->getParam('action');
54 54
             
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
          */
69 69
         $events->attach(
70 70
             MvcEvent::EVENT_DISPATCH,
71
-            function ($event) {
71
+            function($event) {
72 72
                 $model = $event->getResult();
73 73
                 if (!$model instanceof ViewModel || $model->terminate()) {
74 74
                     return;
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             $users = $repository->findByQuery($query);
199 199
         
200 200
             $userFilter = $services->get('filtermanager')->get('Auth/Entity/UserToSearchResult');
201
-            $filterFunc = function ($user) use ($userFilter) {
201
+            $filterFunc = function($user) use ($userFilter) {
202 202
                 return $userFilter->filter($user);
203 203
             };
204 204
             $result     = array_values(array_map($filterFunc, $users->toArray()));
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/Plugin/OAuth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
                 $hybridAuth->restoreSessionData($sessionDataStored);
136 136
             }
137 137
             $adapter = $hybridAuth->authenticate($this->providerKey);
138
-            $sessionData    = $hybridAuth->getSessionData();
138
+            $sessionData = $hybridAuth->getSessionData();
139 139
             if ($sessionData != $sessionDataStored) {
140 140
                 $user->updateAuthSession($this->providerKey, $sessionData);
141 141
             }
Please login to merge, or discard this patch.