Completed
Push — develop ( 06c328...a78ff6 )
by Carsten
17:00 queued 08:38
created
module/Jobs/src/Jobs/Filter/ViewModelTemplateFilterAbstract.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 
112 112
     /**
113 113
      * @param mixed $value
114
-     * @return mixed|ViewModel
114
+     * @return ViewModel
115 115
      * @throws \InvalidArgumentException
116 116
      */
117 117
     public function filter($value)
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         return;
102 102
     }
103 103
 
104
-	/**
104
+    /**
105 105
      * @return mixed
106 106
      */
107 107
     public function getServerUrlHelper()
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function setImageFileCacheHelper($imageFileCacheHelper)
122 122
     {
123
-        $this->imageFileCacheHelper=$imageFileCacheHelper;
123
+        $this->imageFileCacheHelper = $imageFileCacheHelper;
124 124
         return;
125 125
     }
126 126
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         if (!isset($this->job)) {
147 147
             throw new \InvalidArgumentException('cannot create a viewModel for Templates without an $job');
148 148
         }
149
-        $model->setTemplate('templates/' . $this->job->getTemplate() . '/index');
149
+        $model->setTemplate('templates/'.$this->job->getTemplate().'/index');
150 150
         return $model;
151 151
     }
152 152
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             throw new \InvalidArgumentException('cannot create a viewModel for Templates without aa $job');
207 207
         }
208 208
         $location = $this->job->getLocation();
209
-        $this->container['location'] = isset($location)?$location:'';
209
+        $this->container['location'] = isset($location) ? $location : '';
210 210
         return $this;
211 211
     }
212 212
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         }
228 228
         $description = $this->job->getTemplateValues()->getDescription();
229 229
 
230
-        $this->container['description'] = isset($description)?$description:'';
230
+        $this->container['description'] = isset($description) ? $description : '';
231 231
         return $this;
232 232
     }
233 233
 
@@ -291,9 +291,9 @@  discard block
 block discarded – undo
291 291
         if (!isset($this->job)) {
292 292
             throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job');
293 293
         }
294
-        $labelQualifications='';
295
-        $labelBenefits='';
296
-        $labelRequirements='';
294
+        $labelQualifications = '';
295
+        $labelBenefits = '';
296
+        $labelRequirements = '';
297 297
 
298 298
         $organization = $this->job->getOrganization();
299 299
         if (isset($organization)) {
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Hydrator/Strategy/FileUploadStrategy.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
module/Organizations/Module.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/TemplateInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
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.
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.
Doc Comments   +4 added lines, -4 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
     {
@@ -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.
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
-        '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
     /**
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.