@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function getHydrator() |
| 25 | 25 | { |
| 26 | 26 | if (!$this->hydrator) { |
| 27 | - $hydrator = new EntityHydrator(); |
|
| 27 | + $hydrator = new EntityHydrator(); |
|
| 28 | 28 | $this->setHydrator($hydrator); |
| 29 | 29 | } |
| 30 | 30 | return $this->hydrator; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | if ($document instanceof UserInterface) { |
| 42 | 42 | $repository = $args->getDocumentManager()->getRepository('Organizations\Entity\Organization'); |
| 43 | - $userId = $document->getId(); |
|
| 43 | + $userId = $document->getId(); |
|
| 44 | 44 | $reference = new OrganizationReference($userId, $repository); |
| 45 | 45 | |
| 46 | 46 | $document->setOrganization($reference); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @var String |
| 26 | 26 | */ |
| 27 | - protected $repositoryName="Organizations/Organization"; |
|
| 27 | + protected $repositoryName = "Organizations/Organization"; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Sortable fields |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 33 | 33 | { |
| 34 | - $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
| 34 | + $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
| 35 | 35 | $filter = new PaginationQuery($auth); |
| 36 | 36 | return $filter; |
| 37 | 37 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 33 | 33 | { |
| 34 | - $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
| 34 | + $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
| 35 | 35 | $filter = new PaginationQuery($auth); |
| 36 | 36 | return $filter; |
| 37 | 37 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function setHouseNumber($houseNumber = "") |
| 73 | 73 | { |
| 74 | - $this->houseNumber=$houseNumber; |
|
| 74 | + $this->houseNumber = $houseNumber; |
|
| 75 | 75 | return $this; |
| 76 | 76 | } |
| 77 | 77 | |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public function setStreet($street = "") |
| 139 | 139 | { |
| 140 | - $this->street=$street; |
|
| 140 | + $this->street = $street; |
|
| 141 | 141 | return $this; |
| 142 | 142 | } |
| 143 | 143 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public function setPhone($phone = "") |
| 162 | 162 | { |
| 163 | - $this->phone=$phone; |
|
| 163 | + $this->phone = $phone; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | public function setFax($fax = "") |
| 184 | 184 | { |
| 185 | - $this->fax=$fax; |
|
| 185 | + $this->fax = $fax; |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * |
| 62 | 62 | * @var array() |
| 63 | 63 | */ |
| 64 | - protected $enableLogins = ['facebook','xing','linkedin','google','github']; |
|
| 64 | + protected $enableLogins = ['facebook', 'xing', 'linkedin', 'google', 'github']; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Enable Registration |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /* @var $serviceLocator \Zend\View\HelperPluginManager */ |
| 27 | 27 | $options = $serviceLocator->getServiceLocator()->get('Auth/Options'); |
| 28 | 28 | $config = $serviceLocator->getServiceLocator()->get('Config'); |
| 29 | - $helper = new SocialButtons($options,$config); |
|
| 29 | + $helper = new SocialButtons($options, $config); |
|
| 30 | 30 | return $helper; |
| 31 | 31 | } |
| 32 | 32 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * @param $options ModuleOptions |
| 29 | 29 | * @param $config array |
| 30 | 30 | */ |
| 31 | - public function __construct($options,$config) |
|
| 31 | + public function __construct($options, $config) |
|
| 32 | 32 | { |
| 33 | 33 | $this->options = $options; |
| 34 | 34 | $this->config = $config; |
@@ -42,9 +42,9 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function __invoke() |
| 44 | 44 | { |
| 45 | - $SocialNetworksEnabled=[]; |
|
| 46 | - foreach($this->config['hybridauth'] as $key => $val) { |
|
| 47 | - if ($val['enabled'] and in_array(strtolower($key), $this->options->getEnableLogins())){ |
|
| 45 | + $SocialNetworksEnabled = []; |
|
| 46 | + foreach ($this->config['hybridauth'] as $key => $val) { |
|
| 47 | + if ($val['enabled'] and in_array(strtolower($key), $this->options->getEnableLogins())) { |
|
| 48 | 48 | $SocialNetworksEnabled[strtolower($key)] = $key; |
| 49 | 49 | } |
| 50 | 50 | } |