Completed
Push — develop ( 39c196...b11cac )
by Carsten
26:33
created
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.
module/Jobs/src/Jobs/Controller/Plugin/InitializeJob.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function __construct(RepositoryService $repositoryService, AuthenticationService $auth, Acl $acl)
43 43
     {
44
-        $this->repositoryService=$repositoryService;
45
-        $this->auth=$auth;
46
-        $this->acl=$acl;
44
+        $this->repositoryService = $repositoryService;
45
+        $this->auth = $auth;
46
+        $this->acl = $acl;
47 47
     }
48 48
 
49 49
     public function __invoke()
@@ -61,12 +61,12 @@  discard block
 block discarded – undo
61 61
     public function get(Params $params, $allowDraft = false)
62 62
     {
63 63
         /* @var \Jobs\Repository\Job $jobRepository */
64
-        $jobRepository  = $this->repositoryService->get('Jobs/Job');
64
+        $jobRepository = $this->repositoryService->get('Jobs/Job');
65 65
         $idFromRoute   = $params('id', 0);
66 66
         $idFromQuery   = $params->fromQuery('id', 0);
67 67
         $idFromSubForm = $params->fromPost('job', 0);
68 68
 
69
-        $id = empty($idFromRoute)? (empty($idFromQuery)?$idFromSubForm:$idFromQuery) : $idFromRoute;
69
+        $id = empty($idFromRoute) ? (empty($idFromQuery) ? $idFromSubForm : $idFromQuery) : $idFromRoute;
70 70
 
71 71
         if (empty($id) && $allowDraft) {
72 72
             $this->acl->__invoke('Jobs/Manage', 'new');
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/Response/JobResponse.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,35 +23,35 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * Job has been published
25 25
      */
26
-    const RESPONSE_OK             = 'ok';
26
+    const RESPONSE_OK = 'ok';
27 27
 
28 28
     /**
29 29
      * Job has been published and has stopped all other publishing
30 30
      */
31
-    const RESPONSE_OKANDSTOP      = 'ok and publishing terminated afterwards';
31
+    const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards';
32 32
 
33 33
     /**
34 34
      * publishing has been stopped
35 35
      */
36
-    const RESPONSE_STOP           = 'publishing terminated';
36
+    const RESPONSE_STOP = 'publishing terminated';
37 37
 
38 38
     /**
39 39
      * publishing has been denied,
40 40
      * this is very likely when a job was not intended to be sended to a portal
41 41
      */
42
-    const RESPONSE_DENIED         = 'denied';
42
+    const RESPONSE_DENIED = 'denied';
43 43
 
44 44
     /**
45 45
      * a connection to the portal could not be established
46 46
      * or the publishing of the Job has been rejected for other reasons
47 47
      */
48
-    const RESPONSE_FAIL           = 'fail';
48
+    const RESPONSE_FAIL = 'fail';
49 49
 
50 50
     /**
51 51
      * This error has nothing to do with wrong inputs,
52 52
      * something just has happend in the programm
53 53
      */
54
-    const RESPONSE_ERROR          = 'internal Error';
54
+    const RESPONSE_ERROR = 'internal Error';
55 55
 
56 56
     /**
57 57
      * nothing happens, but that's not a failure
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * nothing happens, and get used to it
64 64
      */
65
-    const RESPONSE_DEPRECATED     = 'deprecated';
65
+    const RESPONSE_DEPRECATED = 'deprecated';
66 66
 
67 67
     /**
68 68
      * @var string
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @param string $portal
84 84
      * @param string $status
85 85
      */
86
-    public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message='')
86
+    public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message = '')
87 87
     {
88 88
         $this->portal = $portal;
89 89
         $this->status = $status;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/Hydrator/TemplateLabelHydrator.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
     {
43 43
         $object = parent::hydrate($data, $object);
44 44
         /* @var \Organizations\Entity\Template  $template */
45
-        $template=$object->getOrganization()->getTemplate();
45
+        $template = $object->getOrganization()->getTemplate();
46 46
         if (isset($data['description-label-requirements'])) {
47 47
             $template->setLabelRequirements($data['description-label-requirements']);
48 48
         }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/Controller/ManageControllerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
         $serviceLocator = $serviceLocator->getServiceLocator();
31 31
         $auth = $serviceLocator->get('AuthenticationService');
32 32
         /* @var RepositoryService     $repositoryService */
33
-        $repositoryService =    $serviceLocator->get('repositories');
33
+        $repositoryService = $serviceLocator->get('repositories');
34 34
 
35
-        $translator =    $serviceLocator->get('translator');
35
+        $translator = $serviceLocator->get('translator');
36 36
         return new ManageController($auth, $repositoryService, $translator);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/MailForgotPassword.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function __construct($options, $mailService, $coreOptions)
41 41
     {
42
-        $this->options=$options;
43
-        $this->mailService=$mailService;
42
+        $this->options = $options;
43
+        $this->mailService = $mailService;
44 44
         $this->coreOptions = $coreOptions;
45 45
     }
46 46
 
@@ -51,15 +51,15 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function __invoke(AuthEvent $e)
53 53
     {
54
-        $siteName=$this->coreOptions->getSiteName();
54
+        $siteName = $this->coreOptions->getSiteName();
55 55
 
56 56
         $user                    = $e->getUser();
57 57
         $userEmail               = $user->info->email;
58 58
         $userName                = $user->info->displayName;
59 59
         $resetLink               = $e->getResetLink();
60 60
 
61
-        $fromEmail               =  $this->options->getFromEmail();
62
-        $fromName                =  $this->options->getFromName();
61
+        $fromEmail               = $this->options->getFromEmail();
62
+        $fromName                = $this->options->getFromName();
63 63
 
64 64
         $mail                    = $this->mailService->get('htmltemplate');
65 65
         $mail->user              = $user;
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/Register.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
         $this->add($fieldset);
66 66
 
67
-        $mode=$options->getMode();
67
+        $mode = $options->getMode();
68 68
         if (in_array($mode, [CaptchaOptions::RE_CAPTCHA, CaptchaOptions::IMAGE])) {
69 69
             if ($mode == CaptchaOptions::IMAGE) {
70 70
                 $captcha = new Image($options->getImage());
Please login to merge, or discard this patch.
module/Orders/src/Form/InvoiceAddressFieldset.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
                 'attributes' => [
122 122
                     'data-placeholder' => /*@translate*/ 'please select',
123 123
                     'data-allowclear' => 'false',
124
-                    'data-searchbox' => -1,  // hide the search box
124
+                    'data-searchbox' => -1, // hide the search box
125 125
                     'required' => true, // mark label as required
126 126
                 ],
127 127
             )
Please login to merge, or discard this patch.
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -27,70 +27,70 @@  discard block
 block discarded – undo
27 27
         $this->setName('invoiceAddress');
28 28
 
29 29
         $this->add([
30
-                       'type'       => 'text',
31
-                       'name'       => 'company',
32
-                       'options'    => [
33
-                           'label'       => /*@translate*/ 'Company',
34
-                           'description' => /*@translate*/ 'Please enter the name of the company, which should appear on the invoice address',
35
-                       ],
36
-                       'attributes' => [
37
-                           'required' => true, // marks the label as required.
38
-                       ]
39
-                   ]
30
+                        'type'       => 'text',
31
+                        'name'       => 'company',
32
+                        'options'    => [
33
+                            'label'       => /*@translate*/ 'Company',
34
+                            'description' => /*@translate*/ 'Please enter the name of the company, which should appear on the invoice address',
35
+                        ],
36
+                        'attributes' => [
37
+                            'required' => true, // marks the label as required.
38
+                        ]
39
+                    ]
40 40
         );
41 41
 
42 42
         $this->add([
43
-                       'type'    => 'text',
44
-                       'name'    => 'street',
45
-                       'options' => [
46
-                           'label' => /*@translate*/ 'Street',
47
-                       ],
48
-                   ]
43
+                        'type'    => 'text',
44
+                        'name'    => 'street',
45
+                        'options' => [
46
+                            'label' => /*@translate*/ 'Street',
47
+                        ],
48
+                    ]
49 49
         );
50 50
 
51 51
         $this->add([
52
-                       'type'    => 'text',
53
-                       'name'    => 'zipCode',
54
-                       'options' => [
55
-                           'label' => /* @translate */ 'Postalcode'
56
-                       ],
57
-                   ]
52
+                        'type'    => 'text',
53
+                        'name'    => 'zipCode',
54
+                        'options' => [
55
+                            'label' => /* @translate */ 'Postalcode'
56
+                        ],
57
+                    ]
58 58
         );
59 59
 
60 60
         $this->add([
61
-                       'type'    => 'text',
62
-                       'name'    => 'city',
63
-                       'options' => [
64
-                           'label' => /*@translate*/ 'City',
65
-                       ],
66
-                   ]
61
+                        'type'    => 'text',
62
+                        'name'    => 'city',
63
+                        'options' => [
64
+                            'label' => /*@translate*/ 'City',
65
+                        ],
66
+                    ]
67 67
         );
68 68
 
69 69
         $this->add([
70
-                       'type'    => 'text',
71
-                       'name'    => 'region',
72
-                       'options' => [
73
-                           'label' => /*@translate*/ 'Region',
74
-                       ],
75
-                   ]
70
+                        'type'    => 'text',
71
+                        'name'    => 'region',
72
+                        'options' => [
73
+                            'label' => /*@translate*/ 'Region',
74
+                        ],
75
+                    ]
76 76
         );
77 77
 
78 78
         $this->add([
79
-                       'type'    => 'text',
80
-                       'name'    => 'country',
81
-                       'options' => [
82
-                           'label' => /*@translate*/ 'Country',
83
-                       ],
84
-                   ]
79
+                        'type'    => 'text',
80
+                        'name'    => 'country',
81
+                        'options' => [
82
+                            'label' => /*@translate*/ 'Country',
83
+                        ],
84
+                    ]
85 85
         );
86 86
 
87 87
         $this->add([
88
-                       'type'    => 'text',
89
-                       'name'    => 'vatIdNumber',
90
-                       'options' => [
91
-                           'label' => /*@translate*/ 'Value added tax ID',
92
-                       ],
93
-                   ]
88
+                        'type'    => 'text',
89
+                        'name'    => 'vatIdNumber',
90
+                        'options' => [
91
+                            'label' => /*@translate*/ 'Value added tax ID',
92
+                        ],
93
+                    ]
94 94
         );
95 95
         $this->add(
96 96
             array(
@@ -114,25 +114,25 @@  discard block
 block discarded – undo
114 114
         );
115 115
 
116 116
         $this->add([
117
-                       'type'    => 'text',
118
-                       'name'    => 'name',
119
-                       'options' => [
120
-                           'label'       => /*@translate*/ 'Contact Person',
121
-                           'description' => /*@translate*/ 'Please enter the name of a contact person',
122
-                       ],
123
-                   ]
117
+                        'type'    => 'text',
118
+                        'name'    => 'name',
119
+                        'options' => [
120
+                            'label'       => /*@translate*/ 'Contact Person',
121
+                            'description' => /*@translate*/ 'Please enter the name of a contact person',
122
+                        ],
123
+                    ]
124 124
         );
125 125
 
126 126
         $this->add([
127
-                       'type'       => 'text',
128
-                       'name'       => 'email',
129
-                       'options'    => [
130
-                           'label' => /*@translate*/ 'Email Address',
131
-                       ],
132
-                       'attributes' => [
133
-                           'required' => true, // marks the label as required.
134
-                       ]
135
-                   ]
127
+                        'type'       => 'text',
128
+                        'name'       => 'email',
129
+                        'options'    => [
130
+                            'label' => /*@translate*/ 'Email Address',
131
+                        ],
132
+                        'attributes' => [
133
+                            'required' => true, // marks the label as required.
134
+                        ]
135
+                    ]
136 136
         );
137 137
     }
138 138
 
Please login to merge, or discard this patch.