Issues (17)

src/SimotelEventApi.php (3 issues)

Labels
Severity
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
The type Illuminate\Support\Facades\Http 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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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 ignore-call  annotation

18
        $eventClass = /** @scrutinizer ignore-call */ config("simotel.simotelEventApi.events." . $data["event_name"]);
Loading history...
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 ignore-call  annotation

19
        /** @scrutinizer ignore-call */ 
20
        event(new $eventClass($data));
Loading history...
20
    }
21
}
22