src/torro-forms.php
File torro-forms.php
has 419 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Plugin main class
*
* @package TorroForms
Method instantiate_db_object_managers
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function instantiate_db_object_managers() {
$this->forms = $this->instantiate_plugin_service(
'DB_Objects\Forms\Form_Manager',
$this->prefix,
array(
Torro_Forms
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Torro_Forms extends Leaves_And_Love_Plugin {
/**
* The forms manager instance.
*
Method instantiate_core_services
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function instantiate_core_services() {
call_user_func( array( 'Leaves_And_Love\Plugin_Lib\Fields\Field_Manager', 'set_translations' ), $this->instantiate_plugin_class( 'Translations\Translations_Field_Manager' ) );
$this->error_handler = $this->instantiate_plugin_service( 'Error_Handler', $this->prefix, $this->instantiate_plugin_class( 'Translations\Translations_Error_Handler' ) );
Method instantiate_component_services
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function instantiate_component_services() {
$this->admin_pages = $this->instantiate_library_service(
'Components\Admin_Pages',
$this->prefix,
array(
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return true;