@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * @param boolean $deleteCascade |
| 35 | 35 | * whether to delete children and subchildren |
| 36 | 36 | * |
| 37 | - * @return boolean |
|
| 37 | + * @return integer |
|
| 38 | 38 | * true on successful deletion |
| 39 | 39 | */ |
| 40 | 40 | protected function doDelete(CRUDEntity $entity, $deleteCascade) { |
@@ -301,11 +301,11 @@ |
||
| 301 | 301 | } |
| 302 | 302 | |
| 303 | 303 | /** |
| 304 | - * Sets the amount of items to display per page on the listview. |
|
| 305 | - * |
|
| 306 | - * @param integer $pageSize |
|
| 307 | - * the amount of items to display per page on the listview |
|
| 308 | - */ |
|
| 304 | + * Sets the amount of items to display per page on the listview. |
|
| 305 | + * |
|
| 306 | + * @param integer $pageSize |
|
| 307 | + * the amount of items to display per page on the listview |
|
| 308 | + */ |
|
| 309 | 309 | public function setPageSize($pageSize) { |
| 310 | 310 | $this->pageSize = $pageSize; |
| 311 | 311 | } |
@@ -410,9 +410,9 @@ |
||
| 410 | 410 | $zeroFraction = $float - floor($float) == 0 ? '0' : ''; |
| 411 | 411 | |
| 412 | 412 | // We don't want values like 0.004 converted to 0.00400000000000000008 |
| 413 | - if ($float > 0.0001) { |
|
| 414 | - return $float . ($zeroFraction === '0' ? '.'.$zeroFraction : ''); |
|
| 415 | - } |
|
| 413 | + if ($float > 0.0001) { |
|
| 414 | + return $float . ($zeroFraction === '0' ? '.'.$zeroFraction : ''); |
|
| 415 | + } |
|
| 416 | 416 | |
| 417 | 417 | // We don't want values like 0.00004 converted to its scientific notation 4.0E-5 |
| 418 | 418 | return rtrim(sprintf('%.20F', $float), '0').$zeroFraction; |