GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (724)

app/Import/Converter/AmountCredit.php (1 issue)

Severity
1
<?php
2
/**
3
 * AmountCredit.php
4
 * Copyright (c) 2019 [email protected]
5
 *
6
 * This file is part of Firefly III (https://github.com/firefly-iii).
7
 *
8
 * This program is free software: you can redistribute it and/or modify
9
 * it under the terms of the GNU Affero General Public License as
10
 * published by the Free Software Foundation, either version 3 of the
11
 * License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU Affero General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU Affero General Public License
19
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
 */
21
declare(strict_types=1);
22
23
namespace FireflyIII\Import\Converter;
24
25
/**
26
 * Class AmountCredit
27
 *
28
 * @deprecated
29
 * @codeCoverageIgnore
30
 */
31
class AmountCredit implements ConverterInterface
0 ignored issues
show
Deprecated Code introduced by
The interface FireflyIII\Import\Converter\ConverterInterface has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

31
class AmountCredit implements /** @scrutinizer ignore-deprecated */ ConverterInterface

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
32
{
33
    /**
34
     * Convert an amount, always return positive.
35
     *
36
     * @param $value
37
     *
38
     * @return string
39
     */
40
    public function convert($value): string
41
    {
42
        /** @var ConverterInterface $converter */
43
        $converter = app(Amount::class);
44
        $result    = $converter->convert($value);
45
        $result    = app('steam')->positive($result);
46
47
        return $result;
48
    }
49
}
50