Record   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 19
ccs 0
cts 5
cp 0
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __call() 0 8 2
1
<?php
2
3
namespace Nip\Records;
4
5
use Nip\Records\Traits\Relations\HasRelationsRecordTrait;
6
7
/**
8
 * Class Record
9
 * @package Nip\Records
10
 */
11
class Record extends AbstractModels\Record
12
{
13
    use HasRelationsRecordTrait;
14
15
    /**
16
     * Overloads Ucfirst() helper
17
     *
18
     * @param string $name
19
     * @param array $arguments
20
     * @return mixed
21
     */
22
    public function __call($name, $arguments)
23
    {
24
        $return = $this->isCallRelationOperation($name, $arguments);
25
        if ($return !== false) {
0 ignored issues
show
introduced by
The condition $return !== false is always true.
Loading history...
26
            return $return;
27
        }
28
29
        return parent::__call($name, $arguments);
30
    }
31
}
32