Completed
Push — develop ( 037ef6...a650ad )
by Carsten
06:58
created
module/Core/src/Core/View/Helper/SocialButtons.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Repository/User.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
98 98
     {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     }
157 157
 
158 158
     /**
159
-     * @param      $email
159
+     * @param      string $email
160 160
      * @param bool $isDraft
161 161
      *
162 162
      * @return UserInterface|null
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.
module/Auth/src/Auth/Options/CaptchaOptions.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     }
71 71
 
72 72
     /**
73
-     * @return bool
73
+     * @return string
74 74
      */
75 75
     public function getMode()
76 76
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
      * @var array
41 41
      */
42 42
     protected $reCaptcha = [
43
-        'public_key' => 'Your Recapture Public Key',      // "site_key"
44
-        'private_key' => 'Your Recapture Private Key',    // "secret_key"
45
-        'ssl' => true,                                    // include google api via http(s)
43
+        'public_key' => 'Your Recapture Public Key', // "site_key"
44
+        'private_key' => 'Your Recapture Private Key', // "secret_key"
45
+        'ssl' => true, // include google api via http(s)
46 46
         ];
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/ApiJobListByOrganizationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             $response->setStatusCode(Response::STATUS_CODE_404);
42 42
             return $response;
43 43
         }
44
-        $jsonModel=new JsonModel();
44
+        $jsonModel = new JsonModel();
45 45
         $jsonModel->setVariables($this->apiJobDehydrator->dehydrateList($jobs));
46 46
         $jsonModel->setJsonpCallback('yawikParseJobs');
47 47
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/TemplateLabelBenefits.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
                     )
63 63
                 )
64 64
             )
65
-       );
65
+        );
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/ListFilterAdminFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
             )
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/ListFilterLocationFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
                 ]
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/UserInfoFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
                 'attributes' => [
122 122
                     'data-placeholder' => /*@translate*/ 'please select',
123 123
                     'data-allowclear' => 'false',
124
-                    'data-searchbox' => -1,  // hide the search box
124
+                    'data-searchbox' => -1, // hide the search box
125 125
                     'required' => true, // mark label as required
126 126
                 ],
127 127
             )
Please login to merge, or discard this patch.
module/Install/Module.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,6 +60,6 @@
 block discarded – undo
60 60
         $services     = $application->getServiceManager();
61 61
 
62 62
         $services->get('Install/Listener/LanguageSetter')
63
-                 ->attach($eventManager);
63
+                    ->attach($eventManager);
64 64
     }
65 65
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,23 +24,23 @@
 block discarded – undo
24 24
 
25 25
     public function getConfig()
26 26
     {
27
-        return include __DIR__ . '/config/module.config.php';
27
+        return include __DIR__.'/config/module.config.php';
28 28
     }
29 29
 
30 30
     public function getAutoloaderConfig()
31 31
     {
32 32
         return array(
33 33
             'Zend\Loader\ClassMapAutoloader' => array(
34
-                __DIR__ . '/autoload_classmap.php',
34
+                __DIR__.'/autoload_classmap.php',
35 35
                 array(
36 36
                     // We need this filter for initial user creation.
37
-                    'Auth\Entity\Filter\CredentialFilter' => __DIR__ . '/../Auth/src/Auth/Entity/Filter/CredentialFilter.php',
37
+                    'Auth\Entity\Filter\CredentialFilter' => __DIR__.'/../Auth/src/Auth/Entity/Filter/CredentialFilter.php',
38 38
                 ),
39 39
             ),
40 40
             'Zend\Loader\StandardAutoloader' => array(
41 41
                 'namespaces' => array(
42
-                    __NAMESPACE__ => __DIR__ . '/src' /* . __NAMESPACE__*/,
43
-                    __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ . 'Test',
42
+                    __NAMESPACE__ => __DIR__.'/src' /* . __NAMESPACE__*/,
43
+                    __NAMESPACE__.'Test' => __DIR__.'/test/'.__NAMESPACE__.'Test',
44 44
                 ),
45 45
             ),
46 46
         );
Please login to merge, or discard this patch.