@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * Creates an instance of MailForgotPassword |
| 23 | 23 | * |
| 24 | 24 | * @param ServiceLocatorInterface $serviceLocator |
| 25 | - * @return \Auth\View\Helper\Auth |
|
| 25 | + * @return MailForgotPassword |
|
| 26 | 26 | * @see \Zend\ServiceManager\FactoryInterface::createService() |
| 27 | 27 | */ |
| 28 | 28 | public function createService(ServiceLocatorInterface $serviceLocator) |
@@ -1,11 +1,11 @@ |
||
| 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; |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $options = $serviceLocator->get('Auth\Options'); |
| 31 | 31 | $coreOptions = $serviceLocator->get('Core\Options'); |
| 32 | 32 | $mailService = $serviceLocator->get('Core\MailService'); |
| 33 | - $listener = new MailForgotPassword($options,$mailService, $coreOptions); |
|
| 33 | + $listener = new MailForgotPassword($options, $mailService, $coreOptions); |
|
| 34 | 34 | return $listener; |
| 35 | 35 | } |
| 36 | 36 | } |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | * @param Params $params |
| 56 | 56 | * @param bool $allowDraft |
| 57 | 57 | * |
| 58 | - * @return object|\Organizations\Entity\Organization |
|
| 58 | + * @return \Organizations\Entity\OrganizationInterface |
|
| 59 | 59 | * @throws UnauthorizedAccessException |
| 60 | 60 | * @throws \Doctrine\ODM\MongoDB\LockException |
| 61 | 61 | */ |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @author cbleek |
|
| 8 | - * @license MIT |
|
| 9 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @author cbleek |
|
| 8 | + * @license MIT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Core\Form\View\Helper; |
| 12 | 12 | |
@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | protected $acl; |
| 42 | 42 | |
| 43 | - public function __construct(RepositoryService $repositoryService,AuthenticationService $auth, Acl $acl) { |
|
| 44 | - $this->repositoryService=$repositoryService; |
|
| 45 | - $this->auth=$auth; |
|
| 46 | - $this->acl=$acl; |
|
| 43 | + public function __construct(RepositoryService $repositoryService, AuthenticationService $auth, Acl $acl) { |
|
| 44 | + $this->repositoryService = $repositoryService; |
|
| 45 | + $this->auth = $auth; |
|
| 46 | + $this->acl = $acl; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | public function __invoke() |
@@ -59,9 +59,9 @@ discard block |
||
| 59 | 59 | * @throws UnauthorizedAccessException |
| 60 | 60 | * @throws \Doctrine\ODM\MongoDB\LockException |
| 61 | 61 | */ |
| 62 | - public function process(Params $params,$allowDraft = true) |
|
| 62 | + public function process(Params $params, $allowDraft = true) |
|
| 63 | 63 | { |
| 64 | - $repositories = $this->repositoryService; |
|
| 64 | + $repositories = $this->repositoryService; |
|
| 65 | 65 | $organizationRepository = $this->repositoryService->get('Organizations/Organization'); |
| 66 | 66 | |
| 67 | 67 | $idFromRoute = $params('id', 0); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $user = $this->auth->getUser(); /* @var $user \Auth\Entity\UserInterface */ |
| 70 | 70 | |
| 71 | 71 | /* @var $organizationId string */ |
| 72 | - $organizationId = empty($idFromRoute)?$idFromSubForm:$idFromRoute; |
|
| 72 | + $organizationId = empty($idFromRoute) ? $idFromSubForm : $idFromRoute; |
|
| 73 | 73 | |
| 74 | 74 | $editOwnOrganization = '__my__' === $organizationId; |
| 75 | 75 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | return $organization; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - $organization = $organizationRepository->find($organizationId); |
|
| 107 | + $organization = $organizationRepository->find($organizationId); |
|
| 108 | 108 | if (!$organization) { |
| 109 | 109 | throw new \RuntimeException('No Organization found with id "' . $organizationId . '"'); |
| 110 | 110 | } |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @author cbleek |
|
| 8 | - * @license MIT |
|
| 9 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @author cbleek |
|
| 8 | + * @license MIT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Core\Form\View\Helper; |
| 12 | 12 | |
@@ -127,12 +127,12 @@ |
||
| 127 | 127 | try { |
| 128 | 128 | /* @var $handler \Organizations\Controller\Plugin\GetOrganizationHandler */ |
| 129 | 129 | $handler = $this->plugin('Organizations/GetOrganizationHandler'); |
| 130 | - $org = $handler->process($this->params(), true); |
|
| 130 | + $org = $handler->process($this->params(), true); |
|
| 131 | 131 | } catch (\RuntimeException $e) { |
| 132 | 132 | return $this->getErrorViewModel('no-parent'); |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - $container = $this->getFormular($org); |
|
| 135 | + $container = $this->getFormular($org); |
|
| 136 | 136 | |
| 137 | 137 | if (isset($formIdentifier) && $request->isPost()) { |
| 138 | 138 | /* @var $form \Zend\Form\FormInterface */ |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | protected $mailService; |
| 39 | 39 | |
| 40 | - public function __construct($options, $mailService, $coreOptions){ |
|
| 41 | - $this->options=$options; |
|
| 42 | - $this->mailService=$mailService; |
|
| 40 | + public function __construct($options, $mailService, $coreOptions) { |
|
| 41 | + $this->options = $options; |
|
| 42 | + $this->mailService = $mailService; |
|
| 43 | 43 | $this->coreOptions = $coreOptions; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -50,15 +50,15 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function __invoke(AuthEvent $e) |
| 52 | 52 | { |
| 53 | - $siteName=$this->coreOptions->getSiteName(); |
|
| 53 | + $siteName = $this->coreOptions->getSiteName(); |
|
| 54 | 54 | |
| 55 | 55 | $user = $e->getUser(); |
| 56 | 56 | $userEmail = $user->info->email; |
| 57 | 57 | $userName = $user->info->displayName; |
| 58 | 58 | $resetLink = $e->getResetLink(); |
| 59 | 59 | |
| 60 | - $fromEmail = $this->options->getFromEmail(); |
|
| 61 | - $fromName = $this->options->getFromName(); |
|
| 60 | + $fromEmail = $this->options->getFromEmail(); |
|
| 61 | + $fromName = $this->options->getFromName(); |
|
| 62 | 62 | |
| 63 | 63 | $mail = $this->mailService->get('htmltemplate'); |
| 64 | 64 | $mail->user = $user; |