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
Push — feature/tweak ( 28e05b )
by jake
02:03
created

Container::newViewHelper()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
// @codingStandardsIgnoreFile
3
4
5
namespace Jnjxp\Molniya;
6
7
class Container
8
{
9
    protected $storage;
10
11
    public function getStorage() : StorageInterface
12
    {
13
        if (! $this->storage) {
14
            $this->storage = new Session\Storage;
15
        }
16
        return $this->storage;
17
    }
18
19
    public function newMessageHandler() : MessageHandler
20
    {
21
        $storage = $this->getStorage();
22
        return new MessageHandler($storage);
23
    }
24
25
    public function newViewHelper() : View\Helper
26
    {
27
        $storage = $this->getStorage();
28
        return new View\Helper($storage);
29
    }
30
31
}
32