AccountFunds   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 11
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAccountFunds() 6 6 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
3
namespace Betfair\AccountApi;
4
5
use Betfair\AbstractBetfair;
6
use Betfair\BetfairActionType;
7
8 View Code Duplication
class AccountFunds extends AbstractBetfair
9
{
10
    const API_METHOD_NAME = "getAccountFunds";
11
12
    public function getAccountFunds()
13
    {
14
        $param = $this->createParam();
15
16
        return $this->executeCustomQuery($param, self::API_METHOD_NAME, BetfairActionType::ACCOUNT);
17
    }
18
}
19