Completed
Pull Request — master (#161)
by
unknown
13:26
created
src/Encoder/Parameters/SortParameter.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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.