Completed
Push — develop ( fd8298...e653e2 )
by Carsten
14s
created
module/Jobs/src/Jobs/Form/TemplateLabelRequirements.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
                     )
63 63
                 )
64 64
             )
65
-       );
65
+        );
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/FileSender.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         }
33 33
         
34 34
         $response->getHeaders()->addHeaderline('Content-Type', $file->type)
35
-                               ->addHeaderline('Content-Length', $file->size);
35
+                                ->addHeaderline('Content-Length', $file->size);
36 36
         $response->sendHeaders();
37 37
         
38 38
         $resource = $file->getResource();
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/MultipostButtonFieldset.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -24,19 +24,19 @@
 block discarded – undo
24 24
     public function init()
25 25
     {
26 26
         $this->add(
27
-             array(
28
-                 'type' => 'Core/Spinner-Submit',
29
-                 'name' => 'calculate',
30
-                 'options' => array(
31
-                     'label' => /*@translate*/ 'Calculate price',
32
-                 ),
33
-                 'attributes' => array(
34
-                     'id' => 'calculate',
35
-                     'type' => 'button',
36
-                     'value' => 'calculate',
37
-                     'class' => 'mps-calculate btn btn-success btn-xs'
38
-                 ),
39
-             )
27
+                array(
28
+                    'type' => 'Core/Spinner-Submit',
29
+                    'name' => 'calculate',
30
+                    'options' => array(
31
+                        'label' => /*@translate*/ 'Calculate price',
32
+                    ),
33
+                    'attributes' => array(
34
+                        'id' => 'calculate',
35
+                        'type' => 'button',
36
+                        'value' => 'calculate',
37
+                        'class' => 'mps-calculate btn btn-success btn-xs'
38
+                    ),
39
+                )
40 40
         );
41 41
 
42 42
         parent::init();
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/FactsFieldset.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function init()
35 35
     {
36 36
         $this->setHydrator(new \Core\Entity\Hydrator\EntityHydrator())
37
-             ->setName('base');
37
+                ->setName('base');
38 38
 
39 39
         $this->add(
40 40
             array(
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/EntityTrait.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@
 block discarded – undo
22 22
  */
23 23
 trait EntityTrait
24 24
 {
25
+    /**
26
+     * @param string $property
27
+     */
25 28
     public function notEmpty($property, array $args=[])
26 29
     {
27 30
         $method = "get$property";
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,16 +20,16 @@
 block discarded – undo
20 20
  */
21 21
 trait EntityTrait
22 22
 {
23
-    public function notEmpty($property, array $args=[])
23
+    public function notEmpty($property, array $args = [])
24 24
     {
25 25
         $method = "get$property";
26 26
 
27 27
         if (!method_exists($this, $method)) {
28
-            throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this) . "'");
28
+            throw new OutOfBoundsException("'$property' is not a valid property of '".get_class($this)."'");
29 29
         }
30 30
 
31 31
         $value = count($args)
32
-            ? call_user_func_array([ $this, $method ], $args)
32
+            ? call_user_func_array([$this, $method], $args)
33 33
             : $this->$method();
34 34
 
35 35
         if (null === $value) { // is_scalar does not consider 'null' to be scalar value.
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormContainer.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
73 73
 
74 74
     }
75 75
 
76
+    /**
77
+     * @param string $layout
78
+     */
76 79
     public function renderElement($element, $layout, $parameter)
77 80
     {
78 81
         $parameterPartial = $parameter;
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,8 @@
 block discarded – undo
83 83
         if ($element instanceof ViewPartialProviderInterface) {
84 84
             $parameterPartial = array_merge(array('element' => $element, 'layout' => $layout), $parameterPartial);
85 85
             $content .= $this->getView()->partial(
86
-                             $element->getViewPartial(),
87
-                             $parameterPartial
86
+                                $element->getViewPartial(),
87
+                                $parameterPartial
88 88
             );
89 89
 
90 90
         } elseif ($element instanceof ViewHelperProviderInterface) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         if (isset($parameter['render_label']) && $parameter['render_label'] && ($label = $container->getLabel())) {
67
-            $content .= '<div class="container-headline"><h3>' . $this->getView()->translate($label) . '</h3></div>';
67
+            $content .= '<div class="container-headline"><h3>'.$this->getView()->translate($label).'</h3></div>';
68 68
         }
69 69
         foreach ($container as $element) {
70 70
             $content .= $this->renderElement($element, $layout, $parameter);
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
         } elseif ($element instanceof CoreSummaryForm) {
100 100
             $content .= $this->getView()->summaryForm($element);
101 101
         } elseif ($element instanceof Container) {
102
-            $content.= $this->render($element, $layout, $parameter);
102
+            $content .= $this->render($element, $layout, $parameter);
103 103
         } else {
104
-            $content.= $this->getView()->form($element, $layout, $parameter);
104
+            $content .= $this->getView()->form($element, $layout, $parameter);
105 105
         }
106 106
 
107 107
         return $content;
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/ContentCollector.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     public function trigger($event, $target = null)
43 43
     {
44 44
         if (empty($this->_template) || !is_string($this->_template)) {
45
-              throw new \InvalidArgumentException('ContentCollector must have a template-name');
45
+                throw new \InvalidArgumentException('ContentCollector must have a template-name');
46 46
         }
47 47
           
48 48
         $responseCollection = $this->getController()->getEventManager()->trigger($event, $target);
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
         $viewModel->setTemplate($this->_template);
51 51
         foreach ($responseCollection as $i => $response) {
52 52
             if (is_string($response)) {
53
-                      $template = $response;
54
-                      $response = new ViewModel(array('target' => $target));
55
-                      $response->setTemplate($template);
53
+                        $template = $response;
54
+                        $response = new ViewModel(array('target' => $target));
55
+                        $response->setTemplate($template);
56 56
             }
57 57
                     $viewModel->addChild($response, $this->_captureTo . $i);
58 58
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
                       $response = new ViewModel(array('target' => $target));
55 55
                       $response->setTemplate($template);
56 56
             }
57
-                    $viewModel->addChild($response, $this->_captureTo . $i);
57
+                    $viewModel->addChild($response, $this->_captureTo.$i);
58 58
         }
59 59
                 
60 60
         return $viewModel;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/SettingsFieldset.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             array('type' => 'Zend\Form\Element\Textarea',
69 69
                         'name' => 'mailConfirmationText',
70 70
                          'options' => array('label' => /* @translate */ 'Confirmation mail text',
71
-                                            '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></ul>' ))
71
+                                            '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></ul>'))
72 72
         );
73 73
         
74 74
         $this->add(
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
     public function init()
41 41
     {
42 42
         $this->setName('emails')
43
-             ->setLabel(/* @translate */ 'E-Mail Notifications');
43
+                ->setLabel(/* @translate */ 'E-Mail Notifications');
44 44
 
45 45
         $this->add(
46 46
             array('type' => 'Zend\Form\Element\Checkbox',
47 47
                 'name' => 'mailAccess',
48 48
                 'options' => array('label' => /* @translate */ 'receive E-Mail alert',
49
-                                   'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'),
49
+                                    'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'),
50 50
                 )
51 51
         );
52 52
         $this->add(
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
             array('type' => 'Zend\Form\Element\Checkbox',
61 61
                 'name' => 'autoConfirmMail',
62 62
                 'options' => array('label' => /* @translate */ 'confirm application immidiatly after submit',
63
-                                   'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'),
63
+                                    'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'),
64 64
                 )
65 65
         );
66 66
         $this->add(
67 67
             array('type' => 'Zend\Form\Element\Textarea',
68 68
                         'name' => 'mailConfirmationText',
69
-                         'options' => array('label' => /* @translate */ 'Confirmation mail text',
69
+                            'options' => array('label' => /* @translate */ 'Confirmation mail text',
70 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></ul>' ))
71 71
         );
72 72
         
Please login to merge, or discard this patch.
module/Applications/src/Applications/Factory/Form/AttachmentsFactory.php 2 patches
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.
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.