|
@@ -45,7 +45,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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
|
/** |
Please login to merge, or discard this patch.