@@ -41,9 +41,9 @@ |
||
| 41 | 41 | |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @param $sortField |
|
| 45 | - * @param $isAscending |
|
| 46 | - * @param null $sortRelationAttribute |
|
| 44 | + * @param string $sortField |
|
| 45 | + * @param boolean $isAscending |
|
| 46 | + * @param null $sortRelationshipAttribute |
|
| 47 | 47 | */ |
| 48 | 48 | public function __construct($sortField, $isAscending, $sortRelationshipAttribute=null) |
| 49 | 49 | { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * @param $isAscending |
| 46 | 46 | * @param null $sortRelationAttribute |
| 47 | 47 | */ |
| 48 | - public function __construct($sortField, $isAscending, $sortRelationshipAttribute=null) |
|
| 48 | + public function __construct($sortField, $isAscending, $sortRelationshipAttribute = null) |
|
| 49 | 49 | { |
| 50 | 50 | is_string($sortField) === true ?: Exceptions::throwInvalidArgument('sortField', $sortField); |
| 51 | 51 | is_string($sortRelationshipAttribute) === true || is_null($sortRelationshipAttribute) === true ?: Exceptions::throwInvalidArgument('sortRelationshipAttribute', $sortRelationshipAttribute); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | $prefix = $this->isAscending() ? '' : '-'; |
| 65 | 65 | |
| 66 | - return $prefix . $this->getField(); |
|
| 66 | + return $prefix.$this->getField(); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |