@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | // ensures garbage removal |
80 | 80 | register_shutdown_function( |
81 | - function ($filename) { |
|
81 | + function($filename) { |
|
82 | 82 | @unlink($filename); |
83 | 83 | }, |
84 | 84 | $tmp |
@@ -92,10 +92,10 @@ discard block |
||
92 | 92 | |
93 | 93 | $return = ["file" => $tmp]; |
94 | 94 | |
95 | - foreach(['user', 'name', 'type'] as $key) { |
|
95 | + foreach (['user', 'name', 'type'] as $key) { |
|
96 | 96 | $v = $value->{"get$key"}(); |
97 | - if($v) { |
|
98 | - $return[$key]=$v; |
|
97 | + if ($v) { |
|
98 | + $return[$key] = $v; |
|
99 | 99 | } |
100 | 100 | } |
101 | 101 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | $entity = $this->getTargetEntity(); |
124 | 124 | |
125 | - foreach($value as $key=>$v) { |
|
125 | + foreach ($value as $key=>$v) { |
|
126 | 126 | $entity->{"set$key"}($v); |
127 | 127 | } |
128 | 128 | return $entity; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | /* @var \Doctrine\ODM\MongoDB\Query\Builder $qb */ |
44 | 44 | $qb = $this->repository->createQueryBuilder(); |
45 | - $qb->field('title')->equals(new \MongoRegex('/' . addslashes($q) . '/i')); |
|
45 | + $qb->field('title')->equals(new \MongoRegex('/'.addslashes($q).'/i')); |
|
46 | 46 | $cursor = $qb->getQuery()->execute(); |
47 | 47 | |
48 | 48 | $adapter = new DoctrineMongoCursor($cursor); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | class JobSelect extends Select implements HeadscriptProviderInterface |
24 | 24 | { |
25 | - private $scripts = [ 'Applications/js/form.job-select.js' ]; |
|
25 | + private $scripts = ['Applications/js/form.job-select.js']; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Sets the array of script names. |
@@ -36,50 +36,50 @@ |
||
36 | 36 | { |
37 | 37 | |
38 | 38 | $this->add( |
39 | - [ |
|
40 | - 'type' => JobSelect::class, |
|
41 | - 'name' => 'job', |
|
42 | - 'options' => [ |
|
43 | - 'label' => /* @translate */ 'Enter job title', |
|
44 | - //'empty_option' => 'Enter job title', |
|
45 | - ], |
|
46 | - 'attributes' => [ |
|
47 | - 'id' => 'job-filter', |
|
48 | - 'class' => 'form-control', |
|
49 | - 'data-placeholder' => 'Enter job title', |
|
50 | - 'data-autoinit' => 'false', |
|
51 | - 'data-submit-on-change' => 'true', |
|
52 | - ] |
|
53 | - ] |
|
39 | + [ |
|
40 | + 'type' => JobSelect::class, |
|
41 | + 'name' => 'job', |
|
42 | + 'options' => [ |
|
43 | + 'label' => /* @translate */ 'Enter job title', |
|
44 | + //'empty_option' => 'Enter job title', |
|
45 | + ], |
|
46 | + 'attributes' => [ |
|
47 | + 'id' => 'job-filter', |
|
48 | + 'class' => 'form-control', |
|
49 | + 'data-placeholder' => 'Enter job title', |
|
50 | + 'data-autoinit' => 'false', |
|
51 | + 'data-submit-on-change' => 'true', |
|
52 | + ] |
|
53 | + ] |
|
54 | 54 | ); |
55 | 55 | |
56 | 56 | $this->add( |
57 | - [ |
|
58 | - 'type' => 'Applications\Form\Element\StatusSelect', |
|
59 | - 'name' => 'status', |
|
60 | - 'options' => [ |
|
61 | - 'label' => /* @translate */ 'Status', |
|
62 | - ], |
|
63 | - 'attributes' => [ |
|
64 | - 'data-width' => '100%', |
|
65 | - 'data-submit-on-change' => 'true', |
|
66 | - 'data-placeholder' => /*@translate*/ 'all', |
|
67 | - ] |
|
68 | - ] |
|
57 | + [ |
|
58 | + 'type' => 'Applications\Form\Element\StatusSelect', |
|
59 | + 'name' => 'status', |
|
60 | + 'options' => [ |
|
61 | + 'label' => /* @translate */ 'Status', |
|
62 | + ], |
|
63 | + 'attributes' => [ |
|
64 | + 'data-width' => '100%', |
|
65 | + 'data-submit-on-change' => 'true', |
|
66 | + 'data-placeholder' => /*@translate*/ 'all', |
|
67 | + ] |
|
68 | + ] |
|
69 | 69 | ); |
70 | 70 | |
71 | 71 | $this->add( |
72 | - ['type' => 'ToggleButton', |
|
73 | - 'name' => 'unread', |
|
74 | - 'options' => [ |
|
75 | - 'checked_value' => '1', |
|
76 | - 'unchecked_value' => '0', |
|
77 | - 'label' => 'unread', |
|
78 | - ], |
|
79 | - 'attributes' => [ |
|
80 | - 'data-submit-on-change' => 'true', |
|
81 | - ] |
|
82 | - ] |
|
72 | + ['type' => 'ToggleButton', |
|
73 | + 'name' => 'unread', |
|
74 | + 'options' => [ |
|
75 | + 'checked_value' => '1', |
|
76 | + 'unchecked_value' => '0', |
|
77 | + 'label' => 'unread', |
|
78 | + ], |
|
79 | + 'attributes' => [ |
|
80 | + 'data-submit-on-change' => 'true', |
|
81 | + ] |
|
82 | + ] |
|
83 | 83 | ); |
84 | 84 | |
85 | 85 | $this->setButtonElement('unread'); |
@@ -128,7 +128,7 @@ |
||
128 | 128 | ); |
129 | 129 | |
130 | 130 | $this->setName('preferredJob') |
131 | - ->setHydrator(new EntityHydrator()) |
|
132 | - ->setObject(new PreferredJob()); |
|
131 | + ->setHydrator(new EntityHydrator()) |
|
132 | + ->setObject(new PreferredJob()); |
|
133 | 133 | } |
134 | 134 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | use EmptySummaryAwareTrait, HydratorStrategyAwareTrait, ViewPartialProviderTrait; |
19 | 19 | |
20 | - private $defaultEmptySummaryNotice = /*@translate*/ 'Click here to enter your employment expectation'; |
|
20 | + private $defaultEmptySummaryNotice = /*@translate*/ 'Click here to enter your employment expectation'; |
|
21 | 21 | private $defaultPartial = 'cv/form/preferred-job-fieldset'; |
22 | 22 | |
23 | 23 | /** |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | { |
56 | 56 | $qb = $this->createQueryBuilder(); |
57 | 57 | $qb->hydrate(false) |
58 | - ->select('applyId') |
|
59 | - ->field('applyId')->equals($applyId); |
|
58 | + ->select('applyId') |
|
59 | + ->field('applyId')->equals($applyId); |
|
60 | 60 | |
61 | 61 | $result = $qb->getQuery()->execute(); |
62 | 62 | $count = $result->count(); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $qb = $this->createQueryBuilder(); |
137 | 137 | $qb->distinct('organization') |
138 | 138 | ->hydrate(true) |
139 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
139 | + ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
140 | 140 | |
141 | 141 | $q = $qb->getQuery(); |
142 | 142 | $r = $q->execute(); |
@@ -206,8 +206,8 @@ discard block |
||
206 | 206 | |
207 | 207 | if (null !== $isDeleted) { |
208 | 208 | $qb->addAnd( |
209 | - $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted)) |
|
210 | - ->addOr($qb->expr()->field('isDeleted')->exists(false)) |
|
209 | + $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted)) |
|
210 | + ->addOr($qb->expr()->field('isDeleted')->exists(false)) |
|
211 | 211 | ); |
212 | 212 | } |
213 | 213 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | public function findByAssignedPermissionsResourceId($resourceId) |
71 | 71 | { |
72 | 72 | $criteria = $this->getIsDeletedCriteria( |
73 | - ['permissions.assigned.' . $resourceId => [ '$exists' => true]] |
|
73 | + ['permissions.assigned.'.$resourceId => ['$exists' => true]] |
|
74 | 74 | ); |
75 | 75 | |
76 | 76 | return $this->findBy($criteria); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $qb = $this->createQueryBuilder(); |
137 | 137 | $qb->distinct('organization') |
138 | 138 | ->hydrate(true) |
139 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
139 | + ->field('status.name')->notIn([StatusInterface::EXPIRED, StatusInterface::INACTIVE]); |
|
140 | 140 | |
141 | 141 | $q = $qb->getQuery(); |
142 | 142 | $r = $q->execute(); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $qb = $this->dm->createQueryBuilder('Organizations\Entity\Organization'); |
146 | 146 | $qb->field('_id')->in($r); |
147 | 147 | if ($term) { |
148 | - $qb->field('_organizationName')->equals(new \MongoRegex('/' . addslashes($term) . '/i')); |
|
148 | + $qb->field('_organizationName')->equals(new \MongoRegex('/'.addslashes($term).'/i')); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | $q = $qb->getQuery(); |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function createQueryBuilder($isDeleted = false) |
204 | 204 | { |
205 | - $qb = parent::createQueryBuilder(); |
|
205 | + $qb = parent::createQueryBuilder(); |
|
206 | 206 | |
207 | 207 | if (null !== $isDeleted) { |
208 | 208 | $qb->addAnd( |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * for multiple paths. |
23 | 23 | * example https://github.com/doctrine/DoctrineORMModule |
24 | 24 | */ |
25 | - 'paths' => [ __DIR__ . '/../src/Geo/Entity'], |
|
25 | + 'paths' => [__DIR__.'/../src/Geo/Entity'], |
|
26 | 26 | ], |
27 | 27 | ], |
28 | 28 | ], |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | // Generated by ZF2's ./bin/classmap_generator.php |
3 | 3 | return array( |
4 | - 'Geo\Controller\IndexController' => __DIR__ . '/Geo/Controller/IndexController.php', |
|
5 | - 'Geo\Entity\Geometry\Point' => __DIR__ . '/Geo/Entity/Geometry/Point.php', |
|
6 | - 'Geo\Factory\Controller\IndexControllerFactory' => __DIR__ . '/Geo/Factory/Controller/IndexControllerFactory.php', |
|
7 | - 'Geo\Factory\Form\GeoSelectFactory' => __DIR__ . '/Geo/Factory/Form/GeoSelectFactory.php', |
|
8 | - 'Geo\Factory\Listener\AjaxQueryFactory' => __DIR__ . '/Geo/Factory/Listener/AjaxQueryFactory.php', |
|
9 | - 'Geo\Factory\Service\ClientFactory' => __DIR__ . '/Geo/Factory/Service/ClientFactory.php', |
|
10 | - 'Geo\Form\GeoSelect' => __DIR__ . '/Geo/Form/GeoSelect.php', |
|
11 | - 'Geo\Form\GeoSelectHydratorStrategy' => __DIR__ . '/Geo/Form/GeoSelectHydratorStrategy.php', |
|
12 | - 'Geo\Form\GeoSelectSimple' => __DIR__ . '/Geo/Form/GeoSelectSimple.php', |
|
13 | - 'Geo\Listener\AjaxQuery' => __DIR__ . '/Geo/Listener/AjaxQuery.php', |
|
14 | - 'Geo\Options\ModuleOptions' => __DIR__ . '/Geo/Options/ModuleOptions.php', |
|
15 | - 'Geo\Service\AbstractClient' => __DIR__ . '/Geo/Service/AbstractClient.php', |
|
16 | - 'Geo\Service\Geo' => __DIR__ . '/Geo/Service/Geo.php', |
|
17 | - 'Geo\Service\Photon' => __DIR__ . '/Geo/Service/Photon.php', |
|
4 | + 'Geo\Controller\IndexController' => __DIR__.'/Geo/Controller/IndexController.php', |
|
5 | + 'Geo\Entity\Geometry\Point' => __DIR__.'/Geo/Entity/Geometry/Point.php', |
|
6 | + 'Geo\Factory\Controller\IndexControllerFactory' => __DIR__.'/Geo/Factory/Controller/IndexControllerFactory.php', |
|
7 | + 'Geo\Factory\Form\GeoSelectFactory' => __DIR__.'/Geo/Factory/Form/GeoSelectFactory.php', |
|
8 | + 'Geo\Factory\Listener\AjaxQueryFactory' => __DIR__.'/Geo/Factory/Listener/AjaxQueryFactory.php', |
|
9 | + 'Geo\Factory\Service\ClientFactory' => __DIR__.'/Geo/Factory/Service/ClientFactory.php', |
|
10 | + 'Geo\Form\GeoSelect' => __DIR__.'/Geo/Form/GeoSelect.php', |
|
11 | + 'Geo\Form\GeoSelectHydratorStrategy' => __DIR__.'/Geo/Form/GeoSelectHydratorStrategy.php', |
|
12 | + 'Geo\Form\GeoSelectSimple' => __DIR__.'/Geo/Form/GeoSelectSimple.php', |
|
13 | + 'Geo\Listener\AjaxQuery' => __DIR__.'/Geo/Listener/AjaxQuery.php', |
|
14 | + 'Geo\Options\ModuleOptions' => __DIR__.'/Geo/Options/ModuleOptions.php', |
|
15 | + 'Geo\Service\AbstractClient' => __DIR__.'/Geo/Service/AbstractClient.php', |
|
16 | + 'Geo\Service\Geo' => __DIR__.'/Geo/Service/Geo.php', |
|
17 | + 'Geo\Service\Photon' => __DIR__.'/Geo/Service/Photon.php', |
|
18 | 18 | ); |
@@ -67,7 +67,7 @@ |
||
67 | 67 | array('type' => 'Zend\Form\Element\Textarea', |
68 | 68 | 'name' => 'mailConfirmationText', |
69 | 69 | 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
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><li>##link## = Link to the application details</li></ul>' )) |
|
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><li>##link## = Link to the application details</li></ul>')) |
|
71 | 71 | ); |
72 | 72 | |
73 | 73 | $this->add( |
@@ -42,14 +42,14 @@ discard block |
||
42 | 42 | public function init() |
43 | 43 | { |
44 | 44 | $this->setName('emails') |
45 | - ->setLabel(/* @translate */ 'E-Mail Notifications'); |
|
45 | + ->setLabel(/* @translate */ 'E-Mail Notifications'); |
|
46 | 46 | |
47 | 47 | $this->add( |
48 | 48 | array('type' => Checkbox::class, |
49 | 49 | 'name' => 'mailAccess', |
50 | 50 | 'label' => 'foo', |
51 | 51 | 'options' => array('label' => /* @translate */ 'receive E-Mail alert', |
52 | - 'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'), |
|
52 | + 'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'), |
|
53 | 53 | ) |
54 | 54 | ); |
55 | 55 | $this->add( |
@@ -63,13 +63,13 @@ discard block |
||
63 | 63 | array('type' => 'Zend\Form\Element\Checkbox', |
64 | 64 | 'name' => 'autoConfirmMail', |
65 | 65 | 'options' => array('label' => /* @translate */ 'confirm application immidiatly after submit', |
66 | - 'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'), |
|
66 | + 'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'), |
|
67 | 67 | ) |
68 | 68 | ); |
69 | 69 | $this->add( |
70 | 70 | array('type' => 'Zend\Form\Element\Textarea', |
71 | 71 | 'name' => 'mailConfirmationText', |
72 | - 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
|
72 | + 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
|
73 | 73 | '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><li>##link## = Link to the application details</li></ul>' )) |
74 | 74 | ); |
75 | 75 | |
@@ -117,11 +117,11 @@ discard block |
||
117 | 117 | |
118 | 118 | $this->add( |
119 | 119 | array( |
120 | - 'type' => 'Settings/DisableElementsCapableFormSettingsFieldset', |
|
121 | - 'name' => 'applyFormSettings', |
|
122 | - 'options' => array( |
|
120 | + 'type' => 'Settings/DisableElementsCapableFormSettingsFieldset', |
|
121 | + 'name' => 'applyFormSettings', |
|
122 | + 'options' => array( |
|
123 | 123 | |
124 | - ) |
|
124 | + ) |
|
125 | 125 | ) |
126 | 126 | ); |
127 | 127 | } |