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.
The type App\User was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. excluded_paths:["lib/*"],
you can move it to the dependency path list as follows:
It seems like getTable() 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
The method runningInConsole() does not exist on Illuminate\Container\Container. Are you sure you never get this type here, but always one of the subclasses?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
22
if (app()->/** @scrutinizer ignore-call */ runningInConsole()) {
Loading history...
23
return true;
24
}
25
26
if (! $user) {
27
return false;
28
}
29
30
return $user->isAnyAdmin();
31
}
32
33
/**
34
* Returns the month on month analytic count
35
*
36
* @param string $period
37
* @return Array
38
*/
39
public static function getCumulativeGrowthData($period = 6)
It seems like $period can also be of type string; however, parameter $value of Carbon\Carbon::subMonths() does only seem to accept integer, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
47
/** @scrutinizer ignore-call */
48
$date = $date->format('d-m-Y');
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...
48
$output[$date] = (new static)->getCountForDate($date, 'd-m-Y');
49
}
50
51
return $output;
52
}
53
54
/**
55
* Returns the analytic count for the specified month
56
*
57
* @param String $date
58
* @param String $format
59
* @return Int
60
*/
61
public static function getCountForDate($date, $format)
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths