src/HtmlProvider.php
Method boot
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function boot()
{
$this->publishes([
__DIR__ . '/../config/html.php' => base_path('config/html.php'),
]);
Avoid too many return
statements within this method. Open
Open
return "<?php echo \Illuminate\Support\Str::of($expression)->replace('_', ' ')->title(); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo \Illuminate\Support\Str::of($expression)->replace('_', ' ')->limit(40); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo \Illuminate\Support\Str::of($expression)->replace('_', ' ')->headline(); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo \Illuminate\Support\Str::of($expression)->replace('_', ' ')->plural(); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo \Illuminate\Support\Str::of($expression)->replace('_', ' ')->singular(); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo ($params[0]) ? $params[1] : ''; ?>";