Issues (115)

src/Commands/InteractsWithResults.php (2 issues)

Labels
Severity
1
<?php
2
3
namespace VGirol\JsonApi\Commands;
4
5
trait InteractsWithResults
6
{
7
    /**
8
     * Undocumented function
9
     *
10
     * @return array
11
     */
12
    abstract public function collectResults(): array;
13
14
    /**
15
     * Undocumented function
16
     *
17
     * @return string
18
     */
19
    protected function getCompleteClassName(): string
20
    {
21
        return $this->qualifyClass($this->getNameInput());
0 ignored issues
show
It seems like qualifyClass() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( 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 $this->/** @scrutinizer ignore-call */ qualifyClass($this->getNameInput());
Loading history...
It seems like getNameInput() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( 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 $this->qualifyClass($this->/** @scrutinizer ignore-call */ getNameInput());
Loading history...
22
    }
23
}
24