@@ -61,8 +61,8 @@ |
||
61 | 61 | $file = $this->getFileEntity(); |
62 | 62 | |
63 | 63 | $file->setName($value['name']) |
64 | - ->setType($value['type']) |
|
65 | - ->setFile($value['tmp_name']); |
|
64 | + ->setType($value['type']) |
|
65 | + ->setFile($value['tmp_name']); |
|
66 | 66 | |
67 | 67 | return $file; |
68 | 68 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function getConfig() |
27 | 27 | { |
28 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
28 | + return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function getConfig() |
27 | 27 | { |
28 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
28 | + return ModuleConfigLoader::load(__DIR__.'/config'); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -37,12 +37,12 @@ discard block |
||
37 | 37 | { |
38 | 38 | return array( |
39 | 39 | 'Zend\Loader\ClassMapAutoloader' => [ |
40 | - __DIR__ . '/src/autoload_classmap.php' |
|
40 | + __DIR__.'/src/autoload_classmap.php' |
|
41 | 41 | ], |
42 | 42 | 'Zend\Loader\StandardAutoloader' => array( |
43 | 43 | 'namespaces' => array( |
44 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
45 | - 'OrganizationsTest' => __DIR__ . '/test/' . 'OrganizationsTest' |
|
44 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
45 | + 'OrganizationsTest' => __DIR__.'/test/'.'OrganizationsTest' |
|
46 | 46 | ), |
47 | 47 | ), |
48 | 48 | ); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $createJobListener->attachShared($sharedManager); |
59 | 59 | |
60 | 60 | if ($e->getRequest() instanceof \Zend\Http\Request) { |
61 | - $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $event) { |
|
61 | + $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function(MvcEvent $event) { |
|
62 | 62 | $serviceManager = $event->getApplication() |
63 | 63 | ->getServiceManager(); |
64 | 64 | $options = $serviceManager->get('Organizations/ImageFileCacheOptions'); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | /** |
38 | 38 | * Sets the label of the qualifications form field |
39 | 39 | * |
40 | - * @param string $labelQualification |
|
40 | + * @param string $labelQualifications |
|
41 | 41 | * |
42 | 42 | * @return self |
43 | 43 | */ |
@@ -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 | } |
@@ -194,7 +194,7 @@ |
||
194 | 194 | $qb->addOr($qb->expr()->field('info.email')->equals($regex)); |
195 | 195 | } |
196 | 196 | $qb->sort(array('info.lastName' => 1)) |
197 | - ->sort(array('info.email' => 1)); |
|
197 | + ->sort(array('info.email' => 1)); |
|
198 | 198 | |
199 | 199 | return $qb->getQuery()->execute(); |
200 | 200 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @throws Mapping\MappingException |
53 | 53 | * @throws LockException |
54 | 54 | * @throws UserDeactivatedException |
55 | - * @return null | UserInterface |
|
55 | + * @return null|UserInterface | UserInterface |
|
56 | 56 | */ |
57 | 57 | public function find($id, $lockMode = \Doctrine\ODM\MongoDB\LockMode::NONE, $lockVersion = null, array $options = []) |
58 | 58 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * @param array $criteria |
64 | 64 | * @param array $options |
65 | 65 | * @throws UserDeactivatedException |
66 | - * @return null | UserInterface |
|
66 | + * @return null|UserInterface | UserInterface |
|
67 | 67 | */ |
68 | 68 | public function findOneBy(array $criteria, array $options = []) |
69 | 69 | { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * Creates a User |
93 | 93 | * |
94 | 94 | * @see \Core\Repository\AbstractRepository::create() |
95 | - * @return UserInterface |
|
95 | + * @return \Core\Entity\EntityInterface |
|
96 | 96 | */ |
97 | 97 | public function create(array $data = null, $persist=false) |
98 | 98 | { |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | * @param UserInterface $user |
268 | 268 | * @param array $options |
269 | 269 | * @throws UserDeactivatedException |
270 | - * @return null | UserInterface |
|
270 | + * @return null|UserInterface | UserInterface |
|
271 | 271 | */ |
272 | 272 | protected function assertEntity(UserInterface $user = null, array $options) |
273 | 273 | { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * @see \Core\Repository\AbstractRepository::create() |
95 | 95 | * @return UserInterface |
96 | 96 | */ |
97 | - public function create(array $data = null, $persist=false) |
|
97 | + public function create(array $data = null, $persist = false) |
|
98 | 98 | { |
99 | 99 | $entity = parent::create($data); |
100 | 100 | |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function findByProfileIdentifier($identifier, $provider, array $options = []) |
118 | 118 | { |
119 | - return $this->findOneBy(array('profiles.' . $provider . '.auth.identifier' => $identifier), $options) ?: $this->findOneBy(array('profile.identifier' => $identifier), $options); |
|
119 | + return $this->findOneBy(array('profiles.'.$provider.'.auth.identifier' => $identifier), $options) ?: $this->findOneBy(array('profile.identifier' => $identifier), $options); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | $qb->field('_id')->notEqual($curentUserId) |
134 | 134 | ->addAnd( |
135 | 135 | $qb->expr() |
136 | - ->addOr($qb->expr()->field('profiles.' . $provider . '.auth.identifier' )->equals($identifier)) |
|
136 | + ->addOr($qb->expr()->field('profiles.'.$provider.'.auth.identifier')->equals($identifier)) |
|
137 | 137 | ->addOr($qb->expr()->field('profile.identifier')->equals($identifier)) |
138 | 138 | ); |
139 | 139 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | return $this->findOneBy( |
190 | 190 | array( |
191 | 191 | '$or' => array( |
192 | - array('login' => $identity . $suffix), |
|
192 | + array('login' => $identity.$suffix), |
|
193 | 193 | array('info.email' => $identity) |
194 | 194 | ) |
195 | 195 | ) |
@@ -238,10 +238,10 @@ discard block |
||
238 | 238 | public function findByQuery($query) |
239 | 239 | { |
240 | 240 | $qb = $this->createQueryBuilder(); |
241 | - $parts = explode(' ', trim($query)); |
|
241 | + $parts = explode(' ', trim($query)); |
|
242 | 242 | |
243 | 243 | foreach ($parts as $q) { |
244 | - $regex = new \MongoRegex('/^' . $query . '/i'); |
|
244 | + $regex = new \MongoRegex('/^'.$query.'/i'); |
|
245 | 245 | $qb->addOr($qb->expr()->field('info.firstName')->equals($regex)); |
246 | 246 | $qb->addOr($qb->expr()->field('info.lastName')->equals($regex)); |
247 | 247 | $qb->addOr($qb->expr()->field('info.email')->equals($regex)); |
@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @return bool |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | public function getMode() |
76 | 76 | { |
@@ -40,9 +40,9 @@ |
||
40 | 40 | * @var array |
41 | 41 | */ |
42 | 42 | protected $reCaptcha = [ |
43 | - 'site_key' => 'Your Recapture Public Key', // "site_key" |
|
44 | - 'secret_key' => 'Your Recapture Private Key', // "secret_key" |
|
45 | - 'ssl' => true, // include google api via http(s) |
|
43 | + 'site_key' => 'Your Recapture Public Key', // "site_key" |
|
44 | + 'secret_key' => 'Your Recapture Private Key', // "secret_key" |
|
45 | + 'ssl' => true, // include google api via http(s) |
|
46 | 46 | ]; |
47 | 47 | |
48 | 48 | /** |
@@ -62,6 +62,6 @@ |
||
62 | 62 | ) |
63 | 63 | ) |
64 | 64 | ) |
65 | - ); |
|
65 | + ); |
|
66 | 66 | } |
67 | 67 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | ), |
46 | 46 | 'attributes' => array( |
47 | 47 | 'value' => Status::CREATED, |
48 | - 'data-searchbox' => -1, // hide the search box |
|
48 | + 'data-searchbox' => -1, // hide the search box |
|
49 | 49 | 'data-allowclear' => 'false', // allow to clear a selected value |
50 | 50 | ) |
51 | 51 | ) |
@@ -55,7 +55,7 @@ |
||
55 | 55 | ), |
56 | 56 | 'attributes' => [ |
57 | 57 | 'value' => '10', // default distance |
58 | - 'data-searchbox' => -1, // hide the search box |
|
58 | + 'data-searchbox' => -1, // hide the search box |
|
59 | 59 | 'data-allowclear' => 'false', // allow to clear a selected value |
60 | 60 | 'data-placeholder' => /*@translate*/ 'Distance', |
61 | 61 | ] |