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.

GetFormValidationRules   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFormFieldsValidationRules() 0 8 1
1
<?php
2
3
namespace App\Platforms\Traits;
4
5
6
trait GetFormValidationRules
7
{
8
    public function getFormFieldsValidationRules()
9
    {
10
        $formFields = collect($this->getFormFields());
0 ignored issues
show
Bug introduced by
The method getFormFields() does not exist on App\Platforms\Traits\GetFormValidationRules. Did you maybe mean getFormFieldsValidationRules()? ( Ignorable by Annotation )

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

10
        $formFields = collect($this->/** @scrutinizer ignore-call */ getFormFields());

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...
11
12
        return $formFields->reduce(function($formRules, $field) {
13
            $formRules[$field['name']] = $field['validation'];
14
            return $formRules;
15
        }, []);
16
    }
17
}
18