Showing 5 of 13 total issues
Customer
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Customer extends AbstractResource{ use CreateTrait; use AllTrait; use GetTrait;
File Customer.php
has 253 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php namespace ChartMogul; use ChartMogul\Resource\AbstractResource;
Method handleResponse
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handleResponse(ResponseInterface $response) { $response->getBody()->rewind(); $data = json_decode($response->getBody()->getContents(), true); switch ($response->getStatusCode()) {
Method unmerge
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function unmerge($customer_uuid, $external_id, $data_source_uuid, array $move_to_new_customer = [], ?ClientInterface $client = null)
Function allData
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function allData(array $data, Collection $array) { if (isset($data["current_page"])) { $array->current_page = $data["current_page"]; }
- Read upRead up