CurrenciesRepository   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getModel() 0 4 1
A getPublic() 0 6 1
1
<?php
2
3
namespace App\Repositories;
4
5
use App\Currency;
6
7
class CurrenciesRepository extends Repository
8
{
9
    /**
10
     * @return Currency
11
     */
12
    public function getModel()
13
    {
14
        return new Currency();
15
    }
16
17
    /**
18
     * @return mixed
19
     */
20
    public function getPublic()
21
    {
22
        return self::getModel()
0 ignored issues
show
Bug introduced by
The method active() does not exist on App\Currency. Did you maybe mean scopeActive()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
23
            ->active()
24
            ->get();
25
    }
26
}