Completed
Pull Request — master (#588)
by Mathias
07:35
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         return new JsonModel([
108 108
             'status' => 'error',
109
-            'message' => 'Invalid json data: ' . $e->getMessage()
109
+            'message' => 'Invalid json data: '.$e->getMessage()
110 110
         ]);
111 111
     }
112 112
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
         return new JsonModel([
120 120
             'status' => 'error',
121
-            'message' => 'No job found with apply id "' . $applyId . '"',
121
+            'message' => 'No job found with apply id "'.$applyId.'"',
122 122
         ]);
123 123
     }
124 124
 
Please login to merge, or discard this patch.
module/Applications/src/Entity/Hydrator/ApiApplicationHydrator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         ;
84 84
         $data['attachments'] = [];
85 85
         foreach ($object->getAttachments() as $file) {
86
-           $data['attachments'][] = $file->getUri();
86
+            $data['attachments'][] = $file->getUri();
87 87
         }
88 88
 
89 89
         unset(
Please login to merge, or discard this patch.