Skip to content

Commit dc3cf5b

Browse files
committed
StyleCI
1 parent e5eaa92 commit dc3cf5b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/DataTableAbstract.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ public function escapeColumns($columns = '*')
254254
*/
255255
public function makeHidden(array $attributes = [])
256256
{
257-
258257
$this->columnDef['make_hidden'] = array_merge_recursive($this->columnDef['make_hidden'] ?: [], $attributes);
259258

260259
return $this;

src/Utilities/Helper.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static function getMixedValue(array $data, $param)
120120
public static function castToArray($param)
121121
{
122122
if ($param instanceof \stdClass) {
123-
$param = (array)$param;
123+
$param = (array) $param;
124124

125125
return $param;
126126
}
@@ -140,7 +140,7 @@ public static function castToArray($param)
140140
*/
141141
public static function getOrMethod($method)
142142
{
143-
if (!Str::contains(Str::lower($method), 'or')) {
143+
if (! Str::contains(Str::lower($method), 'or')) {
144144
return 'or' . ucfirst($method);
145145
}
146146

@@ -157,7 +157,7 @@ public static function getOrMethod($method)
157157
public static function convertToArray($row, $filters = [])
158158
{
159159
$row = method_exists($row, 'makeHidden') ? $row->makeHidden($filters['make_hidden']) : $row;
160-
$data = $row instanceof Arrayable ? $row->toArray() : (array)$row;
160+
$data = $row instanceof Arrayable ? $row->toArray() : (array) $row;
161161

162162
foreach ($data as &$value) {
163163
if (is_object($value) || is_array($value)) {
@@ -194,7 +194,7 @@ protected static function transformRow($row)
194194
$row[$key] = $value->format('Y-m-d H:i:s');
195195
} else {
196196
if (is_object($value)) {
197-
$row[$key] = (string)$value;
197+
$row[$key] = (string) $value;
198198
} else {
199199
$row[$key] = $value;
200200
}
@@ -261,7 +261,7 @@ public static function extractColumnName($str, $wantsAlias)
261261
{
262262
$matches = explode(' as ', Str::lower($str));
263263

264-
if (!empty($matches)) {
264+
if (! empty($matches)) {
265265
if ($wantsAlias) {
266266
return array_pop($matches);
267267
}

0 commit comments

Comments
 (0)