Passed
Push — develop ( fcad5b...722a36 )
by Mathias
18:06 queued 09:30
created
module/Applications/config/module.config.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                 * for multiple paths.
32 32
                 * example https://github.com/doctrine/DoctrineORMModule
33 33
                 */
34
-               'paths' => [ __DIR__ . '/../src/Entity']
34
+               'paths' => [__DIR__.'/../src/Entity']
35 35
             ],
36 36
         ],
37 37
         'eventmanager' => [
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
             'Applications\Controller\MultiManage' => 'Applications\Controller\MultimanageController',
93 93
         ],
94 94
         'factories' => [
95
-            'Applications/Controller/Manage' => [ManageController::class,'factory'],
96
-            'Applications\Controller\Apply' => [ApplyController::class,'factory'],
97
-            'Applications/CommentController' => [CommentController::class,'factory'],
98
-            'Applications/Console' => [ConsoleController::class,'factory'],
95
+            'Applications/Controller/Manage' => [ManageController::class, 'factory'],
96
+            'Applications\Controller\Apply' => [ApplyController::class, 'factory'],
97
+            'Applications/CommentController' => [CommentController::class, 'factory'],
98
+            'Applications/Console' => [ConsoleController::class, 'factory'],
99 99
         ]
100 100
     ],
101 101
     
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         'translation_file_patterns' => [
155 155
             [
156 156
                 'type' => 'gettext',
157
-                'base_dir' => __DIR__ . '/../language',
157
+                'base_dir' => __DIR__.'/../language',
158 158
                 'pattern' => '%s.mo',
159 159
             ],
160 160
         ],
@@ -162,16 +162,16 @@  discard block
 block discarded – undo
162 162
     // Configure the view service manager
163 163
     'view_manager' => [
164 164
         'template_path_stack' => [
165
-            'Applications' => __DIR__ . '/../view',
165
+            'Applications' => __DIR__.'/../view',
166 166
         ],
167 167
         'template_map' => [
168
-            'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml',
169
-            'layout/apply' => __DIR__ . '/../view/layout/layout.phtml',
170
-            'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml',
171
-            'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml',
172
-            'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml',
173
-            'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml',
174
-            'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml',
168
+            'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml',
169
+            'layout/apply' => __DIR__.'/../view/layout/layout.phtml',
170
+            'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml',
171
+            'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml',
172
+            'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml',
173
+            'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml',
174
+            'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml',
175 175
         ]
176 176
     ],
177 177
     'view_helpers' => [
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         'factories' => [
242 242
             'Applications/NewApplication' => 'Applications\Factory\Mail\NewApplicationFactory',
243 243
             Mail\Confirmation::class      => Factory\Mail\ConfirmationFactory::class,
244
-            'Applications/Forward'        => [Forward::class,'factory'],
244
+            'Applications/Forward'        => [Forward::class, 'factory'],
245 245
         ],
246 246
         'aliases' => [
247 247
             'Applications/Confirmation'   => Mail\Confirmation::class,
Please login to merge, or discard this patch.
module/Applications/src/Options/ModuleOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
      */
238 238
     public function setAllowSubsequentAttachmentUpload($allowSubsequentAttachmentUpload)
239 239
     {
240
-        $this->allowSubsequentAttachmentUpload = (bool)$allowSubsequentAttachmentUpload;
240
+        $this->allowSubsequentAttachmentUpload = (bool) $allowSubsequentAttachmentUpload;
241 241
         
242 242
         return $this;
243 243
     }
Please login to merge, or discard this patch.
module/Applications/src/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.
Applications/src/Repository/Event/UpdateFilesPermissionsSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $dm  = $eventArgs->getDocumentManager();
43 43
         $uow = $dm->getUnitOfWork();
44 44
         
45
-        $filter = function ($element) {
45
+        $filter = function($element) {
46 46
             return $element instanceof ApplicationInterface
47 47
                    && $element->getPermissions()->hasChanged();
48 48
         };
Please login to merge, or discard this patch.
module/Applications/src/Repository/Filter/PaginationQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @var String
25 25
      */
26
-    protected $repositoryName="Applications/Application";
26
+    protected $repositoryName = "Applications/Application";
27 27
     
28 28
     /**
29 29
      * Sortable fields
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             $searchPatterns = array();
82 82
     
83 83
             foreach (explode(' ', $search) as $searchItem) {
84
-                $searchPatterns[] = new \MongoRegex('/^' . $searchItem . '/');
84
+                $searchPatterns[] = new \MongoRegex('/^'.$searchItem.'/');
85 85
             }
86 86
             $queryBuilder->field('keywords')->all($searchPatterns);
87 87
         }
Please login to merge, or discard this patch.
module/Applications/src/Repository/Filter/PaginationQueryFactory.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
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
30 30
     {
31
-        $auth  = $container->get('AuthenticationService');
31
+        $auth = $container->get('AuthenticationService');
32 32
         $filter = new PaginationQuery($auth);
33 33
         return $filter;
34 34
     }
Please login to merge, or discard this patch.
module/Applications/src/Repository/Subscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function findByUri($uri, $create = false)
27 27
     {
28
-        $subscriber = $this->findOneBy(array( "uri" => $uri ));
28
+        $subscriber = $this->findOneBy(array("uri" => $uri));
29 29
         if (!isset($subscriber) && $create) {
30 30
             $subscriber = $this->create();
31 31
             $subscriber->uri = $uri;
Please login to merge, or discard this patch.
module/Applications/src/Form/Element/JobSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
  */
23 23
 class JobSelect extends Select implements HeadscriptProviderInterface
24 24
 {
25
-    private $scripts = [ 'modules/Applications/js/form.job-select.js' ];
25
+    private $scripts = ['modules/Applications/js/form.job-select.js'];
26 26
 
27 27
     /**
28 28
      * Sets the array of script names.
Please login to merge, or discard this patch.
module/Applications/src/Form/SettingsFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
             array('type' => 'Zend\Form\Element\Textarea',
68 68
                         'name' => 'mailConfirmationText',
69 69
                          'options' => array('label' => /* @translate */ 'Confirmation mail text',
70
-                                            'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li><li>##link## = Link to the application details</li></ul>' ))
70
+                                            'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li><li>##link## = Link to the application details</li></ul>'))
71 71
         );
72 72
         
73 73
         $this->add(
Please login to merge, or discard this patch.