Completed
Pull Request — develop (#491)
by Mathias
16:00
created
src/Jobs/Form/Hydrator/Strategy/JobDescriptionQualificationsStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         /* @var \Jobs\Entity\Job $value */
20 20
         $result = null;
21
-        if (method_exists($value,'getTemplateValues')) {
21
+        if (method_exists($value, 'getTemplateValues')) {
22 22
             $result = $value->getTemplateValues()->getQualifications();
23 23
         }
24 24
         return $result;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/TemplateController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function viewAction()
59 59
     {
60 60
         $id = $this->params()->fromQuery('id');
61
-        $channel = $this->params()->fromRoute('channel','default');
61
+        $channel = $this->params()->fromRoute('channel', 'default');
62 62
         $response = $this->getResponse();
63 63
         /* @var \Jobs\Entity\Job $job */
64 64
         try {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $this->auth()->isAdmin()
88 88
         ) {
89 89
             $applicationViewModel->setTemplate('iframe/iFrameInjection');
90
-        }elseif(Status::EXPIRED == $job->getStatus() or  Status::INACTIVE == $job->getStatus()) {
90
+        }elseif (Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) {
91 91
             $response->setStatusCode(Response::STATUS_CODE_410);
92 92
             $model->setTemplate('jobs/error/expired');
93 93
             $model->setVariables(
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     protected function editTemplateAction()
116 116
     {
117 117
         $id = $this->params('id');
118
-        $formIdentifier=$this->params()->fromQuery('form');
118
+        $formIdentifier = $this->params()->fromQuery('form');
119 119
         //$job = $this->jobRepository->find($id);
120 120
         $job = $this->initializeJob()->get($this->params(), true, true); /* @var \Jobs\Entity\Job $job */
121 121
         $this->acl($job, 'edit');
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
         $formTemplate->setParam('id', $job->getId());
141 141
         $formTemplate->setParam('applyId', $job->getApplyId());
142
-        $formTemplate->setParam('snapshot', $job instanceOf JobSnapshot ? $job->getSnapshotId() : '' );
142
+        $formTemplate->setParam('snapshot', $job instanceOf JobSnapshot ? $job->getSnapshotId() : '');
143 143
 
144 144
         $formTemplate->setEntity($job);
145 145
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
             $instanceForm = $formTemplate->get($formIdentifier);
150 150
             if (!isset($instanceForm)) {
151
-                throw new \RuntimeException('No form found for "' . $formIdentifier . '"');
151
+                throw new \RuntimeException('No form found for "'.$formIdentifier.'"');
152 152
             }
153 153
 
154 154
             // the id is part of the postData, but it never should be altered
Please login to merge, or discard this patch.
module/Applications/src/Applications/Repository/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,8 +131,8 @@
 block discarded – undo
131 131
      */
132 132
     public function loadUnreadApplicationsForJob($job)
133 133
     {
134
-        $auth=$this->getService('AuthenticationService');
135
-        $qb=$this->createQueryBuilder()
134
+        $auth = $this->getService('AuthenticationService');
135
+        $qb = $this->createQueryBuilder()
136 136
                   ->field("readBy")->notIn(array($auth->getUser()->getId()))
137 137
                   ->field("job")->equals(new \MongoId($job->getId()));
138 138
         return $qb->getQuery()->execute();
Please login to merge, or discard this patch.
src/Organizations/Entity/Hydrator/Strategy/OrganizationNameStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function extract($value)
35 35
     {
36 36
         $name = '';
37
-        if (method_exists($value,"getName")) {
37
+        if (method_exists($value, "getName")) {
38 38
             $name = $value->getName();
39 39
         }
40 40
         return $name;
Please login to merge, or discard this patch.
module/Cv/src/Cv/Entity/Attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,6 @@
 block discarded – undo
32 32
      */
33 33
     public function getUri()
34 34
     {
35
-        return "/file/Cv.Attachment/" . $this->getId() . "/" .urlencode($this->name);
35
+        return "/file/Cv.Attachment/".$this->getId()."/".urlencode($this->name);
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
module/Auth/src/Auth/View/Helper/Auth.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,8 +97,8 @@
 block discarded – undo
97 97
             $value = null;
98 98
             $service = $this->getService();
99 99
             $user    = $service->getUser();
100
-            if (method_exists($user,"get".$property)) {
101
-                $value = $user->{"get" . $property}();
100
+            if (method_exists($user, "get".$property)) {
101
+                $value = $user->{"get".$property}();
102 102
             }
103 103
             return $value;
104 104
         } catch (\OutOfBoundsException $e) {
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/Plugin/Auth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
                 }
93 93
                 return $value;
94 94
             }
95
-            return 'id' == $property ? $auth->getIdentity() : $auth->getUser()->{'get' . $property}();
95
+            return 'id' == $property ? $auth->getIdentity() : $auth->getUser()->{'get'.$property}();
96 96
         }
97 97
         return null;
98 98
     }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/JobDescriptionHtml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             'options' => [
52 52
                 'placeholder' => /*@translate*/ 'Enter pure html code here',
53 53
             ],
54
-                'attributes' => ['style' => 'width:100%;height:100%;',]
54
+                'attributes' => ['style' => 'width:100%;height:100%;', ]
55 55
             ]
56 56
         );
57 57
     }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/TemplateValues.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @var String
37 37
      * @ODM\Field(type="string")
38 38
      */
39
-    protected $qualifications='';
39
+    protected $qualifications = '';
40 40
 
41 41
     /**
42 42
      * Requirements field of the job template
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @var String
45 45
      * @ODM\Field(type="string")
46 46
      */
47
-    protected $requirements='';
47
+    protected $requirements = '';
48 48
 
49 49
     /**
50 50
      * Benefits field of the job template
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @var String
53 53
      * @ODM\Field(type="string")
54 54
      */
55
-    protected $benefits='';
55
+    protected $benefits = '';
56 56
 
57 57
     /**
58 58
      * Job title field of the job template
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @var String
61 61
      * @ODM\Field(type="string")
62 62
      */
63
-    protected $title='';
63
+    protected $title = '';
64 64
 
65 65
     /**
66 66
      * Company description field of the job template
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @var String
69 69
      * @ODM\Field(type="string")
70 70
      */
71
-    protected $description='';
71
+    protected $description = '';
72 72
 
73 73
     /**
74 74
      * language of the job template values. Must be a valid ISO 639-1 code
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @var String
77 77
      * @ODM\Field(type="string")
78 78
      */
79
-    protected $language='en';
79
+    protected $language = 'en';
80 80
 
81 81
     /**
82 82
      * Pure HTML
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @var string
86 86
      * @since 0.29
87 87
      */
88
-    protected $html='';
88
+    protected $html = '';
89 89
 
90 90
     /**
91 91
      * free values (currently not in use)
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function setQualifications($qualifications)
104 104
     {
105
-        $this->qualifications= (string) $qualifications;
105
+        $this->qualifications = (string) $qualifications;
106 106
         return $this;
107 107
     }
108 108
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function setRequirements($requirements)
126 126
     {
127
-        $this->requirements=(string) $requirements;
127
+        $this->requirements = (string) $requirements;
128 128
         return $this;
129 129
     }
130 130
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function setBenefits($benefits)
148 148
     {
149
-        $this->benefits=(string) $benefits;
149
+        $this->benefits = (string) $benefits;
150 150
         return $this;
151 151
     }
152 152
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function setTitle($title)
170 170
     {
171
-        $this->title=(string) $title;
171
+        $this->title = (string) $title;
172 172
         return $this;
173 173
     }
174 174
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function setDescription($description)
192 192
     {
193
-        $this->description=(string) $description;
193
+        $this->description = (string) $description;
194 194
         return $this;
195 195
     }
196 196
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public function setLanguage($language)
214 214
     {
215
-        $this->language=(string) $language;
215
+        $this->language = (string) $language;
216 216
         return $this;
217 217
     }
218 218
 
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 
282 282
     public function __get($property)
283 283
     {
284
-        $getter = "get" . ucfirst($property);
284
+        $getter = "get".ucfirst($property);
285 285
         if (method_exists($this, $getter)) {
286 286
             return $this->$getter();
287 287
         }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
     public function __set($property, $value)
297 297
     {
298 298
         //$this->checkWriteAccess();
299
-        $setter = 'set' . ucfirst($property);
299
+        $setter = 'set'.ucfirst($property);
300 300
         if (method_exists($this, $setter)) {
301 301
             $this->$setter($value);
302 302
             return;
Please login to merge, or discard this patch.