The class CustomerController has an overall complexity of 53 which is very high. The configured complexity threshold is 50. Open
class CustomerController
{
/**
* @var VindiSettings
- Exclude checks
Method update
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
function update($user_id, $order = null)
{
$vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);
// Check meta Vindi ID
if (empty($vindi_customer_id)) {
Function update
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
function update($user_id, $order = null)
{
$vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);
// Check meta Vindi ID
if (empty($vindi_customer_id)) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method create
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
function create($user_id, $order = null)
{
$customer = new WC_Customer($user_id);
Function create
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
function create($user_id, $order = null)
{
$customer = new WC_Customer($user_id);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
The method update() has an NPath complexity of 3538944. The configured NPath complexity threshold is 200. Open
function update($user_id, $order = null)
{
$vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);
// Check meta Vindi ID
if (empty($vindi_customer_id)) {
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
The method create() has an NPath complexity of 589824. The configured NPath complexity threshold is 200. Open
function create($user_id, $order = null)
{
$customer = new WC_Customer($user_id);
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
The method update() has a Cyclomatic Complexity of 26. The configured cyclomatic complexity threshold is 10. Open
function update($user_id, $order = null)
{
$vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);
// Check meta Vindi ID
if (empty($vindi_customer_id)) {
- Read upRead up
- Exclude checks
CyclomaticComplexity
Since: 0.1
Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.
Example
// Cyclomatic Complexity = 11
class Foo {
1 public function example() {
2 if ($a == $b) {
3 if ($a1 == $b1) {
fiddle();
4 } elseif ($a2 == $b2) {
fiddle();
} else {
fiddle();
}
5 } elseif ($c == $d) {
6 while ($c == $d) {
fiddle();
}
7 } elseif ($e == $f) {
8 for ($n = 0; $n < $h; $n++) {
fiddle();
}
} else {
switch ($z) {
9 case 1:
fiddle();
break;
10 case 2:
fiddle();
break;
11 case 3:
fiddle();
break;
default:
fiddle();
break;
}
}
}
}
Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity
The method create() has a Cyclomatic Complexity of 23. The configured cyclomatic complexity threshold is 10. Open
function create($user_id, $order = null)
{
$customer = new WC_Customer($user_id);
- Read upRead up
- Exclude checks
CyclomaticComplexity
Since: 0.1
Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.
Example
// Cyclomatic Complexity = 11
class Foo {
1 public function example() {
2 if ($a == $b) {
3 if ($a1 == $b1) {
fiddle();
4 } elseif ($a2 == $b2) {
fiddle();
} else {
fiddle();
}
5 } elseif ($c == $d) {
6 while ($c == $d) {
fiddle();
}
7 } elseif ($e == $f) {
8 for ($n = 0; $n < $h; $n++) {
fiddle();
}
} else {
switch ($z) {
9 case 1:
fiddle();
break;
10 case 2:
fiddle();
break;
11 case 3:
fiddle();
break;
default:
fiddle();
break;
}
}
}
}
Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity
The method create uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Pessoa física
$cpf_or_cnpj = $order->get_meta('_billing_cpf');
$notes = '';
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method update uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Pessoa física
$cpf_or_cnpj = $order->get_meta('_billing_cpf');
$this->vindi_settings->logger->log(sprintf('Order cpf -> %s', $cpf_or_cnpj));
$this->vindi_settings->logger->log(sprintf('Customer cpf -> %s', $customer->get_meta('billing_cpf')));
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The property $vindi_settings is not named in camelCase. Open
class CustomerController
{
/**
* @var VindiSettings
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
Visibility must be declared on method "create" Open
function create($user_id, $order = null)
- Exclude checks
Visibility must be declared on method "update" Open
function update($user_id, $order = null)
- Exclude checks
Blank line found at start of control structure Open
if (!$vindiUser) {
- Exclude checks
Visibility must be declared on method "__construct" Open
function __construct(VindiSettings $vindi_settings)
- Exclude checks
Blank line found at start of control structure Open
if (empty($vindi_customer_id)) {
- Exclude checks
Blank line found at start of control structure Open
if (empty($vindi_customer_id)) {
- Exclude checks
Visibility must be declared on method "delete" Open
function delete($user_id)
- Exclude checks
Blank line found at start of control structure Open
if (!$vindiUser) {
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
'neighborhood' => ($customer->get_meta('billing_neighborhood')) ? $customer->get_meta('billing_neighborhood') : '',
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
'neighborhood' => ($customer->get_meta('billing_neighborhood')) ? $customer->get_meta('billing_neighborhood') : '',
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
function create($user_id, $order = null)
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$metadata = array();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if (empty($vindi_customer_id)) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
'phone_type' => 'mobile',
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$notes = sprintf('Nome: %s %s', $order->get_billing_first_name(), $order->get_billing_last_name());
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$customer = new WC_Customer($user_id);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$phones[] = array(
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
'number' => preg_replace('/\D+/', '', '55' . $customer->get_meta('billing_cellphone'))
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$cpf_or_cnpj = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
function update($user_id, $order = null)
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 10 Open
$metadata['inscricao_estadual'] = $order->get_meta('_billing_ie');
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 8 Open
if ($this->vindi_settings->send_nfe_information()) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$notes = null;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$cpf_or_cnpj = $order->get_meta('_billing_cnpj');
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
{
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
private $vindi_settings;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
add_action('user_register', array($this, 'create'), 10, 1);
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$cpf_or_cnpj = null;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$notes = sprintf('Nome: %s %s', $order->get_billing_first_name(), $order->get_billing_last_name());
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 10 Open
$metadata['carteira_de_identidade'] = $order->get_meta('_billing_rg');
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$vindiUser = $this->routes->findCustomerById($vindi_customer_id);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$vindi_phones[$phone['phone_type']] = $phone['id'];
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 6 Open
} else {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$notes = '';
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 6 Open
}
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$notes = '';
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 4 Open
return $createdUser;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 6 Open
);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
'number' => preg_replace('/\D+/', '', '55' . $customer->get_billing_phone())
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
'number' => preg_replace('/\D+/', '', '55' . $customer->get_meta('billing_cellphone'))
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$phones[] = array(
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($order && method_exists($order, 'needs_payment')) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$customer = new WC_Customer($user_id);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$phones = $vindi_phones = [];
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$landline = array(
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 6 Open
$phones[] = $landline;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$notes = null;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$this->vindi_settings->logger->log(sprintf('Customer cpf -> %s', $customer->get_meta('billing_cpf')));
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 10 Open
$metadata['carteira_de_identidade'] = $order->get_meta('_billing_rg');
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$this->vindi_settings->logger->log(sprintf('Order rg -> %s', $order->get_meta('_billing_rg')));
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
$vindi_customer_id,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
private $routes;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
add_action('woocommerce_customer_save_address', array($this, 'update'), 10, 1);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 10 Open
$metadata['inscricao_estadual'] = $order->get_meta('_billing_ie');
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
array(
- Exclude checks
Line indented incorrectly; expected at least 10 spaces, found 4 Open
);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($customer->get_meta('billing_cellphone')) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$mobile = array(
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$metadata = array();
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$user = $customer->get_data();
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 6 Open
if ('2' === $order->get_meta('_billing_persontype')) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$name = $order->get_billing_company();
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 8 Open
}
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
array(
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$cpf_or_cnpj = $order->get_meta('_billing_cnpj');
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
add_action('delete_user', array($this, 'delete'), 10, 1);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
'phone_type' => 'landline',
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
'number' => preg_replace('/\D+/', '', '55' . $customer->get_billing_phone())
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 6 Open
);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$createdUser = $this->routes->createCustomer(
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
)
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 10 Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$cpf_or_cnpj = $order->get_meta('_billing_cpf');
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
add_action('woocommerce_save_account_details', array($this, 'update'), 10, 1);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 8 Open
if ($this->vindi_settings->send_nfe_information()) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$this->vindi_settings->logger->log(sprintf('Order cpf -> %s', $cpf_or_cnpj));
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$this->vindi_settings = $vindi_settings;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 6 Open
} else {
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 8 Open
if ($this->vindi_settings->send_nfe_information()) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
)
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
return $this->create($user_id, $order);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
'phone_type' => 'landline',
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$name = (!$user['first_name']) ? $user['display_name'] : $user['first_name'] . ' ' . $user['last_name'];
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$metadata = null;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
return $this->create($user_id);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
function __construct(VindiSettings $vindi_settings)
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 6 Open
);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($customer->get_billing_phone()) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$cpf_or_cnpj = $order->get_meta('_billing_cpf');
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 6 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 6 Open
$phones[] = $mobile;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$name = (!$user['first_name']) ? $user['display_name'] : $user['first_name'] . ' ' . $user['last_name'];
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($order && method_exists($order, 'needs_payment')) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$updatedUser = $this->routes->updateCustomer(
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($customer->get_meta('billing_cellphone')) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
foreach ($vindiUser['phones'] as $phone) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 6 Open
);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$metadata = null;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 8 Open
if ($this->vindi_settings->send_nfe_information()) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$this->routes = $vindi_settings->routes;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$phones = [];
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
'phone_type' => 'mobile',
- Exclude checks
Line indented incorrectly; expected at least 14 spaces, found 12 Open
update_user_meta($user_id, 'vindi_customer_id', $createdUser['id']);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if (!$vindiUser) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$user = $customer->get_data();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($customer->get_billing_phone()) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 6 Open
if ('2' === $order->get_meta('_billing_persontype')) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
$name = $order->get_billing_company();
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
)
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
)
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
$vindi_customer_id
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
return;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$deletedUser = $this->routes->deleteCustomer(
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
$vindi_customer_id,
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if (!$vindiUser) {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
function delete($user_id)
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
$vindi_customer_id
- Exclude checks
Line indented incorrectly; expected at least 10 spaces, found 4 Open
);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
return;
- Exclude checks
Line indented incorrectly; expected at least 10 spaces, found 4 Open
);
- Exclude checks
Line indented incorrectly; expected at least 10 spaces, found 4 Open
return $updatedUser;
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
array(
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if (empty($vindi_customer_id)) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
array(
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$vindi_customer_id = get_user_meta($user_id, 'vindi_customer_id', true);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$vindiUser = $this->routes->findCustomerById($vindi_customer_id);
- Exclude checks
Line indented incorrectly; expected at least 10 spaces, found 4 Open
return $deletedUser;
- Exclude checks