1 | <?php |
||||||
2 | /** |
||||||
3 | * Created by PhpStorm. |
||||||
4 | * User: 5729906803 |
||||||
5 | * Date: 9/13/2020 |
||||||
6 | * Time: 1:04 PM |
||||||
7 | */ |
||||||
8 | |||||||
9 | namespace Hsy\SimotelConnect; |
||||||
10 | |||||||
11 | |||||||
12 | use Illuminate\Support\Facades\Http; |
||||||
0 ignored issues
–
show
|
|||||||
13 | |||||||
14 | class SimotelEventApi |
||||||
15 | { |
||||||
16 | public function dispatchSimotelEvent($data) |
||||||
17 | { |
||||||
18 | $eventClass = config("simotel.simotelEventApi.events." . $data["event_name"]); |
||||||
0 ignored issues
–
show
The function
config was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
19 | event(new $eventClass($data)); |
||||||
0 ignored issues
–
show
The function
event was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
20 | } |
||||||
21 | } |
||||||
22 |
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