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
13:31 queued 06:07
created

UrlShortenerManager::client()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
namespace LaraCrafts\UrlShortener;
4
5
use Illuminate\Support\Manager;
6
use LaraCrafts\UrlShortener\Contracts\Factory;
7
8
class UrlShortenerManager extends Manager implements Factory
9
{
10
    /**
11
     * {@inheritDoc}
12
     */
13
    public function client(string $name = null)
14
    {
15
        return $this->driver($name);
16
    }
17
18
    /**
19
     * {@inheritDoc}
20
     */
21
    public function getDefaultDriver()
22
    {
23
        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

23
        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...
24
    }
25
26
    /**
27
     * Set the default URL shortening driver name.
28
     *
29
     * @param string $name
30
     * @return void
31
     */
32
    public function setDefaultDriver(string $name)
33
    {
34
        $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

34
        /** @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...
35
    }
36
}
37