CurrenciesRepository::getPublic()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
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
}