@@ -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; |
@@ -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 ( |
@@ -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 |
@@ -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 ( |
@@ -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 |