@@ -59,10 +59,10 @@ |
||
59 | 59 | if (isset($this->value['params']['status']) && |
60 | 60 | !empty($this->value['params']['status'])) |
61 | 61 | { |
62 | - if ($this->value['params']['status'] != 'all'){ |
|
62 | + if ($this->value['params']['status'] != 'all') { |
|
63 | 63 | $queryBuilder->field('status.name')->equals($this->value['params']['status']); |
64 | 64 | } |
65 | - }else{ |
|
65 | + } else { |
|
66 | 66 | $queryBuilder->field('status.name')->equals(Status::CREATED); |
67 | 67 | } |
68 | 68 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | if ($this->value['params']['status'] != 'all'){ |
63 | 63 | $queryBuilder->field('status.name')->equals($this->value['params']['status']); |
64 | 64 | } |
65 | - }else{ |
|
65 | + } else{ |
|
66 | 66 | $queryBuilder->field('status.name')->equals(Status::CREATED); |
67 | 67 | } |
68 | 68 |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author [email protected] |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Organizations\Form; |
12 | 12 |
@@ -138,7 +138,7 @@ |
||
138 | 138 | $qb = $this->createQueryBuilder(); |
139 | 139 | $qb->distinct('organization') |
140 | 140 | ->hydrate(true) |
141 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
141 | + ->field('status.name')->notIn([StatusInterface::EXPIRED, StatusInterface::INACTIVE]); |
|
142 | 142 | $q = $qb->getQuery(); |
143 | 143 | $r = $q->execute(); |
144 | 144 | $r = $r->toArray(); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | /** |
92 | 92 | * Look for an drafted Document of a given user |
93 | 93 | * |
94 | - * @param $user |
|
94 | + * @param \Auth\Entity\AnonymousUser $user |
|
95 | 95 | * @return \Jobs\Entity\Job|null |
96 | 96 | */ |
97 | 97 | public function findDraft($user) |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
6 | - * @license MIT |
|
7 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
6 | + * @license MIT |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Jobs\Repository; |
10 | 10 | |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | { |
41 | 41 | $qb = $this->createQueryBuilder(); |
42 | 42 | $qb->hydrate(false) |
43 | - ->select('applyId') |
|
44 | - ->field('applyId')->equals($applyId); |
|
43 | + ->select('applyId') |
|
44 | + ->field('applyId')->equals($applyId); |
|
45 | 45 | |
46 | 46 | $result = $qb->getQuery()->execute(); |
47 | 47 | $count = $result->count(); |
@@ -76,11 +76,11 @@ discard block |
||
76 | 76 | { |
77 | 77 | $qb = $this->createQueryBuilder(); |
78 | 78 | $qb->hydrate(false) |
79 | - ->select('title', 'applyId') |
|
80 | - ->field('permissions.view')->equals($userId) |
|
81 | - ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
82 | - ->sort('title') |
|
83 | - ->limit(5); |
|
79 | + ->select('title', 'applyId') |
|
80 | + ->field('permissions.view')->equals($userId) |
|
81 | + ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
82 | + ->sort('title') |
|
83 | + ->limit(5); |
|
84 | 84 | |
85 | 85 | $result = $qb->getQuery()->execute(); |
86 | 86 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $qb = $this->createQueryBuilder(); |
147 | 147 | $qb->distinct('organization') |
148 | 148 | ->hydrate(true) |
149 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
149 | + ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
150 | 150 | $q = $qb->getQuery(); |
151 | 151 | $r = $q->execute(); |
152 | 152 | $r = $r->toArray(); |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Jobs\Form; |
@@ -64,10 +64,10 @@ discard block |
||
64 | 64 | $imageUrl = $image ? $image->getUri() : ''; |
65 | 65 | |
66 | 66 | $options[$org->getId()] = $name . '|' |
67 | - . $contact->getCity() . '|' |
|
68 | - . $contact->getStreet() . '|' |
|
69 | - . $contact->getHouseNumber() . '|' |
|
70 | - . $imageUrl; |
|
67 | + . $contact->getCity() . '|' |
|
68 | + . $contact->getStreet() . '|' |
|
69 | + . $contact->getHouseNumber() . '|' |
|
70 | + . $imageUrl; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | return $this->setValueOptions($options); |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @author cbleek |
|
8 | - * @license MIT |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @author cbleek |
|
8 | + * @license MIT |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Core\Form\View\Helper; |
12 | 12 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | use Zend\Form\ElementInterface; |
16 | 16 | use Zend\Form\Exception; |
17 | 17 | |
18 | -class RequiredMarkInFormLabel extends FormLabel{ |
|
18 | +class RequiredMarkInFormLabel extends FormLabel { |
|
19 | 19 | public function __invoke(ElementInterface $element = null, $labelContent = null, $position = null) |
20 | 20 | { |
21 | 21 | // Set $required to a default of true | existing elements required-value |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | if (!$element->hasAttribute('id')) { |
86 | 86 | $elementId = preg_replace( |
87 | 87 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
88 | - array('-' , '-', ''), |
|
88 | + array('-', '-', ''), |
|
89 | 89 | $element->getName() |
90 | 90 | ); |
91 | 91 | $element->setAttribute('id', $elementId); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | && $element->getAttribute('type') != 'checkbox' |
101 | 101 | && !$element instanceof Button |
102 | 102 | ) { |
103 | - $element->setAttribute('class', $element->getAttribute('class').' form-control '); |
|
103 | + $element->setAttribute('class', $element->getAttribute('class') . ' form-control '); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | $elementString = $elementHelper->render($element); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | // moved label here so we can change it in the ElementViewHelper |
134 | - $label = $element->getLabel(); |
|
134 | + $label = $element->getLabel(); |
|
135 | 135 | if (isset($label) && '' !== $label && !$element instanceof \Zend\Form\Element\Button) { |
136 | 136 | // Translate the label |
137 | 137 | if (null !== ($translator = $this->getTranslator())) { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | } |
174 | 174 | $element->setLabelAttributes($labelAttributes); |
175 | 175 | |
176 | - $label = $labelHelper($element,$label); |
|
176 | + $label = $labelHelper($element, $label); |
|
177 | 177 | if ($this->shouldWrap) { |
178 | 178 | $spanWidth = 12 - $labelWidth; |
179 | 179 | $elementString = sprintf( |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Core\Form\View\Helper; |
11 | 11 | |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | |
53 | 53 | if ($element instanceof ViewPartialProviderInterface && !$ignoreViewPartial) { |
54 | 54 | return $this->getView()->partial($element->getViewPartial(), |
55 | - array( |
|
56 | - 'element' => $element, |
|
57 | - 'labelWitdh' => $labelWidth, |
|
58 | - 'label_attributes' => $labelAttributes |
|
55 | + array( |
|
56 | + 'element' => $element, |
|
57 | + 'labelWitdh' => $labelWidth, |
|
58 | + 'label_attributes' => $labelAttributes |
|
59 | 59 | ) |
60 | 60 | ); |
61 | 61 | } |
@@ -107,10 +107,10 @@ discard block |
||
107 | 107 | $desc = $element->getOption('description', false); |
108 | 108 | if ($desc && $this->layout != Form::LAYOUT_BARE) { |
109 | 109 | if (null !== ($translator = $this->getTranslator())) { |
110 | - $desc = $translator->translate( |
|
111 | - $desc, |
|
112 | - $this->getTranslatorTextDomain() |
|
113 | - ); |
|
110 | + $desc = $translator->translate( |
|
111 | + $desc, |
|
112 | + $this->getTranslatorTextDomain() |
|
113 | + ); |
|
114 | 114 | } |
115 | 115 | $elementString .= sprintf( |
116 | 116 | '<div id="%s-desc" class="cam-description alert alert-info">%s</div>', |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | public function indexAction() |
57 | 57 | { |
58 | - if (!$this->options->getEnableRegistration()){ |
|
58 | + if (!$this->options->getEnableRegistration()) { |
|
59 | 59 | $this->notification()->info( /*@translate*/ 'Registration is disabled'); |
60 | 60 | return $this->redirect()->toRoute('lang'); |
61 | 61 | } |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | /*@translate*/ 'Please fill form correctly' |
89 | 89 | ); |
90 | 90 | } |
91 | - }else{ |
|
91 | + } else { |
|
92 | 92 | /* @var $register \Zend\Form\Fieldset */ |
93 | 93 | $register = $this->form->get('register'); |
94 | 94 | $register->get('role')->setValue($this->params('role')); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | $this->form->setAttribute('action', $this->url()->fromRoute('lang/register')); |
108 | 108 | |
109 | - $viewModel->setVariable('form' , $this->form ); |
|
109 | + $viewModel->setVariable('form', $this->form); |
|
110 | 110 | |
111 | 111 | return $viewModel; |
112 | 112 | } |
@@ -77,7 +77,7 @@ |
||
77 | 77 | */ |
78 | 78 | if (isset($this->value['params']['by']) && 'me' == $this->value['params']['by']) { |
79 | 79 | $queryBuilder->field('user')->equals($this->user->id); |
80 | - }else{ |
|
80 | + } else{ |
|
81 | 81 | $queryBuilder->field('permissions.view')->equals($this->user->id); |
82 | 82 | } |
83 | 83 | if ( |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Organizations\Factory\Controller; |
11 | 11 |
@@ -69,13 +69,13 @@ |
||
69 | 69 | if ('yawik' == $channelKey) { |
70 | 70 | $absoluteDiscount = 100; |
71 | 71 | } |
72 | - if ($channel->getPrice('base')>0) { |
|
72 | + if ($channel->getPrice('base') > 0) { |
|
73 | 73 | $sum += $channel->getPrice('base'); |
74 | 74 | $amount++; |
75 | 75 | } |
76 | 76 | } |
77 | - $discount=1-($amount-1)*13.5/100; |
|
78 | - if ($discount>0) $sum= round($sum * $discount,2); |
|
79 | - return $sum-$absoluteDiscount; |
|
77 | + $discount = 1 - ($amount - 1) * 13.5 / 100; |
|
78 | + if ($discount > 0) $sum = round($sum * $discount, 2); |
|
79 | + return $sum - $absoluteDiscount; |
|
80 | 80 | } |
81 | 81 | } |
82 | 82 | \ No newline at end of file |
@@ -75,7 +75,9 @@ |
||
75 | 75 | } |
76 | 76 | } |
77 | 77 | $discount=1-($amount-1)*13.5/100; |
78 | - if ($discount>0) $sum= round($sum * $discount,2); |
|
78 | + if ($discount>0) { |
|
79 | + $sum= round($sum * $discount,2); |
|
80 | + } |
|
79 | 81 | return $sum-$absoluteDiscount; |
80 | 82 | } |
81 | 83 | } |
82 | 84 | \ No newline at end of file |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace JobsTest\Form; |
@@ -121,7 +121,7 @@ |
||
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 | ) |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Organizations\Factory\Controller; |
11 | 11 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | ), |
56 | 56 | 'attributes' => [ |
57 | 57 | 'value' => '10', // default distance |
58 | - 'data-searchbox' => -1, // hide the search box |
|
58 | + 'data-searchbox' => -1, // hide the search box |
|
59 | 59 | 'data-allowclear' => 'false', // allow to clear a selected value |
60 | 60 | 'data-placeholder' => /*@translate*/ 'Distance', |
61 | 61 | ] |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Organizations\Factory\Controller; |
11 | 11 |