@@ -120,7 +120,7 @@ public static function getMixedValue(array $data, $param)
120
120
public static function castToArray ($ param )
121
121
{
122
122
if ($ param instanceof \stdClass) {
123
- $ param = (array )$ param ;
123
+ $ param = (array ) $ param ;
124
124
125
125
return $ param ;
126
126
}
@@ -140,7 +140,7 @@ public static function castToArray($param)
140
140
*/
141
141
public static function getOrMethod ($ method )
142
142
{
143
- if (!Str::contains (Str::lower ($ method ), 'or ' )) {
143
+ if (! Str::contains (Str::lower ($ method ), 'or ' )) {
144
144
return 'or ' . ucfirst ($ method );
145
145
}
146
146
@@ -157,7 +157,7 @@ public static function getOrMethod($method)
157
157
public static function convertToArray ($ row , $ filters = [])
158
158
{
159
159
$ 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 ;
161
161
162
162
foreach ($ data as &$ value ) {
163
163
if (is_object ($ value ) || is_array ($ value )) {
@@ -194,7 +194,7 @@ protected static function transformRow($row)
194
194
$ row [$ key ] = $ value ->format ('Y-m-d H:i:s ' );
195
195
} else {
196
196
if (is_object ($ value )) {
197
- $ row [$ key ] = (string )$ value ;
197
+ $ row [$ key ] = (string ) $ value ;
198
198
} else {
199
199
$ row [$ key ] = $ value ;
200
200
}
@@ -261,7 +261,7 @@ public static function extractColumnName($str, $wantsAlias)
261
261
{
262
262
$ matches = explode (' as ' , Str::lower ($ str ));
263
263
264
- if (!empty ($ matches )) {
264
+ if (! empty ($ matches )) {
265
265
if ($ wantsAlias ) {
266
266
return array_pop ($ matches );
267
267
}
0 commit comments