@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | protected function setOrder($name, $field, $type = 'ASC') |
173 | 173 | { |
174 | - $this->getRequest()->getSession()->set('sort.' . $name, array('field' => $field, 'type' => $type)); |
|
174 | + $this->getRequest()->getSession()->set('sort.'.$name, array('field' => $field, 'type' => $type)); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | { |
183 | 183 | $session = $this->getRequest()->getSession(); |
184 | 184 | |
185 | - return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null; |
|
185 | + return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | { |
194 | 194 | $alias = current($qb->getDQLPart('from'))->getAlias(); |
195 | 195 | if (is_array($order = $this->getOrder($name))) { |
196 | - $qb->orderBy($alias . '.' . $order['field'], $order['type']); |
|
196 | + $qb->orderBy($alias.'.'.$order['field'], $order['type']); |
|
197 | 197 | } |
198 | 198 | } |
199 | 199 |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | /** |
155 | 155 | * Get amount |
156 | 156 | * |
157 | - * @return string |
|
157 | + * @return double |
|
158 | 158 | */ |
159 | 159 | public function getAmount() |
160 | 160 | { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | /** |
178 | 178 | * Get status |
179 | 179 | * |
180 | - * @return integer |
|
180 | + * @return boolean |
|
181 | 181 | */ |
182 | 182 | public function getStatus() |
183 | 183 | { |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | /** |
211 | 211 | * Get articles |
212 | 212 | * |
213 | - * @return \Doctrine\Common\Collections\Collection |
|
213 | + * @return string |
|
214 | 214 | */ |
215 | 215 | public function getArticles() |
216 | 216 | { |
@@ -209,7 +209,7 @@ |
||
209 | 209 | /** |
210 | 210 | * Get unit_storage |
211 | 211 | * |
212 | - * @return \AppBundle\Entity\UnitStorage |
|
212 | + * @return string |
|
213 | 213 | */ |
214 | 214 | public function getUnitStorage() |
215 | 215 | { |