Showing 28 of 87 total issues
Method setup
has 401 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setup()
{
return $this->_setupContainer(
$this->_loadPhpConfigFile(RCMOD_EDDBK_REST_API_CONFIG_FILE),
[
File EddBkRestApiModule.php
has 500 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace RebelCode\EddBookings\RestApi\Module;
use ArrayIterator;
File BookingsController.php
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace RebelCode\EddBookings\RestApi\Controller;
use Dhii\Data\Container\ContainerSetCapableTrait;
Method _getUpdateParamFieldMapping
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _getUpdateParamFieldMapping()
{
return [
'start' => [
'field' => 'start',
AbstractBaseCqrsController
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class AbstractBaseCqrsController extends AbstractBaseController implements ControllerInterface
{
/* @since [*next-version*] */
use ContainerGetCapableTrait;
Method _getAvailabilityRuleMapConfig
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _getAvailabilityRuleMapConfig()
{
return [
[
MapTransformer::K_SOURCE => 'id',
Method _getServiceDataParamMapping
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _getServiceDataParamMapping()
{
return [
'id' => [
'field' => 'id',
File AbstractBaseCqrsController.php
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace RebelCode\EddBookings\RestApi\Controller;
use ArrayAccess;
Method _getSelectConditionParamMapping
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _getSelectConditionParamMapping()
{
return [
'id' => [
'compare' => 'eq',
Method _getBookingMapConfig
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _getBookingMapConfig()
{
return [
[
MapTransformer::K_SOURCE => 'id',
Method _getInsertParamFieldMapping
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _getInsertParamFieldMapping()
{
return [
'start' => [
'field' => 'start',
Method _getResourceDataParamMapping
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _getResourceDataParamMapping()
{
return [
'id' => [
'field' => 'id',
Method _getServiceMapConfig
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _getServiceMapConfig()
{
return [
[
MapTransformer::K_SOURCE => 'id',
Method _getSelectConditionParamMapping
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _getSelectConditionParamMapping()
{
return [
'id' => [
'compare' => 'eq',
Method _post
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _post($params = [])
{
// Create state-aware booking from params
$booking = $this->stateAwareFactory->make([
StateAwareFactoryInterface::K_DATA => $this->_buildInsertRecord($params),
Method _buildInsertRecord
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _buildInsertRecord($params)
{
$recordData = [];
foreach ($this->_getInsertParamFieldMapping() as $_param => $_mapping) {
Method _patch
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _patch($params = [])
{
try {
$id = $this->_containerGet($params, 'id');
} catch (NotFoundExceptionInterface $exception) {
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$key,
$dependencies,
$configFactory,
$containerFactory,
$compContainerFactory,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
FactoryInterface $iteratorFactory,
StateAwareFactoryInterface $bookingFactory,
TransitionerInterface $bookingTransitioner,
SelectCapableInterface $selectRm,
EntityManagerInterface $entityManager,
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$iteratorFactory,
$selectRm,
$ordering,
$exprBuilder,
$defaultNumPerPage,