PriceData::getAll()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 10
Ratio 100 %

Importance

Changes 0
Metric Value
dl 10
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the Betfair library.
4
 *
5
 * (c) Daniele D'Angeli <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Betfair\Model;
11
12
abstract class PriceData
13
{
14
    const SP_AVAILABLE = "SP_AVAILABLE";
15
    const SP_TRADED = "SP_TRADED";
16
    const EX_BEST_OFFERS = "EX_BEST_OFFERS";
17
    const EX_ALL_OFFERS = "EX_ALL_OFFERS";
18
    const EX_TRADED = "EX_TRADED";
19
20 View Code Duplication
    public static function getAll()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
21
    {
22
        return array(
23
            self::SP_AVAILABLE,
24
            self::SP_TRADED,
25
            self::EX_BEST_OFFERS,
26
            self::EX_ALL_OFFERS,
27
            self::EX_TRADED,
28
        );
29
    }
30
}
31