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.
Completed
Pull Request — master (#38)
by Choraimy
08:23
created

UrlShortenerManager::createIsGdDriver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 6
ccs 0
cts 5
cp 0
crap 2
rs 10
1
<?php
2
3
namespace LaraCrafts\UrlShortener;
4
5
use Illuminate\Support\Manager;
6
7
class UrlShortenerManager extends Manager
8
{
9
    /**
10
     * {@inheritDoc}
11
     */
12
    public function getDefaultDriver()
13
    {
14
        return $this->app['config']['url-shortener.default'];
0 ignored issues
show
Deprecated Code introduced by
The property Illuminate\Support\Manager::$app has been deprecated: Use the $container property instead. ( Ignorable by Annotation )

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

14
        return /** @scrutinizer ignore-deprecated */ $this->app['config']['url-shortener.default'];

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

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

Loading history...
15
    }
16
17
    /**
18
     * Set the default URL shortening driver name.
19
     *
20
     * @param string $name
21
     * @return void
22
     */
23
    public function setDefaultDriver(string $name)
24
    {
25
        $this->app['config']['session.driver'] = $name;
0 ignored issues
show
Deprecated Code introduced by
The property Illuminate\Support\Manager::$app has been deprecated: Use the $container property instead. ( Ignorable by Annotation )

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

25
        /** @scrutinizer ignore-deprecated */ $this->app['config']['session.driver'] = $name;

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

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

Loading history...
26
    }
27
}
28