Passed
Push — master ( b4e250...ccc78f )
by Craig
02:55
created

WordFinder::getRandomChar()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace CustomD\WordFinder\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
7
/**
8
* @method static \CustomD\WordFinder\Grid create(Collection $wordList, ?int $gridSize = null, ?int $min_word_length = null, ?int $max_word_length = null)
9
*
10
* @see \CustomD\WordFinder\WordFinder
11
*/
12
class WordFinder extends Facade
13
{
14
    protected static function getFacadeAccessor()
15
    {
16
        return 'word-finder';
17
    }
18
19
    public static function getRandomChar(): string
20
    {
21
        return resolve(config('word-finder.character_map'))->getRandomChar();
0 ignored issues
show
Bug introduced by
The method getRandomChar() does not exist on Illuminate\Contracts\Foundation\Application. ( Ignorable by Annotation )

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

21
        return resolve(config('word-finder.character_map'))->/** @scrutinizer ignore-call */ getRandomChar();

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
22
    }
23
}
24