Completed
Branch master (6728e1)
by Arjay
03:23 queued 01:26
created
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/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/fallback.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('config_path')) {
3
+if (!function_exists('config_path')) {
4 4
     /**
5 5
      * Get the configuration path.
6 6
      *
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     }
14 14
 }
15 15
 
16
-if (! function_exists('public_path')) {
16
+if (!function_exists('public_path')) {
17 17
     /**
18 18
      * Return the path to public dir
19 19
      *
Please login to merge, or discard this patch.
src/Engines/BaseEngine.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -770,7 +770,7 @@
 block discarded – undo
770 770
      * Get column name by order column index.
771 771
      *
772 772
      * @param int $index
773
-     * @return mixed
773
+     * @return boolean|string
774 774
      */
775 775
     protected function getColumnNameByIndex($index)
776 776
     {
Please login to merge, or discard this patch.
src/Request.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * Check if Datatables must uses regular expressions
42 42
      *
43 43
      * @param integer $index
44
-     * @return string
44
+     * @return boolean
45 45
      */
46 46
     public function isRegex($index)
47 47
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function checkLegacyCode()
77 77
     {
78
-        if (! $this->request->input('draw') && $this->request->input('sEcho')) {
78
+        if (!$this->request->input('draw') && $this->request->input('sEcho')) {
79 79
             throw new Exception('DataTables legacy code is not supported! Please use DataTables 1.10++ coding convention.');
80
-        } elseif (! $this->request->input('draw') && ! $this->request->input('columns')) {
80
+        } elseif (!$this->request->input('draw') && !$this->request->input('columns')) {
81 81
             throw new Exception('Insufficient parameters');
82 82
         }
83 83
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function orderableColumns()
112 112
     {
113
-        if (! $this->isOrderable()) {
113
+        if (!$this->isOrderable()) {
114 114
             return [];
115 115
         }
116 116
 
@@ -221,6 +221,6 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public function isPaginationable()
223 223
     {
224
-        return ! is_null($this->request->input('start')) && ! is_null($this->request->input('length')) && $this->request->input('length') != -1;
224
+        return !is_null($this->request->input('start')) && !is_null($this->request->input('length')) && $this->request->input('length') != -1;
225 225
     }
226 226
 }
Please login to merge, or discard this patch.
src/Engines/QueryBuilderEngine.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -580,7 +580,7 @@
 block discarded – undo
580 580
      * Compile queries for column search.
581 581
      *
582 582
      * @param int $i
583
-     * @param mixed $column
583
+     * @param string $column
584 584
      * @param string $keyword
585 585
      */
586 586
     protected function compileColumnSearch($i, $column, $keyword)
Please login to merge, or discard this patch.
src/Datatables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
      */
113 113
     public function getHtmlBuilder()
114 114
     {
115
-        if (! class_exists('\Yajra\Datatables\Html\Builder')) {
115
+        if (!class_exists('\Yajra\Datatables\Html\Builder')) {
116 116
             throw new \Exception('Please install yajra/laravel-datatables-html to be able to use this function.');
117 117
         }
118 118
 
Please login to merge, or discard this patch.
src/Processors/DataProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
     {
238 238
         $arrayDot = array_filter(array_dot($row));
239 239
         foreach ($arrayDot as $key => $value) {
240
-            if (! in_array($key, $this->rawColumns)) {
240
+            if (!in_array($key, $this->rawColumns)) {
241 241
                 $arrayDot[$key] = e($value);
242 242
             }
243 243
         }
Please login to merge, or discard this patch.
src/Engines/CollectionEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 
190 190
                 foreach ($this->request->searchableColumnIndex() as $index) {
191 191
                     $column = $this->getColumnName($index);
192
-                    if (! $value = Arr::get($data, $column)) {
192
+                    if (!$value = Arr::get($data, $column)) {
193 193
                         continue;
194 194
                     }
195 195
                     
Please login to merge, or discard this patch.