Completed
Push — master ( 4cc8d8...e56a52 )
by Arjay
04:43
created
src/Engines/CollectionEngine.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Illuminate\Support\Str;
18 18
 use Yajra\Datatables\Contracts\DataTableEngineContract;
19 19
 use Yajra\Datatables\Request;
20
-use Yajra\Datatables\Helper;
21 20
 
22 21
 class CollectionEngine extends BaseEngine implements DataTableEngineContract
23 22
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
                 $keyword = $this->request->keyword();
124 124
                 foreach ($this->request->searchableColumnIndex() as $index) {
125 125
                     $column = $this->getColumnName($index);
126
-                    if (! $value = Arr::get($data, $column)) {
126
+                    if (!$value = Arr::get($data, $column)) {
127 127
                         continue;
128 128
                     }
129 129
 
Please login to merge, or discard this patch.
src/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
      */
132 132
     public static function getOrMethod($method)
133 133
     {
134
-        if (! Str::contains(Str::lower($method), 'or')) {
134
+        if (!Str::contains(Str::lower($method), 'or')) {
135 135
             return 'or' . ucfirst($method);
136 136
         }
137 137
 
Please login to merge, or discard this patch.
src/Html/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
      */
225 225
     public function setTitle($title, array $attributes)
226 226
     {
227
-        if (! isset($attributes['title'])) {
227
+        if (!isset($attributes['title'])) {
228 228
             $attributes['title'] = $this->getQualifiedTitle($title);
229 229
         }
230 230
 
Please login to merge, or discard this patch.
src/Processors/RowProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
      */
42 42
     public function rowValue($attribute, $template)
43 43
     {
44
-        if (! empty($template)) {
45
-            if (! is_callable($template) && Arr::get($this->data, $template)) {
44
+        if (!empty($template)) {
45
+            if (!is_callable($template) && Arr::get($this->data, $template)) {
46 46
                 $this->data[$attribute] = Arr::get($this->data, $template);
47 47
             } else {
48 48
                 $this->data[$attribute] = Helper::compileContent($template, $this->data, $this->row);
Please login to merge, or discard this patch.
src/Request.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function checkLegacyCode()
19 19
     {
20
-        if (! $this->get('draw') && $this->get('sEcho')) {
20
+        if (!$this->get('draw') && $this->get('sEcho')) {
21 21
             throw new Exception('DataTables legacy code is not supported! Please use DataTables 1.10++ coding convention.');
22
-        } elseif (! $this->get('draw') && ! $this->get('columns')) {
22
+        } elseif (!$this->get('draw') && !$this->get('columns')) {
23 23
             throw new Exception('Insufficient parameters');
24 24
         }
25 25
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function orderableColumns()
65 65
     {
66
-        if (! $this->isOrderable()) {
66
+        if (!$this->isOrderable()) {
67 67
             return [];
68 68
         }
69 69
 
@@ -162,6 +162,6 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function isPaginationable()
164 164
     {
165
-        return ! is_null($this->get('start')) && ! is_null($this->get('length')) && $this->get('length') != -1;
165
+        return !is_null($this->get('start')) && !is_null($this->get('length')) && $this->get('length') != -1;
166 166
     }
167 167
 }
Please login to merge, or discard this patch.
src/Services/DataTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      */
69 69
     public function render($view, $data = [], $mergeData = [])
70 70
     {
71
-        if ($this->request()->ajax() &&  $this->request()->wantsJson()) {
71
+        if ($this->request()->ajax() && $this->request()->wantsJson()) {
72 72
             return $this->ajax();
73 73
         }
74 74
 
Please login to merge, or discard this patch.