src/GrafiteCmsProvider.php
Method boot
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function boot()
{
$this->publishes([
__DIR__.'/PublishedAssets/Views/themes' => base_path('resources/themes'),
__DIR__.'/PublishedAssets/Controllers' => app_path('Http/Controllers/Cms'),
Avoid too many return
statements within this method. Open
Open
return "<?php echo Cms::editBtnSecondary($expression); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo Markdown::convertToHtml($expression); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo Cms::moduleLinks($expression); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo Cms::promotion($expression); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo Cms::image($expression); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo Cms::images($expression); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo Cms::imageLink($expression); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo Cms::widget($expression); ?>";
Avoid too many return
statements within this method. Open
Open
return "<?php echo Cms::editBtn($expression); ?>";