Completed
Pull Request — develop (#359)
by Mathias
23:51
created
module/Jobs/src/Jobs/Controller/AdminController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
     public function indexAction()
27 27
     {
28 28
         return $this->pagination([
29
-            'params'    => [ 'Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status' ] ],
30
-            'form'      => [ 'as' => 'form', 'Jobs/AdminSearch' ],
31
-            'paginator' => [ 'as' => 'jobs', 'Jobs/Admin' ],
29
+            'params'    => ['Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status']],
30
+            'form'      => ['as' => 'form', 'Jobs/AdminSearch'],
31
+            'paginator' => ['as' => 'jobs', 'Jobs/Admin'],
32 32
         ]);
33 33
     }
34 34
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                     $oldStatus = $job->getStatus();
55 55
                     $job->changeStatus($post['statusselect'], '[System] Status changed via Admin GUI.');
56 56
                     $events = $services->get('Jobs/Events');
57
-                    $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, [ 'job' => $job, 'status' => $oldStatus ]);
57
+                    $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, ['job' => $job, 'status' => $oldStatus]);
58 58
                 }
59 59
             }
60 60
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $form->bind($job);
68 68
 
69
-        return [ 'form' => $form, 'job' => $job ];
69
+        return ['form' => $form, 'job' => $job];
70 70
     }
71 71
     
72 72
 }
73 73
\ No newline at end of file
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Filter/ViewModelTemplateFilterForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             'lang/jobs/view',
49 49
             [],
50 50
             [
51
-                'query' => [ 'id' => $job->getId() ],
51
+                'query' => ['id' => $job->getId()],
52 52
                 'force_canonical' => true
53 53
             ]
54 54
         );
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/Job.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $elements = [
60 60
             'general' => [
61 61
                 'priority' => 100,
62
-                'options' => [ 'label' => 'Basic Data' ],
62
+                'options' => ['label' => 'Basic Data'],
63 63
                 'property' => true,
64 64
                 'forms' => [
65 65
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
             'description' => [
105 105
                 'priority' => '80',
106
-                'options' => [ 'label' => 'Job opening' ],
106
+                'options' => ['label' => 'Job opening'],
107 107
                 'property' => true,
108 108
                 'forms' => [
109 109
                     'descriptionForm' => array(
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
             'preview' => [
117 117
                 'priority' => 60,
118
-                'options' => [ 'label' => 'Preview' ],
118
+                'options' => ['label' => 'Preview'],
119 119
                 'property' => true,
120 120
                 'forms' => [
121 121
                     'previewForm' => array(
@@ -129,13 +129,13 @@  discard block
 block discarded – undo
129 129
 
130 130
         $this->setForms($elements);
131 131
 
132
-        $events  = $this->getEventManager();
132
+        $events = $this->getEventManager();
133 133
         $events->trigger(FormEvent::EVENT_INIT, $this);
134 134
     }
135 135
 
136 136
     public function renderPost(Renderer $renderer)
137 137
     {
138
-        $coreformsjs   = $renderer->basepath('/Core/js/core.forms.js');
138
+        $coreformsjs = $renderer->basepath('/Core/js/core.forms.js');
139 139
         $javaScript = <<<JS
140 140
         $(document).ready(function() {
141 141
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/AtsMode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
      */
225 225
 	public function setOneClickApply($oneClickApply)
226 226
 	{
227
-		$this->oneClickApply = (bool)$oneClickApply;
227
+		$this->oneClickApply = (bool) $oneClickApply;
228 228
 		
229 229
 		return $this;
230 230
 	}
Please login to merge, or discard this patch.
src/Organizations/Controller/Plugin/GetOrganizationHandler.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected $acl;
46 46
 
47
-    public function __construct(RepositoryService $repositoryService,AuthenticationService $auth, Acl $acl) {
48
-        $this->repositoryService=$repositoryService;
49
-        $this->auth=$auth;
50
-        $this->acl=$acl;
47
+    public function __construct(RepositoryService $repositoryService, AuthenticationService $auth, Acl $acl) {
48
+        $this->repositoryService = $repositoryService;
49
+        $this->auth = $auth;
50
+        $this->acl = $acl;
51 51
     }
52 52
 
53 53
     public function __invoke()
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
      * @throws \Doctrine\ODM\MongoDB\LockException
65 65
      * @throws NotFoundException
66 66
      */
67
-    public function process(Params $params,$allowDraft = true)
67
+    public function process(Params $params, $allowDraft = true)
68 68
     {
69
-        $repositories   = $this->repositoryService;
69
+        $repositories = $this->repositoryService;
70 70
         /* @var \Organizations\Repository\Organization $organizationRepository */
71 71
         $organizationRepository = $this->repositoryService->get('Organizations/Organization');
72 72
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $user = $this->auth->getUser(); /* @var $user \Auth\Entity\UserInterface */
76 76
 
77 77
         /* @var $organizationId string */
78
-        $organizationId = empty($idFromRoute)?$idFromSubForm:$idFromRoute;
78
+        $organizationId = empty($idFromRoute) ? $idFromSubForm : $idFromRoute;
79 79
 
80 80
         $editOwnOrganization = '__my__' === $organizationId;
81 81
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             return $organization;
111 111
         }
112 112
 
113
-        $organization      = $organizationRepository->find($organizationId);
113
+        $organization = $organizationRepository->find($organizationId);
114 114
         if (!$organization) {
115 115
             throw new NotFoundException($organizationId);
116 116
         }
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Controller/IndexController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         try {
125 125
             /* @var $handler \Organizations\Controller\Plugin\GetOrganizationHandler */
126 126
             $handler = $this->plugin('Organizations/GetOrganizationHandler');
127
-            $org  = $handler->process($this->params(), true);
127
+            $org = $handler->process($this->params(), true);
128 128
         } catch (MissingParentOrganizationException $e) {
129 129
             return $this->getErrorViewModel('no-parent');
130 130
         } catch (NotFoundException $e) {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             ];
136 136
         }
137 137
 
138
-        $container       = $this->getFormular($org);
138
+        $container = $this->getFormular($org);
139 139
 
140 140
         if (isset($formIdentifier) && $request->isPost()) {
141 141
             /* @var $form \Zend\Form\FormInterface */
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             $form = $container->get($formIdentifier);
161 161
             $form->setData(array_merge($postData, $filesData));
162 162
             if (!isset($form)) {
163
-                throw new \RuntimeException('No form found for "' . $formIdentifier . '"');
163
+                throw new \RuntimeException('No form found for "'.$formIdentifier.'"');
164 164
             }
165 165
             $isValid = $form->isValid();
166 166
 
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Form/LogoImageFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * @var string
30 30
      */
31
-    protected $options="Jobs/Options";
31
+    protected $options = "Jobs/Options";
32 32
 
33 33
     /**
34 34
      * Configure the Form width Options
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/OrganizationContact.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function setHouseNumber($houseNumber = "")
73 73
     {
74
-        $this->houseNumber=$houseNumber;
74
+        $this->houseNumber = $houseNumber;
75 75
         return $this;
76 76
     }
77 77
     
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function setStreet($street = "")
139 139
     {
140
-        $this->street=$street;
140
+        $this->street = $street;
141 141
         return $this;
142 142
     }
143 143
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function setPhone($phone = "")
162 162
     {
163
-        $this->phone=$phone;
163
+        $this->phone = $phone;
164 164
         return $this;
165 165
     }
166 166
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function setFax($fax = "")
185 185
     {
186
-        $this->fax=$fax;
186
+        $this->fax = $fax;
187 187
         return $this;
188 188
     }
189 189
 
Please login to merge, or discard this patch.
module/Geo/src/Geo/Controller/IndexController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $query = $this->params()->fromQuery();
58 58
 
59
-        switch($this->plugin){
59
+        switch ($this->plugin) {
60 60
             case 'photon':
61 61
                 /* @var Plugin\Photon $geoApi */
62 62
                 $geoApi = $this->getPluginManager()->get('geo/photon');
@@ -70,19 +70,19 @@  discard block
 block discarded – undo
70 70
         }
71 71
         $result = array();
72 72
         if (!empty($query['q'])) {
73
-            $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang','de'));
73
+            $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang', 'de'));
74 74
         }
75 75
         $viewModel = new JsonModel($result);
76 76
         /* @var \Zend\Http\Response $response */
77 77
         $response = $this->getResponse();
78 78
 
79 79
         $date = new \DateTime();
80
-        $expires=$date->modify('+100 day');
80
+        $expires = $date->modify('+100 day');
81 81
 
82 82
         $response->getHeaders()
83
-            ->addHeaderLine('Pragma','cache')
84
-            ->addHeaderLine('Cache-Control',"max-age=290304000, public")
85
-            ->addHeaderLine('Expires',$expires->format(\DateTime::RFC1036));
83
+            ->addHeaderLine('Pragma', 'cache')
84
+            ->addHeaderLine('Cache-Control', "max-age=290304000, public")
85
+            ->addHeaderLine('Expires', $expires->format(\DateTime::RFC1036));
86 86
 
87 87
         return $viewModel;
88 88
     }
Please login to merge, or discard this patch.