Completed
Push — develop ( 06c328...a78ff6 )
by Carsten
17:00 queued 08:38
created
module/Auth/src/Auth/Listener/TokenListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         /* @var $events \Zend\EventManager\SharedEventManager */
44 44
         $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_BOOTSTRAP, array($this, 'onBootstrap'), $priority);
45
-        $this->listener = [$this,'onBootstrap'];
45
+        $this->listener = [$this, 'onBootstrap'];
46 46
     }
47 47
 
48 48
     /**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function detachShared(SharedEventManagerInterface $events)
55 55
     {
56
-        if ($events->detach($this->listener,'Zend\Mvc\Application')) {
56
+        if ($events->detach($this->listener, 'Zend\Mvc\Application')) {
57 57
             $this->listener = null;
58 58
         }
59 59
         return $this;
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/SocialProfilesUnconfiguredErrorListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
  */
26 26
 class SocialProfilesUnconfiguredErrorListener extends AbstractListenerAggregate
27 27
 {
28
-    public function attach(EventManagerInterface $events, $priority=1)
28
+    public function attach(EventManagerInterface $events, $priority = 1)
29 29
     {
30
-        $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, [ $this, 'onDispatchError']);
30
+        $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, [$this, 'onDispatchError']);
31 31
 
32 32
         return $this;
33 33
     }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/MailForgotPassword.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function __construct($options, $mailService, $coreOptions)
41 41
     {
42
-        $this->options=$options;
43
-        $this->mailService=$mailService;
42
+        $this->options = $options;
43
+        $this->mailService = $mailService;
44 44
         $this->coreOptions = $coreOptions;
45 45
     }
46 46
 
@@ -52,16 +52,16 @@  discard block
 block discarded – undo
52 52
     public function __invoke(AuthEvent $event)
53 53
     {
54 54
     	/* @TODO: [ZF3] $e->getUser() is not worked anymore we should using $e->getTarget()->getUser() */
55
-    	$target     = $event->getTarget();
56
-        $siteName   = $this->coreOptions->getSiteName();
55
+    	$target = $event->getTarget();
56
+        $siteName = $this->coreOptions->getSiteName();
57 57
         /* @var \Auth\Entity\User $user */
58 58
         $user                    = $target->getUser();
59 59
         $userEmail               = $user->getInfo()->getEmail();
60 60
         $userName                = $user->getInfo()->getDisplayName(false);
61 61
         $resetLink               = $target->getResetLink();
62 62
 
63
-        $fromEmail               =  $this->options->getFromEmail();
64
-        $fromName                =  $this->options->getFromName();
63
+        $fromEmail               = $this->options->getFromEmail();
64
+        $fromName                = $this->options->getFromName();
65 65
 
66 66
 
67 67
         $mail                    = $this->mailService->get('htmltemplate');
Please login to merge, or discard this patch.
module/Auth/src/Auth/Factory/Adapter/ExternalApplicationAdapterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 class ExternalApplicationAdapterFactory implements FactoryInterface
24 24
 {
25 25
 	
26
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
26
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
27 27
 	{
28 28
 		$repository = $container->get('repositories')->get('Auth/User');
29 29
 		$adapter = new ExternalApplication($repository);
Please login to merge, or discard this patch.
module/Auth/src/Auth/Factory/Controller/IndexControllerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $hybridAuthAdapter = $container->get('HybridAuthAdapter');
62 62
 		$externalAdapter = $container->get('ExternalApplicationAdapter');
63 63
 		$repositories = $container->get('repositories');
64
-        $controller = new IndexController($auth, $logger, $userLoginAdapter,$locale,$viewHelperManager,$forms, $options,$hybridAuthAdapter,$externalAdapter,$repositories);
64
+        $controller = new IndexController($auth, $logger, $userLoginAdapter, $locale, $viewHelperManager, $forms, $options, $hybridAuthAdapter, $externalAdapter, $repositories);
65 65
         return $controller;
66 66
     }
67 67
     /**
Please login to merge, or discard this patch.
module/Auth/src/Auth/Factory/Controller/UsersControllerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,6 @@
 block discarded – undo
32 32
         $users = $container->get('repositories')->get('Auth/User');
33 33
 		$formManager = $container->get('forms');
34 34
 		$viewHelper = $container->get('ViewHelperManager');
35
-        return new UsersController($users,$formManager,$viewHelper);
35
+        return new UsersController($users, $formManager, $viewHelper);
36 36
     }
37 37
 }
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
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
          */
76 76
         $events->attach(
77 77
             MvcEvent::EVENT_DISPATCH,
78
-            function ($event) {
78
+            function($event) {
79 79
                 $routeMatch = $event->getRouteMatch();
80 80
                 $action     = $routeMatch->getParam('action');
81 81
             
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
          */
96 96
         $events->attach(
97 97
             MvcEvent::EVENT_DISPATCH,
98
-            function ($event) {
98
+            function($event) {
99 99
                 $model = $event->getResult();
100 100
                 if (!$model instanceof ViewModel || $model->terminate()) {
101 101
                     return;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
             $users = $repository->findByQuery($query);
224 224
         
225 225
             $userFilter = $this->filterManager->get('Auth/Entity/UserToSearchResult');
226
-            $filterFunc = function ($user) use ($userFilter) {
226
+            $filterFunc = function($user) use ($userFilter) {
227 227
                 return $userFilter->filter($user);
228 228
             };
229 229
             $result     = array_values(array_map($filterFunc, $users->toArray()));
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/Plugin/SocialProfiles.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 */
31 31
     protected $request;
32 32
     
33
-    public function __construct($hybridAuth,RequestInterface $request,array $adapters = array())
33
+    public function __construct($hybridAuth, RequestInterface $request, array $adapters = array())
34 34
     {
35 35
         $this->hybridAuth = $hybridAuth;
36 36
         $this->request = $request;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             throw new \InvalidArgumentException(
71 71
                 sprintf(
72 72
                     'Adapter must be either a string or an instance of \Auth\Controller\Plugin\SocialProfiles\AbstractAdapter, but received %s',
73
-                    is_object($adapter) ? get_class($adapter) : '(' . gettype($adapter) . ')'
73
+                    is_object($adapter) ? get_class($adapter) : '('.gettype($adapter).')'
74 74
                 )
75 75
             );
76 76
         }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/Plugin/Service/SocialProfilesFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
 
17 17
 class SocialProfilesFactory implements FactoryInterface
18 18
 {
19
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
19
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
20 20
 	{
21 21
 		$request = $container->get('request');
22 22
 		$hybridAuth = $container->get('HybridAuth');
23
-		$plugin     = new SocialProfiles($hybridAuth,$request);
23
+		$plugin     = new SocialProfiles($hybridAuth, $request);
24 24
 		
25 25
 		return $plugin;
26 26
 	}
Please login to merge, or discard this patch.