Completed
Pull Request — master (#1454)
by
unknown
09:52
created
src/QueryDataTable.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -450,7 +450,7 @@
 block discarded – undo
450 450
     /**
451 451
      * Prepare count query builder.
452 452
      *
453
-     * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder
453
+     * @return string
454 454
      */
455 455
     protected function prepareCountQuery()
456 456
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,9 +88,9 @@
 block discarded – undo
88 88
     protected function prepareQuery()
89 89
     {
90 90
         if (!$this->prepared) {
91
-            if($this->totalRecords===null)
91
+            if ($this->totalRecords === null)
92 92
                 $this->totalRecords = $this->totalCount();
93
-            if ($this->totalRecords!==null) {
93
+            if ($this->totalRecords !== null) {
94 94
                 $this->filterRecords();
95 95
                 $this->ordering();
96 96
                 $this->paginate();
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,8 +88,9 @@
 block discarded – undo
88 88
     protected function prepareQuery()
89 89
     {
90 90
         if (!$this->prepared) {
91
-            if($this->totalRecords===null)
92
-                $this->totalRecords = $this->totalCount();
91
+            if($this->totalRecords===null) {
92
+                            $this->totalRecords = $this->totalCount();
93
+            }
93 94
             if ($this->totalRecords!==null) {
94 95
                 $this->filterRecords();
95 96
                 $this->ordering();
Please login to merge, or discard this patch.