Completed
Push — master ( 0913ed...15a2b1 )
by Mathias
21s queued 15s
created
module/Applications/config/module.config.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
                 * for multiple paths.
34 34
                 * example https://github.com/doctrine/DoctrineORMModule
35 35
                 */
36
-               'paths' => [ __DIR__ . '/../src/Entity']
36
+               'paths' => [__DIR__.'/../src/Entity']
37 37
             ],
38 38
         ],
39 39
         'eventmanager' => [
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
             'Applications\Controller\MultiManage' => 'Applications\Controller\MultimanageController',
95 95
         ],
96 96
         'factories' => [
97
-            'Applications/Controller/Manage' => [ManageController::class,'factory'],
98
-            'Applications\Controller\Apply' => [ApplyController::class,'factory'],
99
-            'Applications/CommentController' => [CommentController::class,'factory'],
100
-            'Applications/Console' => [ConsoleController::class,'factory'],
97
+            'Applications/Controller/Manage' => [ManageController::class, 'factory'],
98
+            'Applications\Controller\Apply' => [ApplyController::class, 'factory'],
99
+            'Applications/CommentController' => [CommentController::class, 'factory'],
100
+            'Applications/Console' => [ConsoleController::class, 'factory'],
101 101
             ApiApplyController::class => ApiApplyControllerFactory::class,
102 102
         ]
103 103
     ],
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         'translation_file_patterns' => [
158 158
             [
159 159
                 'type' => 'gettext',
160
-                'base_dir' => __DIR__ . '/../language',
160
+                'base_dir' => __DIR__.'/../language',
161 161
                 'pattern' => '%s.mo',
162 162
             ],
163 163
         ],
@@ -165,16 +165,16 @@  discard block
 block discarded – undo
165 165
     // Configure the view service manager
166 166
     'view_manager' => [
167 167
         'template_path_stack' => [
168
-            'Applications' => __DIR__ . '/../view',
168
+            'Applications' => __DIR__.'/../view',
169 169
         ],
170 170
         'template_map' => [
171
-            'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml',
172
-            'layout/apply' => __DIR__ . '/../view/layout/layout.phtml',
173
-            'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml',
174
-            'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml',
175
-            'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml',
176
-            'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml',
177
-            'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml',
171
+            'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml',
172
+            'layout/apply' => __DIR__.'/../view/layout/layout.phtml',
173
+            'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml',
174
+            'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml',
175
+            'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml',
176
+            'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml',
177
+            'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml',
178 178
         ]
179 179
     ],
180 180
     'view_helpers' => [
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         'factories' => [
245 245
             'Applications/NewApplication' => 'Applications\Factory\Mail\NewApplicationFactory',
246 246
             Mail\Confirmation::class      => Factory\Mail\ConfirmationFactory::class,
247
-            'Applications/Forward'        => [Forward::class,'factory'],
247
+            'Applications/Forward'        => [Forward::class, 'factory'],
248 248
         ],
249 249
         'aliases' => [
250 250
             'Applications/Confirmation'   => Mail\Confirmation::class,
Please login to merge, or discard this patch.
module/Applications/src/Controller/ApiApplyController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                     ['force_canonical' => true],
94 94
                     true
95 95
                 )
96
-                . '?token=' . $user->getToken()
96
+                . '?token='.$user->getToken()
97 97
             ;
98 98
         }
99 99
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
         return new JsonModel([
123 123
             'status' => 'error',
124
-            'message' => 'Invalid json data: ' . $e->getMessage()
124
+            'message' => 'Invalid json data: '.$e->getMessage()
125 125
         ]);
126 126
     }
127 127
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         return new JsonModel([
135 135
             'status' => 'error',
136
-            'message' => 'No job found with apply id "' . $applyId . '"',
136
+            'message' => 'No job found with apply id "'.$applyId.'"',
137 137
         ]);
138 138
     }
139 139
 
Please login to merge, or discard this patch.
module/Applications/src/Entity/Hydrator/ApiApplicationHydratorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         ?string $requestedName = null,
27 27
         ?array $options = null
28 28
     ): ApiApplicationHydrator {
29
-        $hydrator =  new ApiApplicationHydrator();
29
+        $hydrator = new ApiApplicationHydrator();
30 30
 
31 31
         $hydrator->setServerURl(
32 32
             $container->get('ViewHelperManager')->get('serverurl')->__invoke()
Please login to merge, or discard this patch.
module/Applications/src/Entity/Hydrator/ApiApplicationHydrator.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         ;
90 90
         $data['attachments'] = [];
91 91
         foreach ($object->getAttachments() as $file) {
92
-           $data['attachments'][] = $this->serverUrl . $file->getUri();
92
+            $data['attachments'][] = $this->serverUrl . $file->getUri();
93 93
         }
94 94
 
95 95
         unset(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,12 +84,12 @@
 block discarded – undo
84 84
         $data['contact'] = parent::extract($object->getContact());
85 85
         $data['contact']['image'] =
86 86
             $object->getContact()->getImage()
87
-            ? $this->serverUrl . $object->getContact()->getImage()->getUri()
87
+            ? $this->serverUrl.$object->getContact()->getImage()->getUri()
88 88
             : null
89 89
         ;
90 90
         $data['attachments'] = [];
91 91
         foreach ($object->getAttachments() as $file) {
92
-           $data['attachments'][] = $this->serverUrl . $file->getUri();
92
+           $data['attachments'][] = $this->serverUrl.$file->getUri();
93 93
         }
94 94
 
95 95
         unset(
Please login to merge, or discard this patch.