Completed
Push — develop ( a73e2c...030f10 )
by Carsten
28:43 queued 13:31
created
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.
module/Applications/src/Entity/StatusInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * A new application has been received
22 22
      */
23
-    const INCOMING  = 'incoming';
23
+    const INCOMING = 'incoming';
24 24
 
25 25
     /**
26 26
      * An acknowledgement of receipt has been sent
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * An applicant ist invited to in interview
32 32
      */
33
-    const INVITED   = 'invited';
33
+    const INVITED = 'invited';
34 34
 
35 35
     /**
36 36
      * The applicant has been canceled
37 37
      */
38
-    const REJECTED  = 'rejected';
38
+    const REJECTED = 'rejected';
39 39
     
40 40
     public function __construct($status = self::INCOMING);
41 41
 
Please login to merge, or discard this patch.
module/Applications/src/Entity/Status.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
 
51 51
     public function __construct($status = self::INCOMING)
52 52
     {
53
-        $constant = 'self::' . strtoupper($status);
53
+        $constant = 'self::'.strtoupper($status);
54 54
         if (!defined($constant)) {
55
-            throw new \DomainException('Unknown status: ' . $status);
55
+            throw new \DomainException('Unknown status: '.$status);
56 56
         }
57
-        $this->name=constant($constant);
58
-        $this->order=$this->getOrder();
57
+        $this->name = constant($constant);
58
+        $this->order = $this->getOrder();
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
module/Applications/src/Entity/ApplicationInterface.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,6 @@  discard block
 block discarded – undo
241 241
      * Gets all comments for the application.
242 242
      *
243 243
      * @return ArrayCollection;
244
-
245 244
      */
246 245
     public function getComments();
247 246
     
@@ -272,7 +271,6 @@  discard block
 block discarded – undo
272 271
      * Gets all attributes for an application.
273 272
      *
274 273
      * @return ArrayCollection;
275
-
276 274
      */
277 275
     public function getAttributes();
278 276
 
Please login to merge, or discard this patch.
module/Applications/src/Mail/Confirmation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,11 +174,11 @@
 block discarded – undo
174 174
             return '';
175 175
         }
176 176
 
177
-        $token = $user instanceof AnonymousUser ? '?token=' . $user->getToken() : '';
177
+        $token = $user instanceof AnonymousUser ? '?token='.$user->getToken() : '';
178 178
         $href  = $router->assemble(
179 179
                         ['id' => $this->application->getId()],
180 180
                         ['name'=>'lang/applications/detail', 'force_canonical'=>true]
181
-        ) . $token;
181
+        ).$token;
182 182
 
183 183
         return $href;
184 184
     }
Please login to merge, or discard this patch.
module/Applications/src/Mail/NewApplication.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             'link'  => $this->router->assemble(
101 101
                             ['id' => $this->application->getId()],
102 102
                             ['name'=>'lang/applications/detail', 'force_canonical'=>true]
103
-                       ),
103
+                        ),
104 104
         ];
105 105
 
106 106
         $this->setTo($this->user->getInfo()->getEmail(), $this->user->getInfo()->getDisplayName(false));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
      */
122 122
     public function setUser($user)
123 123
     {
124
-        $this->user=$user;
124
+        $this->user = $user;
125 125
         return $this;
126 126
     }
127 127
 }
Please login to merge, or discard this patch.