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 (#206)
by Jeroen
02:07
created

AbstractDriver::configureQueueOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
namespace Bernard\Driver;
4
5
use Bernard\Driver;
6
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
7
use Symfony\Component\OptionsResolver\OptionsResolver;
8
9
abstract class AbstractDriver implements Driver
10
{
11
    /**
12
     * Validate queue options
13
     *
14
     * @param array $options
15
     *
16
     * @return array
17
     * @throws InvalidOptionsException
18
     */
19
    final public function validateQueueOptions(array $options)
20
    {
21
        $resolver = new OptionsResolver();
22
        $this->configureQueueOptions($resolver);
23
24
        return $resolver->resolve($options);
25
    }
26
27
    /**
28
     * Validate queue options
29
     *
30
     * @param array $options
31
     *
32
     * @return array
33
     * @throws InvalidOptionsException
34
     */
35
    final public function validatePushOptions(array $options)
36
    {
37
        $resolver = new OptionsResolver();
38
        $this->configurePushOptions($resolver);
39
40
        return $resolver->resolve($options);
41
    }
42
43
    /**
44
     * Configure createQueue options
45
     *
46
     * @param OptionsResolver $resolver
47
     */
48
    public function configureQueueOptions(OptionsResolver $resolver)
49
    {
50
    }
51
52
    /**
53
     * Configure push message options
54
     *
55
     * @param OptionsResolver $resolver
56
     */
57
    public function configurePushOptions(OptionsResolver $resolver)
58
    {
59
    }
60
}
61