Skip to content

Commit 2f03689

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent df87480 commit 2f03689

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/app/Library/CrudPanel/Traits/FieldsProtectedMethods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ protected function makeSureSubfieldsHaveNecessaryAttributes($field)
258258
return $field;
259259
}
260260

261-
if(! is_multidimensional_array($field['subfields'], true)) {
261+
if (! is_multidimensional_array($field['subfields'], true)) {
262262
abort(500, 'Subfields of «'.$field['name'].'» are malformed. Make sure you provide an array of subfields.');
263263
}
264264

src/helpers.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,22 +366,23 @@ function old_empty_or_null($key, $empty_value = '')
366366
if (! function_exists('is_multidimensional_array')) {
367367
/**
368368
* Check if the array is multidimensional.
369-
*
370-
* If $strict is enabled, the array is considered multidimensional only if all elements of the array are arrays.
369+
*
370+
* If $strict is enabled, the array is considered multidimensional only if all elements of the array are arrays.
371371
*/
372372
function is_multidimensional_array(array $array, bool $strict = false): bool
373373
{
374374
foreach ($array as $item) {
375-
if($strict) {
375+
if ($strict) {
376376
if (! is_array($item)) {
377377
return false;
378378
}
379-
}else{
379+
} else {
380380
if (is_array($item)) {
381381
return true;
382382
}
383383
}
384384
}
385+
385386
return $strict;
386387
}
387388
}

0 commit comments

Comments
 (0)