Total Complexity | 5 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class AddressController extends Controller |
||
12 | { |
||
13 | /** @var Electrum */ |
||
14 | protected $electrum; |
||
15 | |||
16 | /** |
||
17 | * AddressController constructor. |
||
18 | * |
||
19 | * @param Electrum $electrum |
||
20 | */ |
||
21 | public function __construct(Electrum $electrum) |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Get available addresses. |
||
28 | * |
||
29 | * @return \Illuminate\Http\JsonResponse |
||
30 | */ |
||
31 | public function index() |
||
32 | { |
||
33 | return response()->json($this->electrum->getAddresses()); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Check if address is in wallet. |
||
38 | * |
||
39 | * @param $address |
||
40 | * |
||
41 | * @return \Illuminate\Http\JsonResponse |
||
42 | */ |
||
43 | public function is_mine($address) |
||
44 | { |
||
45 | return response()->json($this->electrum->isAddressMine($address)); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Get an unused address. |
||
50 | * |
||
51 | * @return \Illuminate\Http\JsonResponse |
||
52 | */ |
||
53 | public function unused() |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * Validate the given address. |
||
60 | * |
||
61 | * @param $address |
||
62 | * |
||
63 | * @return \Illuminate\Http\JsonResponse |
||
64 | */ |
||
65 | public function check($address) |
||
68 | } |
||
69 | } |
||
70 |
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