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.
Passed
Push — master ( 37b02e...ebbbe1 )
by James
08:59
created

app/Services/Bunq/Object/ServerPublicKey.php (1 issue)

1
<?php
2
/**
3
 * ServerPublicKey.php
4
 * Copyright (c) 2017 [email protected]
5
 *
6
 * This file is part of Firefly III.
7
 *
8
 * Firefly III is free software: you can redistribute it and/or modify
9
 * it under the terms of the GNU General Public License as published by
10
 * the Free Software Foundation, either version 3 of the License, or
11
 * (at your option) any later version.
12
 *
13
 * Firefly III 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 General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
20
 */
21
declare(strict_types=1);
22
23
namespace FireflyIII\Services\Bunq\Object;
24
25
/**
26
 * Class ServerPublicKey.
27
 */
28
class ServerPublicKey extends BunqObject
29
{
30
    /** @var string */
31
    private $publicKey;
32
33
    /**
34
     * ServerPublicKey constructor.
35
     *
36
     * @param array $response
37
     */
38
    public function __construct(array $response)
39
    {
40
        $this->publicKey = $response['server_public_key'];
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getPublicKey(): string
47
    {
48
        return $this->publicKey;
49
    }
50
51
    /**
52
     * @param string $publicKey
53
     */
54
    public function setPublicKey(string $publicKey)
55
    {
56
        $this->publicKey = $publicKey;
57
    }
58
59
    /**
60
     * @return array
61
     */
62
    public function toArray(): array
63
    {
64
        die(sprintf('Cannot convert %s to array.', get_class($this)));
0 ignored issues
show
Using exit here is not recommended.

In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.

Loading history...
65
    }
66
}
67