Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
module/Applications/src/Auth/Dependency/ListListener.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) /* @var $application \Applications\Entity\Application */
64 64
         {
65 65
             $title = $application->getJob()->getTitle();
66
-            $title .= ' ('. $view->dateFormat($application->getDateCreated()) . ')';
66
+            $title .= ' ('.$view->dateFormat($application->getDateCreated()).')';
67 67
             $url = $view->url('lang/applications/detail', ['id' => $application->getId()]);
68 68
             $items[] = new ListItem($title, $url);
69 69
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,9 +60,11 @@
 block discarded – undo
60 60
     {
61 61
         $items = [];
62 62
         
63
-        foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) /* @var $application \Applications\Entity\Application */
63
+        foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) {
64
+            /* @var $application \Applications\Entity\Application */
64 65
         {
65 66
             $title = $application->getJob()->getTitle();
67
+        }
66 68
             $title .= ' ('. $view->dateFormat($application->getDateCreated()) . ')';
67 69
             $url = $view->url('lang/applications/detail', ['id' => $application->getId()]);
68 70
             $items[] = new ListItem($title, $url);
Please login to merge, or discard this patch.
module/Applications/src/Listener/EventApplicationCreated.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                         [
89 89
                             'application' => $this->application,
90 90
                             'user' => $employee->getUser(),
91
-                            'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null,
91
+                            'bcc' => $adminSettings->getMailBCC() ? [$admin] : null,
92 92
                         ]
93 93
                     );
94 94
                 }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 [
107 107
                     'job'   => $this->application->getJob(),
108 108
                     'user'  => $recruiter,
109
-                    'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null,
109
+                    'bcc' => $adminSettings->getMailBCC() ? [$admin] : null,
110 110
                 ]
111 111
             );
112 112
         }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                     [
124 124
                         'application' => $this->application,
125 125
                         'body'        => $ackBody,
126
-                        'bcc'         => $adminSettings->getMailBCC() ? [ $admin ] : null,
126
+                        'bcc'         => $adminSettings->getMailBCC() ? [$admin] : null,
127 127
                     ]
128 128
                 );
129 129
 
Please login to merge, or discard this patch.
module/Applications/src/Listener/LoadDependendEntities.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         if ($entity instanceof Job) {
36 36
             $entities = $event->getRepository('Applications')->findBy(['isDraft' => null, 'job' => new \MongoId($entity->getId())]);
37 37
 
38
-            return ['Applications', $entities, 'These applications references the job and will also be removed:' ];
38
+            return ['Applications', $entities, 'These applications references the job and will also be removed:'];
39 39
         }
40 40
     }
41 41
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             foreach ($entities as $ent) {
50 50
                 $repository->remove($ent);
51 51
             }
52
-            return ['Applications', $entities, 'were removed.' ];
52
+            return ['Applications', $entities, 'were removed.'];
53 53
         }
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
module/Applications/src/Listener/StatusChange.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,13 +97,13 @@  discard block
 block discarded – undo
97 97
                 $key = 'mailRejectionText';
98 98
                 break;
99 99
             default:
100
-                throw new \InvalidArgumentException('Unknown status value: ' .$status);
100
+                throw new \InvalidArgumentException('Unknown status value: '.$status);
101 101
         }
102
-        $mailText      = $settings->$key ? $settings->$key : '';
102
+        $mailText = $settings->$key ? $settings->$key : '';
103 103
         $mail->setBody($mailText);
104 104
         $mail->setApplication($this->application);
105 105
         $mailText = $mail->getBodyText();
106
-        $mailSubject   = sprintf(
106
+        $mailSubject = sprintf(
107 107
             $this->translator->translate('Your application dated %s'),
108 108
             strftime('%x', $this->application->getDateCreated()->getTimestamp())
109 109
         );
@@ -191,6 +191,6 @@  discard block
 block discarded – undo
191 191
         $email = $recipient->getEmail();
192 192
         $name  = $recipient->getDisplayName(false);
193 193
 
194
-        return $name ? [ $email => $name ] : [ $email ];
194
+        return $name ? [$email => $name] : [$email];
195 195
     }
196 196
 }
Please login to merge, or discard this patch.
module/Applications/src/Listener/Events/ApplicationEvent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,17 +28,17 @@
 block discarded – undo
28 28
     /**
29 29
      * Event is fired when a new application is saved.
30 30
      */
31
-    const EVENT_APPLICATION_POST_CREATE   = 'application.post.create';
31
+    const EVENT_APPLICATION_POST_CREATE = 'application.post.create';
32 32
 
33 33
     /**
34 34
      * Event is fired when a users deleted application
35 35
      */
36
-    const EVENT_APPLICATION_PRE_DELETE   = 'application.pre.delete';
36
+    const EVENT_APPLICATION_PRE_DELETE = 'application.pre.delete';
37 37
 
38 38
     /**
39 39
      * Event is fired when the status of an application is changed
40 40
      */
41
-    const EVENT_APPLICATION_STATUS_CHANGE   = 'application.status.change';
41
+    const EVENT_APPLICATION_STATUS_CHANGE = 'application.status.change';
42 42
 
43 43
     /**
44 44
      * @var Application $application
Please login to merge, or discard this patch.
module/Applications/src/Factory/Form/AttachmentsFactory.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -73,14 +73,14 @@
 block discarded – undo
73 73
         $count = $options->getAttachmentsCount();
74 74
 
75 75
         $form->setIsDisableCapable(false)
76
-             ->setIsDisableElementsCapable(false)
77
-             ->setIsDescriptionsEnabled(true)
78
-             ->setDescription(
76
+                ->setIsDisableElementsCapable(false)
77
+                ->setIsDescriptionsEnabled(true)
78
+                ->setDescription(
79 79
                 /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB',
80
-                 [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)]
81
-             )
82
-             ->setParam('return', 'file-uri')
83
-             ->setLabel(/*@translate*/ 'Attachments');
80
+                    [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)]
81
+                )
82
+                ->setParam('return', 'file-uri')
83
+                ->setLabel(/*@translate*/ 'Attachments');
84 84
 
85 85
         /** @var $file FileUpload*/
86 86
         $file = $form->get($this->fileName);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @var string
58 58
      */
59
-    protected $options="Applications/Options";
59
+    protected $options = "Applications/Options";
60 60
 
61 61
 
62 62
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
              ->setIsDescriptionsEnabled(true)
78 78
              ->setDescription(
79 79
                 /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB',
80
-                 [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)]
80
+                 [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)]
81 81
              )
82 82
              ->setParam('return', 'file-uri')
83 83
              ->setLabel(/*@translate*/ 'Attachments');
Please login to merge, or discard this patch.
module/Applications/src/Factory/Mail/ConfirmationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         $auth = $container->get('AuthenticationService');
31 31
         $user = $auth->getUser();
32 32
         $options['user'] = $user;
33
-        $mail   = new Confirmation($options);
33
+        $mail = new Confirmation($options);
34 34
 
35 35
         return $mail;
36 36
     }
Please login to merge, or discard this patch.
module/Applications/src/Entity/Attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
      */
34 34
     public function getUri()
35 35
     {
36
-        return "/file/Applications.Attachment/" . $this->id . "/" .urlencode($this->name);
36
+        return "/file/Applications.Attachment/".$this->id."/".urlencode($this->name);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
module/Applications/src/Entity/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -446,7 +446,7 @@
 block discarded – undo
446 446
     public function getCv()
447 447
     {
448 448
         if (is_null($this->cv)) {
449
-            $this->cv= new Cv();
449
+            $this->cv = new Cv();
450 450
         }
451 451
         return $this->cv;
452 452
     }
Please login to merge, or discard this patch.