@@ -135,7 +135,7 @@ |
||
| 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 | } |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | protected $adapter; |
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * OAuth constructor. |
|
| 37 | - * |
|
| 38 | - * @param ContainerInterface $serviceManager |
|
| 39 | - */ |
|
| 35 | + /** |
|
| 36 | + * OAuth constructor. |
|
| 37 | + * |
|
| 38 | + * @param ContainerInterface $serviceManager |
|
| 39 | + */ |
|
| 40 | 40 | public function __construct(ContainerInterface $serviceManager) |
| 41 | 41 | { |
| 42 | 42 | $this->serviceManager = $serviceManager; |
@@ -147,11 +147,11 @@ discard block |
||
| 147 | 147 | return $this; |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | - /** |
|
| 151 | - * @param ContainerInterface $container |
|
| 152 | - * |
|
| 153 | - * @return static |
|
| 154 | - */ |
|
| 150 | + /** |
|
| 151 | + * @param ContainerInterface $container |
|
| 152 | + * |
|
| 153 | + * @return static |
|
| 154 | + */ |
|
| 155 | 155 | public static function factory(ContainerInterface $container) |
| 156 | 156 | { |
| 157 | 157 | return new static($container); |
@@ -177,7 +177,7 @@ |
||
| 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 | |
@@ -20,8 +20,8 @@ |
||
| 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( |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | const NAMESPACE_INFO = 'info'; |
| 22 | 22 | const NAMESPACE_WARNING = 'warning'; |
| 23 | 23 | const NAMESPACE_DANGER = 'danger'; |
| 24 | - const NAMESPACE_SUCCESS = 'success'; |
|
| 24 | + const NAMESPACE_SUCCESS = 'success'; |
|
| 25 | 25 | |
| 26 | 26 | protected $namespace2priority = array( |
| 27 | 27 | self::NAMESPACE_INFO => NotificationEntity::INFO, |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function setListener($listener) |
| 61 | 61 | { |
| 62 | - $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this,'createOutput'), 1); |
|
| 62 | + $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this, 'createOutput'), 1); |
|
| 63 | 63 | $this->notificationListener = $listener; |
| 64 | 64 | } |
| 65 | 65 | |
@@ -58,9 +58,9 @@ |
||
| 58 | 58 | |
| 59 | 59 | protected $flashMessenger; |
| 60 | 60 | |
| 61 | - /** |
|
| 62 | - * @var NotificationListener |
|
| 63 | - */ |
|
| 61 | + /** |
|
| 62 | + * @var NotificationListener |
|
| 63 | + */ |
|
| 64 | 64 | protected $notificationListener; |
| 65 | 65 | |
| 66 | 66 | public function __construct(FlashMessenger $flashMessenger) |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | public function getList($namespace, $callback) |
| 136 | 136 | { |
| 137 | 137 | $session = new Container($namespace); |
| 138 | - $params = $session->params?:array(); |
|
| 138 | + $params = $session->params ?: array(); |
|
| 139 | 139 | if (!$session->list) { |
| 140 | 140 | $session->list = is_array($callback) |
| 141 | 141 | ? call_user_func($callback, $session->params) |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * @param object $object |
| 47 | 47 | * @return object |
| 48 | 48 | */ |
| 49 | - public function hydrate (array $data, $object) |
|
| 49 | + public function hydrate(array $data, $object) |
|
| 50 | 50 | { |
| 51 | 51 | |
| 52 | 52 | return $object; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * @return array|string |
| 58 | 58 | * @throws \InvalidArgumentException |
| 59 | 59 | */ |
| 60 | - public function extract ($object) |
|
| 60 | + public function extract($object) |
|
| 61 | 61 | { |
| 62 | 62 | if (!$object instanceof EntityInterface) { |
| 63 | 63 | throw new \InvalidArgumentException("Extract only from Entities"); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | |
| 95 | 95 | $view = $e->getApplication()->getServiceManager()->get('ViewManager')->getView(); |
| 96 | 96 | $view->addRenderingStrategy(array($strategy, 'selectRenderer'), 10); |
| 97 | - $view->addResponseStrategy(array($strategy, 'injectResponse'), 10); |
|
| 97 | + $view->addResponseStrategy(array($strategy, 'injectResponse'), 10); |
|
| 98 | 98 | |
| 99 | 99 | } |
| 100 | 100 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | class StringListener implements ListenerAggregateInterface |
| 10 | 10 | { |
| 11 | - protected $listeners = array(); |
|
| 11 | + protected $listeners = array(); |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Attach to an event manager |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | if (!empty($capture)) { |
| 52 | 52 | if ($viewModel->isAppend()) { |
| 53 | 53 | $oldResult = $viewModel->{$capture}; |
| 54 | - $viewModel->setVariable($capture, $oldResult . $result); |
|
| 54 | + $viewModel->setVariable($capture, $oldResult.$result); |
|
| 55 | 55 | } else { |
| 56 | 56 | $viewModel->setVariable($capture, $result); |
| 57 | 57 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | |
| 61 | - $dm = $eventArgs->getDocumentManager(); |
|
| 61 | + $dm = $eventArgs->getDocumentManager(); |
|
| 62 | 62 | $uow = $dm->getUnitOfWork(); |
| 63 | 63 | $changeset = $uow->getDocumentChangeset($document); |
| 64 | 64 | $filter = $this->getKeywordsFilter(); |