Completed
Push — master ( b5ecb4...81f8fc )
by Arjay
07:16
created
src/DataTablesServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
         foreach ($engines as $engine => $class) {
45 45
             $engine = camel_case($engine);
46 46
 
47
-            if (! method_exists(DataTables::class, $engine) && ! DataTables::hasMacro($engine)) {
47
+            if (!method_exists(DataTables::class, $engine) && !DataTables::hasMacro($engine)) {
48 48
                 DataTables::macro($engine, function () use ($class) {
49
-                    if (! call_user_func_array([$class, 'canCreate'], func_get_args())) {
49
+                    if (!call_user_func_array([$class, 'canCreate'], func_get_args())) {
50 50
                         throw new \InvalidArgumentException();
51 51
                     }
52 52
 
Please login to merge, or discard this patch.
src/CollectionDataTable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
             foreach ($this->request->searchableColumnIndex() as $index) {
224 224
                 $column = $this->getColumnName($index);
225 225
                 $value = Arr::get($data, $column);
226
-                if (! $value || is_array($value)) {
227
-                    if (! is_numeric($value)) {
226
+                if (!$value || is_array($value)) {
227
+                    if (!is_numeric($value)) {
228 228
                         continue;
229 229
                     } else {
230 230
                         $value = (string) $value;
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
     protected function defaultOrdering()
248 248
     {
249 249
         $criteria = $this->request->orderableColumns();
250
-        if (! empty($criteria)) {
250
+        if (!empty($criteria)) {
251 251
             $sorter = $this->getSorter($criteria);
252 252
 
253 253
             $this->collection = $this->collection
Please login to merge, or discard this patch.