Completed
Pull Request — develop (#223)
by ANTHONIUS
08:52
created
module/Jobs/src/Jobs/Entity/JobInterface.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
      *
199 199
      * @return UserInterface $user
200 200
      */
201
-    public function getUser() ;
201
+    public function getUser();
202 202
 
203 203
     /**
204 204
      * Gets the link to the application form
Please login to merge, or discard this patch.
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -36,6 +36,7 @@  discard block
 block discarded – undo
36 36
      * Gets the unique key used by applications to reference a job posting
37 37
      *
38 38
      * @param string $applyId
39
+     * @return Job
39 40
      */
40 41
     public function setApplyId($applyId);
41 42
 
@@ -91,6 +92,7 @@  discard block
 block discarded – undo
91 92
      * Sets an URI for a job posting
92 93
      *
93 94
      * @param string $link
95
+     * @return Job
94 96
      */
95 97
     public function setLink($link);
96 98
     
@@ -121,6 +123,7 @@  discard block
 block discarded – undo
121 123
      * Sets the title of a job posting
122 124
      *
123 125
      * @param string $title
126
+     * @return Job
124 127
      */
125 128
     public function setTitle($title);
126 129
 
@@ -222,6 +225,7 @@  discard block
 block discarded – undo
222 225
      * Sets the language of a job posting
223 226
      *
224 227
      * @param string $language
228
+     * @return Job
225 229
      */
226 230
     public function setLanguage($language);
227 231
 
@@ -237,6 +241,7 @@  discard block
 block discarded – undo
237 241
      * Sets the location of a job posting
238 242
      *
239 243
      * @param string $location
244
+     * @return Job
240 245
      */
241 246
     public function setLocation($location);
242 247
 
@@ -251,6 +256,7 @@  discard block
 block discarded – undo
251 256
      * Sets locations of a job posting
252 257
      *
253 258
      * @param string $locations
259
+     * @return Job
254 260
      */
255 261
     public function setLocations($locations);
256 262
 
@@ -265,6 +271,7 @@  discard block
 block discarded – undo
265 271
      * Sets applications for a job posting
266 272
      *
267 273
      * @param Collection $applications
274
+     * @return Job
268 275
      */
269 276
     public function setApplications(Collection $applications);
270 277
     
@@ -279,6 +286,7 @@  discard block
 block discarded – undo
279 286
      * Sets Status of a job posting
280 287
      *
281 288
      * @param string $status
289
+     * @return void
282 290
      */
283 291
     public function setStatus($status);
284 292
 
@@ -324,6 +332,7 @@  discard block
 block discarded – undo
324 332
      * organisation offering the job.
325 333
      *
326 334
      * @param string $reference
335
+     * @return Job
327 336
      */
328 337
     public function setReference($reference);
329 338
     
@@ -339,6 +348,7 @@  discard block
 block discarded – undo
339 348
      * Sets the list of channels where a job opening should be published
340 349
      *
341 350
      * @param Array $portals
351
+     * @return Job
342 352
      */
343 353
     public function setPortals(array $portals);
344 354
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/ModuleOptionsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
         $jobs_options = isset($config['jobs_options']) ? $config['jobs_options'] : array();
34 34
 
35
-        if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' ==  trim($jobs_options['multipostingApprovalMail'])) {
35
+        if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' == trim($jobs_options['multipostingApprovalMail'])) {
36 36
             $coreOptions = $serviceLocator->get('Core/Options');
37 37
             $jobs_options['multipostingApprovalMail'] = $coreOptions->getSystemMessageEmail();
38 38
         }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/Options/ChannelOptionsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $core = $serviceLocator->get("Core/Options");
25 25
 
26 26
         if ('' == $channel->getCurrency()) {
27
-            $currency=$core->getDefaultCurrencyCode();
27
+            $currency = $core->getDefaultCurrencyCode();
28 28
             $channel->setCurrency($currency);
29 29
         }
30 30
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/Hydrator/PreviewLinkHydrator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
               )
48 48
         );
49 49
 
50
-        $data['previewLink']         = $viewLink;
50
+        $data['previewLink'] = $viewLink;
51 51
         return $data;
52 52
     }
53 53
 
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,12 +39,12 @@
 block discarded – undo
39 39
         $viewLink = $controllerPluginManager->get('url')->fromRoute(
40 40
             'lang/jobs/view',
41 41
             array(
42
-              ),
42
+                ),
43 43
             array(
44
-                  'query' => array(
45
-                      'id' => $data['id'],
46
-                  )
47
-              )
44
+                    'query' => array(
45
+                        'id' => $data['id'],
46
+                    )
47
+                )
48 48
         );
49 49
 
50 50
         $data['previewLink']         = $viewLink;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/ImportFieldset.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,12 +86,12 @@
 block discarded – undo
86 86
 //                'allow_empty' => True
87 87
 //            ),
88 88
             
89
-             'logoRef' => array(
89
+                'logoRef' => array(
90 90
                 'filters'  => array(
91 91
                     array('name' => 'Zend\Filter\StringTrim'),
92 92
                 ),
93 93
                 'allow_empty' => true
94
-             ),
94
+                ),
95 95
 
96 96
 
97 97
         );
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/MultipostFieldset.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
 
44 44
         $this->add(
45 45
             array(
46
-                 'type' => 'Jobs\MultipostingSelect',
47
-                 'property' => true,
48
-                 'name' => 'portals',
49
-                 'options' => array(
50
-                     'label' => /*@translate*/ 'Portals',
51
-                 ),
52
-             )
46
+                    'type' => 'Jobs\MultipostingSelect',
47
+                    'property' => true,
48
+                    'name' => 'portals',
49
+                    'options' => array(
50
+                        'label' => /*@translate*/ 'Portals',
51
+                    ),
52
+                )
53 53
         );
54 54
     }
55 55
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Options/ModuleOptions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,21 +44,21 @@
 block discarded – undo
44 44
      *
45 45
      * @var string $defaultLogo
46 46
      */
47
-    protected $defaultLogo="/Jobs/images/yawik-small.jpg";
47
+    protected $defaultLogo = "/Jobs/images/yawik-small.jpg";
48 48
 
49 49
     /**
50 50
      * Maximum size in bytes of a company Logo. Default 200k
51 51
      *
52 52
      * @var int $companyLogoMaxSize
53 53
      */
54
-    protected $companyLogoMaxSize=200000;
54
+    protected $companyLogoMaxSize = 200000;
55 55
 
56 56
     /**
57 57
      * Allowed Mime-Types for company Logos
58 58
      *
59 59
      * @var array
60 60
      */
61
-    protected $companyLogoMimeType=array("image");
61
+    protected $companyLogoMimeType = array("image");
62 62
 
63 63
 
64 64
     /**
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Repository/JobSnapshotMeta.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $qb = $this->createQueryBuilder();
29 29
         $qb->hydrate(true)
30
-           ->select('entity')
31
-           ->field('sourceId')->equals($jobEntity->id)
32
-           ->sort('dateCreated', 'desc')
33
-           ->limit(1);
30
+            ->select('entity')
31
+            ->field('sourceId')->equals($jobEntity->id)
32
+            ->sort('dateCreated', 'desc')
33
+            ->limit(1);
34 34
 
35 35
         $result = $qb->getQuery()->execute();
36 36
         if ($result->count() == 0) {
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
         // So we need to create a cursor, that skips the first Document
54 54
         $qb = $this->createQueryBuilder();
55 55
         $qb->hydrate(false)
56
-           ->select('entity')
57
-           ->field('sourceId')->equals($jobEntity->id)
58
-           ->sort('dateCreated', 'desc');
56
+            ->select('entity')
57
+            ->field('sourceId')->equals($jobEntity->id)
58
+            ->sort('dateCreated', 'desc');
59 59
         $result = $qb->getQuery()->execute()->skip(1);
60 60
         foreach ($result as $item) {
61 61
             $id = $item['_id'];
Please login to merge, or discard this patch.
src/Organizations/Controller/Plugin/AcceptInvitationHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 
128 128
     public function process($token, $organizationId)
129 129
     {
130
-        $organizationRepository   = $this->getOrganizationRepository();
130
+        $organizationRepository = $this->getOrganizationRepository();
131 131
         $organization = $organizationRepository->find($organizationId); /* @var $organization \Organizations\Entity\OrganizationInterface */
132 132
 
133 133
         if (!$organization) {
Please login to merge, or discard this patch.