Completed
Push — develop ( a5396a...45a0ea )
by Mathias
05:23
created
module/Jobs/src/Jobs/Model/ApiJobDehydrator.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
      */
23 23
     protected $url;
24 24
 
25
-  /**
26
-   * ViewHelper for generating an url to a job posting
27
-   *
28
-   * @var JobUrl $jobUrl
29
-   */
25
+    /**
26
+     * ViewHelper for generating an url to a job posting
27
+     *
28
+     * @var JobUrl $jobUrl
29
+     */
30 30
     protected $jobUrl;
31 31
 
32 32
     /**
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
         return $this;
41 41
     }
42 42
 
43
-   /**
44
-    * @param JobUrl $url
45
-    *
46
-    * @return $this
47
-    */
43
+    /**
44
+     * @param JobUrl $url
45
+     *
46
+     * @return $this
47
+     */
48 48
     public function setJobUrl($url)
49 49
     {
50 50
         $this->jobUrl = $url;
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
             'location' => $job->getLocation(),
65 65
             'link' => $this->jobUrl->__invoke(
66 66
                 $job,[
67
-                  'linkOnly'=> true,
68
-                  'absolute' => true,
67
+                    'linkOnly'=> true,
68
+                    'absolute' => true,
69 69
                 ]
70 70
             ),
71 71
             'organization' => array(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             'title' => $job->getTitle(),
64 64
             'location' => $job->getLocation(),
65 65
             'link' => $this->jobUrl->__invoke(
66
-                $job,[
66
+                $job, [
67 67
                   'linkOnly'=> true,
68 68
                   'absolute' => true,
69 69
                 ]
Please login to merge, or discard this patch.
module/Core/src/Core/Filter/File/Entity.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-     * @return mixed
41
+     * @return \Auth\Entity\UserInterface
42 42
      */
43 43
     public function getUser()
44 44
     {
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     }
69 69
 
70 70
     /**
71
-     * @param mixed $repositories
71
+     * @param mixed $repository
72 72
      *
73 73
      * @return self
74 74
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     public function getFileEntity()
94 94
     {
95
-        if (! $this->fileEntity instanceof FileInterface) {
95
+        if (!$this->fileEntity instanceof FileInterface) {
96 96
             throw new \RuntimeException('No file entity set or it does not implement \Core\Entity\FileInterface.');
97 97
         }
98 98
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
     public function filter($value)
103 103
     {
104
-        if (! is_array($value) || ! isset($value['tmp_name']) || ((isset($value['error']) && UPLOAD_ERR_NO_FILE == $value['error']))) {
104
+        if (!is_array($value) || !isset($value['tmp_name']) || ((isset($value['error']) && UPLOAD_ERR_NO_FILE == $value['error']))) {
105 105
             return null;
106 106
         }
107 107
 
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Controller/ProfileController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -169,6 +169,9 @@
 block discarded – undo
169 169
         return new ViewModel($result);
170 170
     }
171 171
 
172
+    /**
173
+     * @param Organization $organization
174
+     */
172 175
     private function disabledProfileViewModel($organization)
173 176
     {
174 177
         $model = new ViewModel([
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
 
84 84
         $result = $this->pagination([
85
-            'params' => ['Organizations_Profile',[
85
+            'params' => ['Organizations_Profile', [
86 86
                     'q',
87 87
                     'count' => $this->options['count'],
88 88
                     'page' => 1,
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $repo            = $this->repo;
117 117
         $id              = $this->params('id');
118 118
 
119
-        if(is_null($id)){
119
+        if (is_null($id)) {
120 120
             $this->getResponse()->setStatusCode(Response::STATUS_CODE_404);
121 121
             return [
122 122
                 'message' => $translator->translate('Can not access profile page without id'),
@@ -125,20 +125,20 @@  discard block
 block discarded – undo
125 125
         }
126 126
 
127 127
         $organization = $repo->find($id);
128
-        if(!$organization instanceof Organization){
128
+        if (!$organization instanceof Organization) {
129 129
             throw new NotFoundException($id);
130 130
         }
131 131
 
132
-        if(
132
+        if (
133 133
             Organization::PROFILE_DISABLED == $organization->getProfileSetting()
134 134
             || is_null($organization->getProfileSetting())
135
-        ){
135
+        ) {
136 136
             return $this->disabledProfileViewModel($organization);
137 137
         }
138 138
 
139 139
         $result = $this->pagination([
140 140
             'params' => [
141
-                'Organization_Jobs',[
141
+                'Organization_Jobs', [
142 142
                     'q',
143 143
                     'organization_id' => $id,
144 144
                     'count' => $this->options['count'],
@@ -151,13 +151,13 @@  discard block
 block discarded – undo
151 151
             ],
152 152
         ]);
153 153
 
154
-        if(
154
+        if (
155 155
             Organization::PROFILE_ACTIVE_JOBS == $organization->getProfileSetting()
156
-        ){
156
+        ) {
157 157
             /* @var \Zend\Paginator\Paginator $paginator */
158 158
             $paginator = $result['jobs'];
159 159
             $count = $paginator->getTotalItemCount();
160
-            if(0===$count){
160
+            if (0 === $count) {
161 161
                 return $this->disabledProfileViewModel($organization);
162 162
             }
163 163
         }
Please login to merge, or discard this patch.
module/Organizations/config/module.config.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     'controllers' => [
51 51
         'factories' => [
52
-	        'Organizations/InviteEmployee' => \Organizations\Factory\Controller\InviteEmployeeControllerFactory::class,
52
+            'Organizations/InviteEmployee' => \Organizations\Factory\Controller\InviteEmployeeControllerFactory::class,
53 53
             'Organizations/Index' => 'Organizations\Factory\Controller\IndexControllerFactory',
54 54
             'Organizations/Profile' => 'Organizations\Factory\Controller\ProfileControllerFactory'
55 55
         ]
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
     'view_manager' => [
67 67
         // Map template to files. Speeds up the lookup through the template stack.
68 68
         'template_map' => [
69
-             'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
70
-             'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
71
-             'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
72
-             'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
73
-             'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
74
-             'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
75
-             'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml',
76
-             'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml',
69
+                'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
70
+                'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
71
+                'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
72
+                'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
73
+                'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
74
+                'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
75
+                'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml',
76
+                'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml',
77 77
             'organizations/profile/disabled' => __DIR__ . '/../view/organizations/profile/disabled.phtml',
78 78
         ],
79 79
         // Where to look for view templates not mapped above
@@ -83,24 +83,24 @@  discard block
 block discarded – undo
83 83
     ],
84 84
     'form_elements' => [
85 85
         'invokables' => [
86
-             'Organizations/Form' => 'Organizations\Form\Organizations',
87
-             'Organizations/OrganizationsContactForm'     => 'Organizations\Form\OrganizationsContactForm',
88
-             'Organizations/OrganizationsNameForm'        => 'Organizations\Form\OrganizationsNameForm',
89
-             'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm',
90
-             'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset',
91
-             'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset',
92
-             //'Organizations/OrganizationFieldset'       => 'Organizations\Form\OrganizationFieldset',
93
-             'Organizations/EmployeesContainer'           => 'Organizations\Form\EmployeesContainer',
94
-             'Organizations/Employees'                    => 'Organizations\Form\Employees',
95
-             'Organizations/InviteEmployeeBar'            => 'Organizations\Form\Element\InviteEmployeeBar',
96
-             'Organizations/Employee'                     => 'Organizations\Form\Element\Employee',
97
-             'Organizations/WorkflowSettings'             => 'Organizations\Form\WorkflowSettings',
98
-             'Organizations/WorkflowSettingsFieldset'     => 'Organizations\Form\WorkflowSettingsFieldset',
99
-             'Organizations/Profile'                      => \Organizations\Form\OrganizationsProfileForm::class,
100
-             'Organizations/ProfileFieldset'              => \Organizations\Form\OrganizationsProfileFieldset::class
86
+                'Organizations/Form' => 'Organizations\Form\Organizations',
87
+                'Organizations/OrganizationsContactForm'     => 'Organizations\Form\OrganizationsContactForm',
88
+                'Organizations/OrganizationsNameForm'        => 'Organizations\Form\OrganizationsNameForm',
89
+                'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm',
90
+                'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset',
91
+                'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset',
92
+                //'Organizations/OrganizationFieldset'       => 'Organizations\Form\OrganizationFieldset',
93
+                'Organizations/EmployeesContainer'           => 'Organizations\Form\EmployeesContainer',
94
+                'Organizations/Employees'                    => 'Organizations\Form\Employees',
95
+                'Organizations/InviteEmployeeBar'            => 'Organizations\Form\Element\InviteEmployeeBar',
96
+                'Organizations/Employee'                     => 'Organizations\Form\Element\Employee',
97
+                'Organizations/WorkflowSettings'             => 'Organizations\Form\WorkflowSettings',
98
+                'Organizations/WorkflowSettingsFieldset'     => 'Organizations\Form\WorkflowSettingsFieldset',
99
+                'Organizations/Profile'                      => \Organizations\Form\OrganizationsProfileForm::class,
100
+                'Organizations/ProfileFieldset'              => \Organizations\Form\OrganizationsProfileFieldset::class
101 101
         ],
102 102
         'factories' => [
103
-	        'Organizations/OrganizationsNameFieldset'    => \Organizations\Factory\Form\OrganizationsNameFieldsetFactory::class,
103
+            'Organizations/OrganizationsNameFieldset'    => \Organizations\Factory\Form\OrganizationsNameFieldsetFactory::class,
104 104
             'Organizations/Image'                        => \Organizations\Form\LogoImageFactory::class,
105 105
             'Organizations/EmployeesFieldset'            => 'Organizations\Factory\Form\EmployeesFieldsetFactory',
106 106
             'Organizations/EmployeeFieldset'             => 'Organizations\Factory\Form\EmployeeFieldsetFactory',
@@ -212,13 +212,13 @@  discard block
 block discarded – undo
212 212
 
213 213
     'service_manager' => [
214 214
         'invokables' => [
215
-           'Organizations\Auth\Dependency\EmployeeListListener' => 'Organizations\Auth\Dependency\EmployeeListListener'
215
+            'Organizations\Auth\Dependency\EmployeeListListener' => 'Organizations\Auth\Dependency\EmployeeListListener'
216 216
         ],
217 217
         'factories' => [
218
-           'Organizations\Auth\Dependency\ListListener' => 'Organizations\Factory\Auth\Dependency\ListListenerFactory',
219
-           'Organizations\ImageFileCache\Manager' => 'Organizations\Factory\ImageFileCache\ManagerFactory',
220
-           'Organizations\ImageFileCache\ODMListener' => 'Organizations\Factory\ImageFileCache\ODMListenerFactory',
221
-           'Organizations\ImageFileCache\ApplicationListener' => 'Organizations\Factory\ImageFileCache\ApplicationListenerFactory',
218
+            'Organizations\Auth\Dependency\ListListener' => 'Organizations\Factory\Auth\Dependency\ListListenerFactory',
219
+            'Organizations\ImageFileCache\Manager' => 'Organizations\Factory\ImageFileCache\ManagerFactory',
220
+            'Organizations\ImageFileCache\ODMListener' => 'Organizations\Factory\ImageFileCache\ODMListenerFactory',
221
+            'Organizations\ImageFileCache\ApplicationListener' => 'Organizations\Factory\ImageFileCache\ApplicationListenerFactory',
222 222
         ],
223 223
     ],
224 224
 
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
                 ],
14 14
             ],
15 15
             'annotation' => [
16
-                'paths' => [ __DIR__ . '/../src/Organizations/Entity']
16
+                'paths' => [__DIR__.'/../src/Organizations/Entity']
17 17
             ],
18 18
         ],
19 19
         'eventmanager' => [
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         'translation_file_patterns' => [
41 41
             [
42 42
                 'type' => 'gettext',
43
-                'base_dir' => __DIR__ . '/../language',
43
+                'base_dir' => __DIR__.'/../language',
44 44
                 'pattern' => '%s.mo',
45 45
             ],
46 46
         ],
@@ -66,19 +66,19 @@  discard block
 block discarded – undo
66 66
     'view_manager' => [
67 67
         // Map template to files. Speeds up the lookup through the template stack.
68 68
         'template_map' => [
69
-             'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
70
-             'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
71
-             'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
72
-             'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
73
-             'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
74
-             'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
75
-             'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml',
76
-             'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml',
77
-            'organizations/profile/disabled' => __DIR__ . '/../view/organizations/profile/disabled.phtml',
69
+             'organizations/index/edit' => __DIR__.'/../view/organizations/index/form.phtml',
70
+             'organizations/form/employees-fieldset' => __DIR__.'/../view/form/employees-fieldset.phtml',
71
+             'organizations/form/employee-fieldset' => __DIR__.'/../view/form/employee-fieldset.phtml',
72
+             'organizations/form/invite-employee-bar' => __DIR__.'/../view/form/invite-employee-bar.phtml',
73
+             'organizations/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml',
74
+             'organizations/error/invite' => __DIR__.'/../view/error/invite.phtml',
75
+             'organizations/mail/invite-employee' => __DIR__.'/../view/mail/invite-employee.phtml',
76
+             'organizations/form/workflow-fieldset' => __DIR__.'/../view/form/workflow-fieldset.phtml',
77
+            'organizations/profile/disabled' => __DIR__.'/../view/organizations/profile/disabled.phtml',
78 78
         ],
79 79
         // Where to look for view templates not mapped above
80 80
         'template_path_stack' => [
81
-            __DIR__ . '/../view',
81
+            __DIR__.'/../view',
82 82
         ],
83 83
     ],
84 84
     'form_elements' => [
@@ -156,13 +156,13 @@  discard block
 block discarded – undo
156 156
                 'allow' => [
157 157
                     'Entity/OrganizationImage',
158 158
                     'route/lang/organizations/invite',
159
-                    'Organizations/InviteEmployee' => [ 'accept' ],
159
+                    'Organizations/InviteEmployee' => ['accept'],
160 160
                     'route/lang/organizations/profile',
161 161
                     'route/lang/organizations/profileDetail',
162 162
                 ],
163 163
                 'deny' => [
164 164
                     'route/lang/organizations',
165
-                    'Organizations/InviteEmployee' => [ 'invite' ],
165
+                    'Organizations/InviteEmployee' => ['invite'],
166 166
                 ],
167 167
             ],
168 168
             // recruiters are allowed to view their companies
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
                 'allow' => [
171 171
                     'route/lang/organizations',
172 172
                     'Organizations/InviteEmployee',
173
-                    'Entity/Organization' => [ 'edit' => 'Organizations/Write' ],
173
+                    'Entity/Organization' => ['edit' => 'Organizations/Write'],
174 174
                     'route/lang/organizations/profile',
175 175
                     'route/lang/organizations/profileDetail'
176 176
                 ],
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
             'organizations' => [
189 189
                 'label' => 'Organizations',
190 190
                 'route' => 'lang/organizations',
191
-                'order' => 65,                             // allows to order the menu items
192
-                'resource' => 'route/lang/organizations',  // if a resource is defined, the acl will be applied.
191
+                'order' => 65, // allows to order the menu items
192
+                'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied.
193 193
 
194 194
                 'pages' => [
195 195
                     'list' => [
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/RepositoryService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
38 38
             $name = "\\$namespace\\Entity\\$entityName";
39 39
         }
40 40
         
41
-        $repository  = $this->dm->getRepository($name);
41
+        $repository = $this->dm->getRepository($name);
42 42
 
43
-        if (!$repository instanceOf AbstractRepository)  {
43
+        if (!$repository instanceOf AbstractRepository) {
44 44
             $eventArgs = new DoctrineMongoODM\Event\EventArgs(
45 45
                 array(
46 46
                     'repository' => $repository,
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/SnapshotRepository.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             'entity' => $snapshot
125 125
         ]);
126 126
         $this->dm->getEventManager()
127
-                 ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs);
127
+                    ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs);
128 128
 
129 129
         $this->copy($source, $snapshot);
130 130
 
@@ -200,12 +200,12 @@  discard block
 block discarded – undo
200 200
     public function findLatest($sourceId, $isDraft = false)
201 201
     {
202 202
         $entity = $this->createQueryBuilder()
203
-          ->field('snapshotEntity')->equals(new \MongoId($sourceId))
204
-          ->field('snapshotMeta.isDraft')->equals($isDraft)
205
-          ->sort('snapshotMeta.dateCreated.date', 'desc')
206
-          ->limit(1)
207
-          ->getQuery()
208
-          ->getSingleResult()
203
+            ->field('snapshotEntity')->equals(new \MongoId($sourceId))
204
+            ->field('snapshotMeta.isDraft')->equals($isDraft)
205
+            ->sort('snapshotMeta.dateCreated.date', 'desc')
206
+            ->limit(1)
207
+            ->getQuery()
208
+            ->getSingleResult()
209 209
         ;
210 210
         if ($entity) {
211 211
             $this->dm->getEventManager()->dispatchEvent(
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/LocationInterface.php 1 patch
Doc Comments   +11 added lines, -10 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
      * Sets the Postal Code of a location
21 21
      *
22 22
      * @param   string $postalCode
23
-     * @return mixed
23
+     * @return AbstractLocation
24 24
      */
25 25
     public function setPostalCode($postalCode);
26 26
 
27 27
     /**
28 28
      * Gets the Postal Code of a location
29 29
      *
30
-     * @return mixed
30
+     * @return string
31 31
      */
32 32
     public function getPostalCode();
33 33
 
@@ -44,6 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @param GeoJson $coordinates
46 46
      * @internal param $point
47
+     * @return AbstractLocation
47 48
      */
48 49
     public function setCoordinates(GeoJson $coordinates);
49 50
 
@@ -51,7 +52,7 @@  discard block
 block discarded – undo
51 52
      * Sets the city name of a Location
52 53
      *
53 54
      * @param $city
54
-     * @return mixed
55
+     * @return AbstractLocation
55 56
      */
56 57
     public function setCity($city);
57 58
 
@@ -66,14 +67,14 @@  discard block
 block discarded – undo
66 67
      * Sets the country of a location
67 68
      *
68 69
      * @param $country
69
-     * @return mixed
70
+     * @return AbstractLocation
70 71
      */
71 72
     public function setCountry($country);
72 73
 
73 74
     /**
74 75
      * Gets the country of a location
75 76
      *
76
-     * @return mixed
77
+     * @return string
77 78
      */
78 79
     public function getCountry();
79 80
 
@@ -81,7 +82,7 @@  discard block
 block discarded – undo
81 82
      * Sets the region of a location. Eg. "Hessen" is a region in "Germany"
82 83
      *
83 84
      * @param $region
84
-     * @return mixed
85
+     * @return AbstractLocation
85 86
      */
86 87
     public function setRegion($region);
87 88
 
@@ -96,14 +97,14 @@  discard block
 block discarded – undo
96 97
      * Sets the Streetname of a location
97 98
      *
98 99
      * @param $street
99
-     * @return mixed
100
+     * @return AbstractLocation
100 101
      */
101 102
     public function setStreetname($street);
102 103
 
103 104
     /**
104 105
      * Gets the streetname of a location
105 106
      *
106
-     * @return mixed
107
+     * @return string
107 108
      */
108 109
     public function getStreetname();
109 110
 
@@ -111,14 +112,14 @@  discard block
 block discarded – undo
111 112
      * Sets the Streetnumber of a location
112 113
      *
113 114
      * @param $number
114
-     * @return mixed
115
+     * @return AbstractLocation
115 116
      */
116 117
     public function setStreetnumber($number);
117 118
 
118 119
     /**
119 120
      * Gets the streetnumber of a location
120 121
      *
121
-     * @return mixeed
122
+     * @return string
122 123
      */
123 124
     public function getStreetnumber();
124 125
 }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/Decorator/JsonLdProvider.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -82,6 +82,7 @@
 block discarded – undo
82 82
      * Generates a location array
83 83
      *
84 84
      * @param Collection $locations,
85
+     * @param string $locations
85 86
      *
86 87
      * @return array
87 88
      */
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $dateStart = $this->job->getDatePublishStart();
53 53
         $dateStart = $dateStart ? $dateStart->format('Y-m-d') : null;
54 54
 	    
55
-        $array=[
55
+        $array = [
56 56
             '@context'=>'http://schema.org/',
57 57
             '@type' => 'JobPosting',
58 58
             'title' => $this->job->getTitle(),
@@ -85,16 +85,16 @@  discard block
 block discarded – undo
85 85
      *
86 86
      * @return array
87 87
      */
88
-    private function getLocations($locations){
89
-        $array=[];
90
-        foreach($locations as $location){ /* @var \Core\Entity\LocationInterface $location */
88
+    private function getLocations($locations) {
89
+        $array = [];
90
+        foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */
91 91
             array_push(
92 92
                 $array,
93 93
                 [
94 94
                     '@type' => 'Place',
95 95
                     'address' => [
96 96
                         '@type' => 'PostalAddress',
97
-                        'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(),
97
+                        'streetAddress' => $location->getStreetname().' '.$location->getStreetnumber(),
98 98
                         'postalCode' => $location->getPostalCode(),
99 99
                         'addressLocality' => $location->getCity(),
100 100
                         'addressCountry' => $location->getCountry(),
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     private function getDescription(TemplateValuesInterface $values) {
116 116
 
117
-        $description=sprintf(
117
+        $description = sprintf(
118 118
             "<p>%s</p>".
119 119
             "<h1>%s</h1>".
120 120
             "<h3>Requirements</h3><p>%s</p>".
Please login to merge, or discard this patch.