@@ -40,8 +40,7 @@ |
||
40 | 40 | if (strpos($addModule, '-') === 0) { |
41 | 41 | $remove = substr($addModule,1); |
42 | 42 | $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); }); |
43 | - } |
|
44 | - else { |
|
43 | + } else { |
|
45 | 44 | if (!in_array($addModule, $modules)) { |
46 | 45 | $modules[] = $addModule; |
47 | 46 | } |
@@ -105,7 +105,9 @@ |
||
105 | 105 | /* */ |
106 | 106 | |
107 | 107 | $dm = $this->getRepository()->getDocumentManager(); |
108 | - if ( '' == $user->getInfo()->email) $user->getInfo()->email = $email; |
|
108 | + if ( '' == $user->getInfo()->email) { |
|
109 | + $user->getInfo()->email = $email; |
|
110 | + } |
|
109 | 111 | $user->getInfo()->firstName = $userProfile->firstName; |
110 | 112 | $user->getInfo()->lastName = $userProfile->lastName; |
111 | 113 | $user->getInfo()->birthDay = $userProfile->birthDay; |
@@ -136,10 +136,11 @@ |
||
136 | 136 | $parameterPartial |
137 | 137 | ); |
138 | 138 | |
139 | - } elseif ($element instanceof FieldsetInterface) |
|
140 | - if ($element instanceof ViewHelperProviderInterface) { |
|
139 | + } elseif ($element instanceof FieldsetInterface) { |
|
140 | + if ($element instanceof ViewHelperProviderInterface) { |
|
141 | 141 | /* @var $element ViewHelperProviderInterface */ |
142 | 142 | $helper = $element->getViewHelper(); |
143 | + } |
|
143 | 144 | if (is_string($helper)) { |
144 | 145 | $helper = $renderer->plugin($helper); |
145 | 146 | } |
@@ -53,7 +53,9 @@ |
||
53 | 53 | } |
54 | 54 | } |
55 | 55 | $discount=1-($amount-1)*13.5/100; |
56 | - if ($discount>0) $sum= round($sum * $discount,2); |
|
56 | + if ($discount>0) { |
|
57 | + $sum= round($sum * $discount,2); |
|
58 | + } |
|
57 | 59 | return $sum; |
58 | 60 | } |
59 | 61 |
@@ -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 ( |