1 | <?php |
||
10 | trait Toolkit |
||
11 | { |
||
12 | protected $app; |
||
13 | |||
14 | 56 | public function __construct(Application $app) |
|
18 | |||
19 | 8 | protected function create(string $space, array $data) |
|
23 | |||
24 | 2 | public function send(string $job, array $params = [], string $service = null) |
|
28 | |||
29 | 56 | public function dispatch(string $job, array $params = [], string $service = null) |
|
33 | |||
34 | 5 | protected function find(string $space, $params = []) : array |
|
38 | |||
39 | 4 | protected function findOne(string $space, $params = []) |
|
43 | |||
44 | 5 | protected function findOrCreate(string $space, $params = [], $data = []) |
|
45 | { |
||
46 | 5 | return $this->getRepository($space)->findOrCreate($params, $data); |
|
47 | } |
||
48 | |||
49 | 6 | protected function findOrFail(string $space, $params = []) |
|
53 | |||
54 | protected function fire(string $event, array $context) |
||
58 | |||
59 | 56 | protected function get(string $class) |
|
63 | |||
64 | 1 | protected function getDate() |
|
68 | |||
69 | 8 | protected function getMapper() |
|
73 | |||
74 | 9 | protected function getRepository($space) |
|
81 | |||
82 | public function getQueue($tube) |
||
102 | |||
103 | 2 | protected function remove(string $space, array $params = []) |
|
107 | |||
108 | 2 | protected function select($fields, string $table, array $params) |
|
112 | |||
113 | 2 | protected function insert(string $table, array $data, array $headers) |
|
117 | |||
118 | 1 | protected function upload(string $filename, $contents) : string |
|
122 | |||
123 | 1 | protected function download(string $hash) |
|
127 | |||
128 | public function __debugInfo() |
||
134 | } |
||
135 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.