Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | use StaticDbTestTrait; |
||
15 | |||
16 | public function getRequests() |
||
17 | { |
||
18 | return [ |
||
19 | 'create' => ['/api/entity/my-entity/create', 'POST', ['data' => ['publicApiField' => 'my-value']]], |
||
20 | 'get' => ['/api/entity/my-entity/get', 'GET', ['identifier' => 1]], |
||
21 | 'update' => [ |
||
22 | '/api/entity/my-entity/update', |
||
23 | 'POST', |
||
24 | [ |
||
25 | 'identifier' => 1, |
||
26 | 'data' => [ |
||
27 | 'publicApiField' => 'my-updated-value', |
||
28 | 'parent' => null, |
||
29 | ], |
||
30 | ], |
||
31 | ], |
||
32 | 'search' => ['/api/entity/my-entity/search', 'GET', ['criteria' => ['id' => 1]]], |
||
33 | 'count' => ['/api/entity/my-entity/count', 'GET', ['criteria' => ['id' => 1]]], |
||
34 | 'delete' => ['/api/entity/my-entity/delete', 'POST', ['identifier' => 1]], |
||
35 | ]; |
||
36 | } |
||
37 | |||
51 |
This check marks private properties in classes that are never used. Those properties can be removed.