Completed
Branch develop (7585df)
by Carsten
11:01
created
module/Applications/src/Applications/Form/Base.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @var string
26 26
      */
27
-    protected $label        = /*@translate*/ 'Cover Letter';
27
+    protected $label = /*@translate*/ 'Cover Letter';
28 28
     
29 29
     /**
30 30
      * {@inheritDoc}
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/BaseFieldset.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** AttachmentsFieldset.php */
11 11
 namespace Applications\Form;
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function init()
38 38
     {
39 39
         $this->setHydrator(new \Core\Entity\Hydrator\EntityHydrator())
40
-             ->setName('base');
40
+                ->setName('base');
41 41
              
42 42
         $this->add(
43 43
             array(
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/CarbonCopyFieldset.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** AttachmentsFieldset.php */
11 11
 namespace Applications\Form;
@@ -21,19 +21,19 @@  discard block
 block discarded – undo
21 21
     public function init()
22 22
     {
23 23
         $this->setName('carboncopy')
24
-             ->setLabel('Options');
24
+                ->setLabel('Options');
25 25
                      
26
-          $this->add(
27
-              array('type' => 'Zend\Form\Element\Checkbox',
28
-                           'name' => 'carboncopy',
26
+            $this->add(
27
+                array('type' => 'Zend\Form\Element\Checkbox',
28
+                            'name' => 'carboncopy',
29 29
              
30
-                           'options' => array(
30
+                            'options' => array(
31 31
                                 'checked_value' => '1',
32 32
                                 'unchecked_value' => '0',
33 33
                                 'label' => 'send me a carbon copy',
34
-                                              )
35
-                           )
36
-          );
34
+                                                )
35
+                            )
36
+            );
37 37
           
38 38
           
39 39
     }
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/ContactContainer.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /**  */
11 11
 namespace Applications\Form;
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     public function init()
24 24
     {
25 25
         $this->setIsDisableCapable(false)
26
-             ->setIsDisableElementsCapable(false);
26
+                ->setIsDisableElementsCapable(false);
27 27
 
28 28
         $this->setForms(
29 29
             array(
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/FactsFieldset.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /**  */
11 11
 namespace Applications\Form;
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function init()
36 36
     {
37 37
         $this->setHydrator(new \Core\Entity\Hydrator\EntityHydrator())
38
-             ->setName('base');
38
+                ->setName('base');
39 39
 
40 40
         $this->add(
41 41
             array(
@@ -89,20 +89,20 @@  discard block
 block discarded – undo
89 89
 
90 90
         $this->add(
91 91
             array(
92
-                       'name' => 'drivingLicense',
93
-                       'type' => '\Zend\Form\Element\Select',
94
-                       'options' => array(
95
-                           'value_options' => array(
96
-                               '' => '', // needed for jquery select2 to render the placeholder
97
-                               "1"=>/*@translate*/ "Yes",
98
-                               "0"=>/*@translate*/ "No"),
99
-                           'label' => /*@translate*/ 'driving license',
100
-                           'description' => /*@translate*/ 'Do you have a driving license?',
101
-                           'disable_capable' => array(
102
-                               'description' => /*@translate*/ 'Ask the applicant, if he has a driving license.',
103
-                           ),
104
-                       ),
105
-                   )
92
+                        'name' => 'drivingLicense',
93
+                        'type' => '\Zend\Form\Element\Select',
94
+                        'options' => array(
95
+                            'value_options' => array(
96
+                                '' => '', // needed for jquery select2 to render the placeholder
97
+                                "1"=>/*@translate*/ "Yes",
98
+                                "0"=>/*@translate*/ "No"),
99
+                            'label' => /*@translate*/ 'driving license',
100
+                            'description' => /*@translate*/ 'Do you have a driving license?',
101
+                            'disable_capable' => array(
102
+                                'description' => /*@translate*/ 'Ask the applicant, if he has a driving license.',
103
+                            ),
104
+                        ),
105
+                    )
106 106
         );
107 107
     }
108 108
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/SettingsFieldset.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 namespace Applications\Form;
11 11
 
@@ -37,14 +37,14 @@  discard block
 block discarded – undo
37 37
     public function init()
38 38
     {
39 39
         $this->setName('emails')
40
-             ->setLabel(/* @translate */ 'E-Mail Notifications');
41
-             //->setHydrator(new \Core\Model\Hydrator\ModelHydrator());
40
+                ->setLabel(/* @translate */ 'E-Mail Notifications');
41
+                //->setHydrator(new \Core\Model\Hydrator\ModelHydrator());
42 42
 
43 43
         $this->add(
44 44
             array('type' => 'Zend\Form\Element\Checkbox',
45 45
                 'name' => 'mailAccess',
46 46
                 'options' => array('label' => /* @translate */ 'receive E-Mail alert',
47
-                                   'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'),
47
+                                    'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'),
48 48
                 )
49 49
         );
50 50
         $this->add(
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
             array('type' => 'Zend\Form\Element\Checkbox',
59 59
                 'name' => 'autoConfirmMail',
60 60
                 'options' => array('label' => /* @translate */ 'confirm application immidiatly after submit',
61
-                                   'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'),
61
+                                    'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'),
62 62
                 )
63 63
         );
64 64
         $this->add(
65 65
             array('type' => 'Zend\Form\Element\Textarea',
66 66
                         'name' => 'mailConfirmationText',
67
-                         'options' => array('label' => /* @translate */ 'Confirmation mail text',
67
+                            'options' => array('label' => /* @translate */ 'Confirmation mail text',
68 68
                                             '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>' ))
69 69
         );
70 70
         
@@ -80,15 +80,15 @@  discard block
 block discarded – undo
80 80
             array('type' => 'Zend\Form\Element\Textarea',
81 81
                 'name' => 'mailRejectionText',
82 82
                 'options' => array('label' => /* @translate */ 'Rejection mail text',
83
-                                           'description' => /* @translate */ 'default text of the refusal of an application to the applicant. You can use all variables of the acknowledgment of receipt mail.'))
83
+                                            'description' => /* @translate */ 'default text of the refusal of an application to the applicant. You can use all variables of the acknowledgment of receipt mail.'))
84 84
         );
85 85
         
86 86
         $this->add(
87 87
             array('type' => 'Zend\Form\Element\Checkbox',
88 88
                 'name' => 'mailBCC',
89 89
                 'options' => array('label' => /* @translate */ 'get blind carbon copy of all own mails',
90
-                                   'long_label' => /* @translate */ 'if checked, you\'ll get a copy of all mails you send.',
91
-                                           'value_options' => array(0,1, true, false)))
90
+                                    'long_label' => /* @translate */ 'if checked, you\'ll get a copy of all mails you send.',
91
+                                            'value_options' => array(0,1, true, false)))
92 92
         );
93 93
 
94 94
         $this->add(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             array('type' => 'Zend\Form\Element\Textarea',
66 66
                         'name' => 'mailConfirmationText',
67 67
                          'options' => array('label' => /* @translate */ 'Confirmation mail text',
68
-                                            '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>' ))
68
+                                            '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>'))
69 69
         );
70 70
         
71 71
         $this->add(
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 'name' => 'mailBCC',
89 89
                 'options' => array('label' => /* @translate */ 'get blind carbon copy of all own mails',
90 90
                                    'long_label' => /* @translate */ 'if checked, you\'ll get a copy of all mails you send.',
91
-                                           'value_options' => array(0,1, true, false)))
91
+                                           'value_options' => array(0, 1, true, false)))
92 92
         );
93 93
 
94 94
         $this->add(
Please login to merge, or discard this patch.
module/Applications/src/Applications/Mail/Forward.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** Forward.php */
11 11
 
@@ -117,15 +117,15 @@  discard block
 block discarded – undo
117 117
     protected function generateHtml()
118 118
     {
119 119
 
120
-         $services = $this->getServiceLocator()->getServiceLocator();
120
+            $services = $this->getServiceLocator()->getServiceLocator();
121 121
 
122
-         /*
122
+            /*
123 123
           * "ViewHelperManager" defined by ZF2
124 124
           *  see http://framework.zend.com/manual/2.0/en/modules/zend.mvc.services.html#viewmanager
125 125
           */
126
-         $viewManager = $services->get('ViewHelperManager');
126
+            $viewManager = $services->get('ViewHelperManager');
127 127
 
128
-         return $viewManager->get("partial")->__invoke('applications/mail/forward', array("application"=>$this->application));
128
+            return $viewManager->get("partial")->__invoke('applications/mail/forward', array("application"=>$this->application));
129 129
 
130 130
     }
131 131
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Mail/NewApplication.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      */
96 96
     public function setUser($user)
97 97
     {
98
-        $this->user=$user;
98
+        $this->user = $user;
99 99
         return $this;
100 100
     }
101 101
 
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Repository/Application.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 namespace Applications\Repository;
10 10
 
11 11
 use Core\Repository\AbstractRepository;
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $qb = $this->getPaginationQueryBuilder($params);
106 106
         $cursor = $qb->hydrate(false)
107
-                     ->select('_id')
108
-                     ->getQuery()
109
-                     ->execute();
107
+                        ->select('_id')
108
+                        ->getQuery()
109
+                        ->execute();
110 110
         
111 111
         $list = new PaginationList(array_keys(ArrayUtils::iteratorToArray($cursor)));
112 112
         return $list;
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
     {
131 131
         $auth=$this->getService('AuthenticationService');
132 132
         $qb=$this->createQueryBuilder()
133
-                  ->field("readBy")->notIn(array($auth->getUser()->id))
134
-                  ->field("job")->equals(new \MongoId($job->id));
133
+                    ->field("readBy")->notIn(array($auth->getUser()->id))
134
+                    ->field("job")->equals(new \MongoId($job->id));
135 135
         return $qb->getQuery()->execute();
136 136
     }
137 137
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,8 @@
 block discarded – undo
128 128
      */
129 129
     public function loadUnreadApplicationsForJob($job)
130 130
     {
131
-        $auth=$this->getService('AuthenticationService');
132
-        $qb=$this->createQueryBuilder()
131
+        $auth = $this->getService('AuthenticationService');
132
+        $qb = $this->createQueryBuilder()
133 133
                   ->field("readBy")->notIn(array($auth->getUser()->id))
134 134
                   ->field("job")->equals(new \MongoId($job->id));
135 135
         return $qb->getQuery()->execute();
Please login to merge, or discard this patch.