Passed
Push — master ( e5b7ab...6d2a74 )
by Mathias
11:01
created
module/Applications/src/Service/UploadHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $attachment = $this->doUploadFile($application, $info);
90 90
 
91 91
         // remove existing image
92
-        if(!is_null($application->getContact()->getImage())){
92
+        if (!is_null($application->getContact()->getImage())) {
93 93
             $image = $application->getContact()->getImage();
94 94
             $application->getContact()->setImage(null);
95 95
             $dm->remove($image);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $metadata->setName($info['name']);
119 119
         $metadata->preventPersistingAnonymousUser();
120 120
 
121
-        if(!is_null($user) && !$user instanceof AnonymousUser) {
121
+        if (!is_null($user) && !$user instanceof AnonymousUser) {
122 122
             $this->dm->persist($user);
123 123
         }
124 124
 
Please login to merge, or discard this patch.