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 — master ( 807941...300eda )
by Brent
20s queued 12s
created

Str   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A contains() 0 12 3
1
<?php
2
3
namespace Spatie\DataTransferObject;
4
5
class Str
6
{
7
    public static function contains(string $string, $searches): bool
8
    {
9
        $searches = (array) $searches;
10
11
        foreach ($searches as $search) {
12
            if (strpos($string, $search) !== false) {
13
                return true;
14
            }
15
        }
16
17
        return false;
18
    }
19
}
20