Completed
Push — develop ( 60c2a6...7c4b2f )
by Carsten
61:42 queued 47:32
created
module/Applications/src/Applications/Mail/NewApplication.php 2 patches
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.
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
- * @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
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Repository/Application.php 2 patches
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
 namespace Applications\Repository;
10 10
 
11 11
 use Core\Repository\AbstractRepository;
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $qb = $this->getPaginationQueryBuilder($params);
106 106
         $cursor = $qb->hydrate(false)
107
-                     ->select('_id')
108
-                     ->getQuery()
109
-                     ->execute();
107
+                        ->select('_id')
108
+                        ->getQuery()
109
+                        ->execute();
110 110
         
111 111
         $list = new PaginationList(array_keys(ArrayUtils::iteratorToArray($cursor)));
112 112
         return $list;
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
     {
131 131
         $auth=$this->getService('AuthenticationService');
132 132
         $qb=$this->createQueryBuilder()
133
-                  ->field("readBy")->notIn(array($auth->getUser()->id))
134
-                  ->field("job")->equals(new \MongoId($job->id));
133
+                    ->field("readBy")->notIn(array($auth->getUser()->id))
134
+                    ->field("job")->equals(new \MongoId($job->id));
135 135
         return $qb->getQuery()->execute();
136 136
     }
137 137
 
Please login to merge, or discard this patch.
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.
module/Applications/src/Applications/Repository/Filter/PaginationQuery.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      *
24 24
      * @var String
25 25
      */
26
-    protected $repositoryName="Applications/Application";
26
+    protected $repositoryName = "Applications/Application";
27 27
     
28 28
     /**
29 29
      * Sortable fields
Please login to merge, or discard this 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 Organizations\Entity;
10 10
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Repository/Subscriber.php 2 patches
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.
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
- * @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
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Auth/Module.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
         $eventManager->attach(
93 93
             MvcEvent::EVENT_ROUTE,
94
-            function (MvcEvent $e) use ($services) {
94
+            function(MvcEvent $e) use ($services) {
95 95
             /** @var CheckPermissionsListener $checkPermissionsListener */
96 96
                 $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener');
97 97
                 $checkPermissionsListener->onRoute($e);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
         $eventManager->attach(
103 103
             MvcEvent::EVENT_DISPATCH,
104
-            function (MvcEvent $e) use ($services) {
104
+            function(MvcEvent $e) use ($services) {
105 105
             /** @var CheckPermissionsListener $checkPermissionsListener */
106 106
                 $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener');
107 107
                 $checkPermissionsListener->onDispatch($e);
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
- * Auth Module Bootstrap
5
- *
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     * Auth Module Bootstrap
5
+     *
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 namespace Jobs;
11 11
 
Please login to merge, or discard this patch.
module/Auth/config/module.config.php 2 patches
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-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     * Configuration file of the Auth module
5
+     *
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 return array(
11 11
     
@@ -234,12 +234,12 @@  discard block
 block discarded – undo
234 234
                 'options' => array(
235 235
                     'route' => '/login/:provider',
236 236
                     'constraints' => array(
237
-                       // 'provider' => '.+',
237
+                        // 'provider' => '.+',
238 238
                     ),
239 239
                     'defaults' => array(
240 240
                         'controller' => 'Auth\Controller\Index',
241 241
                         'action' => 'login'
242
-                     ),
242
+                        ),
243 243
                 ),
244 244
             ),
245 245
             'auth-hauth' => array(
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
                     'route/lang/my-password'
399 399
                 ),
400 400
                 'deny' => array(
401
-                   // 'route/lang/auth',
401
+                    // 'route/lang/auth',
402 402
                     'route/auth-provider',
403 403
                     'route/auth-extern',
404 404
                     'route/lang/forgot-password',
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
         'factories' => array(
498 498
             'auth' => '\Auth\Factory\View\Helper\AuthFactory',
499 499
             'acl'  => '\Acl\Factory\View\Helper\AclFactory',
500
-         ),
500
+            ),
501 501
     ),
502 502
     
503 503
     'form_elements' => array(
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                  * for multiple paths.
24 24
                  * example https://github.com/doctrine/DoctrineORMModule
25 25
                  */
26
-                'paths' => array( __DIR__ . '/../src/Auth/Entity'),
26
+                'paths' => array(__DIR__ . '/../src/Auth/Entity'),
27 27
             ),
28 28
         ),
29 29
     ),
@@ -97,35 +97,35 @@  discard block
 block discarded – undo
97 97
         )
98 98
     ),
99 99
     'hybridauth' => array(
100
-        "Facebook" => array (
100
+        "Facebook" => array(
101 101
             "enabled" => true,
102
-            "keys"    => array ( "id" => "", "secret" => "" ),
102
+            "keys"    => array("id" => "", "secret" => ""),
103 103
             "scope"      => 'email, user_about_me, user_birthday, user_hometown, user_website',
104 104
             "display" => 'popup',
105 105
         ),
106
-        "LinkedIn" => array (
106
+        "LinkedIn" => array(
107 107
             "enabled" => true,
108
-            "keys"    => array ( "key" => "", "secret" => "" ),
108
+            "keys"    => array("key" => "", "secret" => ""),
109 109
         ),
110
-        "XING" => array (
110
+        "XING" => array(
111 111
             "enabled" => true,
112 112
             // This is a hack due to bad design of HybridAuth
113 113
             // There's no simpler way to include "additional-providers"
114
-            "wrapper" => array (
114
+            "wrapper" => array(
115 115
                 'class' => 'Hybrid_Providers_XING',
116 116
                 'path' => __FILE__,
117 117
             ),
118
-            "keys"    => array ( "key" => "", "secret" => "" ),
118
+            "keys"    => array("key" => "", "secret" => ""),
119 119
         ),
120
-        "Github" => array (
120
+        "Github" => array(
121 121
             "enabled" => true,
122 122
             // This is a hack due to bad design of HybridAuth
123 123
             // There's no simpler way to include "additional-providers"
124
-            "wrapper" => array (
124
+            "wrapper" => array(
125 125
                 'class' => 'Hybrid_Providers_Github',
126 126
                 'path' => __FILE__,
127 127
             ),
128
-            "keys"    => array ( "key" => "", "secret" => "" ),
128
+            "keys"    => array("key" => "", "secret" => ""),
129 129
         ),
130 130
 
131 131
     ),
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/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-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
 /** 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 3 patches
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.
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.