@@ -11,7 +11,7 @@ |
||
| 11 | 11 | $array = explode(',', $parameter); |
| 12 | 12 | $oldValue = trim($array[0]); |
| 13 | 13 | $secondParam = trim(@$array[1]); |
| 14 | - if($secondParam){ |
|
| 14 | + if ($secondParam) { |
|
| 15 | 15 | return "<?php echo old({$oldValue}, {$secondParam}) ?>"; |
| 16 | 16 | } |
| 17 | 17 | return "<?php echo old({$oldValue}) ?>"; |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | $array = explode(',', $parameter); |
| 14 | 14 | $url = asset(trim($array[0])); |
| 15 | 15 | $defer = trim(@$array[1]) ?? null; |
| 16 | - if($defer) { |
|
| 16 | + if ($defer) { |
|
| 17 | 17 | return "<script src='{$url}' defer></script>"; |
| 18 | 18 | } |
| 19 | 19 | return "<script src='{$url}'></script>"; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | public static function render($list, $type = 'active', $else = '') |
| 18 | 18 | { |
| 19 | - if(is_array($list)){ |
|
| 19 | + if (is_array($list)) { |
|
| 20 | 20 | return (in_array(Route::getCurrentRoute()->getName(), $list)) ? $type : $else; |
| 21 | 21 | } |
| 22 | 22 | return (Route::getCurrentRoute()->getName() == $list) ? $type : $else; |