@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | public function setClassRow($datatable) |
119 | 119 | { |
120 | 120 | //DT_RowClass |
121 | - $datatable->setRowClass(function ($row) { |
|
121 | + $datatable->setRowClass(function($row) { |
|
122 | 122 | return (isset($row->status) && empty($row->status)) ? 'danger' : ''; |
123 | 123 | }); |
124 | 124 | |
@@ -131,8 +131,8 @@ discard block |
||
131 | 131 | return view($template, [ |
132 | 132 | 'colomns_display' => $this->colomnsDisplay, |
133 | 133 | 'datatable_options' => $this->addOptions(), |
134 | - 'id' => strtolower(str_replace('\\','_',get_class($this))), |
|
135 | - 'route' => !empty($route) ? $route : $this->getControllerNameForAction() . '@getDatatable', |
|
134 | + 'id' => strtolower(str_replace('\\', '_', get_class($this))), |
|
135 | + 'route' => !empty($route) ? $route : $this->getControllerNameForAction().'@getDatatable', |
|
136 | 136 | 'filters' => $this->addFilter(), |
137 | 137 | ]); |
138 | 138 | } |
@@ -143,10 +143,10 @@ discard block |
||
143 | 143 | |
144 | 144 | $reflection = new ReflectionClass(get_class($this)); |
145 | 145 | |
146 | - $this->add('actions', function ($model) use ($template, $reflection, $route) { |
|
146 | + $this->add('actions', function($model) use ($template, $reflection, $route) { |
|
147 | 147 | return view($template, [ |
148 | 148 | 'data' => $model->toArray(), |
149 | - 'route' => !empty($route) ? $route . '@' : $this->getControllerNameForAction() . '@' |
|
149 | + 'route' => !empty($route) ? $route.'@' : $this->getControllerNameForAction().'@' |
|
150 | 150 | ])->render(); |
151 | 151 | }); |
152 | 152 | } |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | |
209 | 209 | $action = explode('@', \Route::currentRouteAction()); |
210 | 210 | |
211 | - return '\\' . $action[0]; |
|
211 | + return '\\'.$action[0]; |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | // ------------------------------------------------------------------------------------------------ |