Completed
Push — master ( 014bed...f221e4 )
by Arjay
02:09
created
src/EloquentDataTable.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
      */
123 123
     protected function isNotEagerLoaded($relation)
124 124
     {
125
-        return ! $relation
126
-            || ! array_key_exists($relation, $this->query->getEagerLoads())
125
+        return !$relation
126
+            || !array_key_exists($relation, $this->query->getEagerLoads())
127 127
             || $relation === $this->query->getModel()->getTable();
128 128
     }
129 129
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
             $joins[] = $join->table;
210 210
         }
211 211
 
212
-        if (! in_array($table, $joins)) {
212
+        if (!in_array($table, $joins)) {
213 213
             $this->getBaseQueryBuilder()->join($table, $foreign, '=', $other, $type);
214 214
         }
215 215
 
Please login to merge, or discard this patch.
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -184,6 +184,11 @@
 block discarded – undo
184 184
         return $table . '.' . $relationColumn;
185 185
     }
186 186
 
187
+    /**
188
+     * @param \Illuminate\Database\Eloquent\Model $model
189
+     *
190
+     * @return false|string
191
+     */
187 192
     protected function checkSoftDeletesOnModel($model)
188 193
     {
189 194
         if (in_array('Illuminate\Database\Eloquent\SoftDeletes', class_uses($model))) {
Please login to merge, or discard this patch.
src/DataTableAbstract.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
      */
475 475
     public function pushToBlacklist($column)
476 476
     {
477
-        if (! $this->isBlacklisted($column)) {
477
+        if (!$this->isBlacklisted($column)) {
478 478
             $this->columnDef['blacklist'][] = $column;
479 479
         }
480 480
 
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
      */
660 660
     protected function paginate()
661 661
     {
662
-        if ($this->request->isPaginationable() && ! $this->skipPaging) {
662
+        if ($this->request->isPaginationable() && !$this->skipPaging) {
663 663
             $this->paging();
664 664
         }
665 665
     }
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
             'recordsTotal'    => $this->totalRecords,
776 776
             'recordsFiltered' => 0,
777 777
             'data'            => [],
778
-            'error'           => $error ? __($error) : "Exception Message:\n\n".$exception->getMessage(),
778
+            'error'           => $error ? __($error) : "Exception Message:\n\n" . $exception->getMessage(),
779 779
         ]);
780 780
     }
781 781
 
@@ -813,7 +813,7 @@  discard block
 block discarded – undo
813 813
     protected function setupKeyword($value)
814 814
     {
815 815
         if ($this->config->isSmartSearch()) {
816
-            $keyword = '%'.$value.'%';
816
+            $keyword = '%' . $value . '%';
817 817
             if ($this->config->isWildcard()) {
818 818
                 $keyword = Helper::wildcardLikeString($value);
819 819
             }
Please login to merge, or discard this patch.