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.

InKeys   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A make() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace ProtoneMedia\LaravelMixins\Rules;
4
5
use Illuminate\Validation\Rules\In;
6
7
class InKeys extends In
8
{
9
    /**
10
     * Create a new rule instance with the keys of the given values.
11
     *
12
     * @param  array  $values
13
     * @return void
14
     */
15
    public function __construct(array $values)
16
    {
17
        $this->values = array_keys($values);
18
    }
19
20
    public static function make(array $values): self
21
    {
22
        return new static($values);
23
    }
24
}
25