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.

Issues (35)

src/Traits/OptionsSetterTrait.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * This file is part of the O2System Framework package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @author         Steeve Andrian Salim
9
 * @copyright      Copyright (c) Steeve Andrian Salim
10
 */
11
12
// ------------------------------------------------------------------------
13
14
namespace O2System\Spl\Traits;
15
16
// ------------------------------------------------------------------------
17
18
/**
19
 * Class OptionsSetterTrait
20
 *
21
 * @package O2System\Spl\Traits\Collectors
22
 */
23
trait OptionsSetterTrait
24
{
25
    /**
26
     * OptionsSetterTrait::setOptions
27
     *
28
     * @param array $options
29
     *
30
     * @return $this
31
     */
32
    public function setOptions(array $options)
33
    {
34
        if (count($options)) {
35
            foreach ($options as $method => $value) {
36
                $method = camelcase('set_' . $method);
0 ignored issues
show
The function camelcase was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

36
                $method = /** @scrutinizer ignore-call */ camelcase('set_' . $method);
Loading history...
37
38
                if (method_exists($this, $method)) {
39
                    call_user_func_array([&$this, $method], [$value]);
40
                }
41
            }
42
        }
43
44
        return $this;
45
    }
46
}