Completed
Pull Request — develop (#349)
by ANTHONIUS
06:14
created
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/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/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.
module/Auth/src/Auth/Entity/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
     /** {@inheritdoc} */
178 178
     public function setLogin($login)
179 179
     {
180
-        $this->login = trim((String)$login);
180
+        $this->login = trim((String) $login);
181 181
         return $this;
182 182
     }
183 183
 
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/Listener/Events/AuthEvent.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * a new password was created
24 24
      */
25
-    const EVENT_AUTH_NEWPASSWORD   = 'auth.newpassword';
25
+    const EVENT_AUTH_NEWPASSWORD = 'auth.newpassword';
26 26
 
27 27
     protected $userEntity;
28 28
 
Please login to merge, or discard this patch.
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * Sets the job entity
37 37
      *
38
-     * @param  Job $jobEntity
39
-     * @return MvcEvent
38
+     * @return AuthEvent
40 39
      */
41 40
     public function setUserEntity($userEntity)
42 41
     {
@@ -65,6 +64,9 @@  discard block
 block discarded – undo
65 64
         return $this->newPassword;
66 65
     }
67 66
 
67
+    /**
68
+     * @param string $resetLink
69
+     */
68 70
     public function setResetLink($resetLink)
69 71
     {
70 72
         $this->resetLink = $resetLink;
@@ -76,6 +78,9 @@  discard block
 block discarded – undo
76 78
         return $this->resetLink;
77 79
     }
78 80
 
81
+    /**
82
+     * @param \Auth\Entity\UserInterface $user
83
+     */
79 84
     public function setUser($user)
80 85
     {
81 86
         $this->user = $user;
Please login to merge, or discard this patch.