@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * @param EventManagerInterface $events |
| 60 | 60 | * @param integer $priority |
| 61 | 61 | */ |
| 62 | - public function attach(EventManagerInterface $events, $priority=1) |
|
| 62 | + public function attach(EventManagerInterface $events, $priority = 1) |
|
| 63 | 63 | { |
| 64 | 64 | $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, array($this, 'onRoute'), -10); |
| 65 | 65 | $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'onDispatch'), 10); |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $eventManager->setEventPrototype($event); |
| 128 | 128 | $results = $eventManager->trigger(MvcEvent::EVENT_DISPATCH_ERROR); |
| 129 | 129 | if (count($results)) { |
| 130 | - $return = $results->last(); |
|
| 130 | + $return = $results->last(); |
|
| 131 | 131 | } else { |
| 132 | 132 | $return = $event->getParams(); |
| 133 | 133 | } |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | |
| 103 | 103 | $events = $this->getEventManager(); |
| 104 | 104 | |
| 105 | - $callback = function ($r) { |
|
| 105 | + $callback = function($r) { |
|
| 106 | 106 | return false === $r; |
| 107 | 107 | }; |
| 108 | 108 | |
@@ -20,13 +20,13 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | class AssertionManagerFactory implements FactoryInterface |
| 22 | 22 | { |
| 23 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) { |
|
| 23 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { |
|
| 24 | 24 | $configContainer = $container->get('Config'); |
| 25 | 25 | $configArray = isset($configContainer['acl']['assertions']) |
| 26 | 26 | ? $configContainer['acl']['assertions'] |
| 27 | 27 | : array(); |
| 28 | 28 | |
| 29 | - $manager = new AssertionManager($container, $configArray); |
|
| 29 | + $manager = new AssertionManager($container, $configArray); |
|
| 30 | 30 | |
| 31 | 31 | $manager->configure(['shared_by_default'=>false]); |
| 32 | 32 | return $manager; |
@@ -25,9 +25,9 @@ |
||
| 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 | } |
@@ -39,8 +39,8 @@ discard block |
||
| 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 |
||
| 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'); |
@@ -23,7 +23,7 @@ |
||
| 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); |
@@ -61,7 +61,7 @@ |
||
| 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 | /** |
@@ -32,6 +32,6 @@ |
||
| 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 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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())); |