1 | <?php |
||
2 | |||
3 | namespace AraneaDev\Electrum\App\Api; |
||
4 | |||
5 | use App\Http\Controllers\Controller; |
||
0 ignored issues
–
show
|
|||
6 | use AraneaDev\Electrum\Electrum; |
||
7 | |||
8 | /** |
||
9 | * Class AddressController. |
||
10 | */ |
||
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) |
||
22 | { |
||
23 | $this->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 | * @return \Illuminate\Http\JsonResponse |
||
41 | */ |
||
42 | public function is_mine($address) |
||
43 | { |
||
44 | return response()->json($this->electrum->isAddressMine($address)); |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Get an unused address. |
||
49 | * |
||
50 | * @return \Illuminate\Http\JsonResponse |
||
51 | */ |
||
52 | public function unused() |
||
53 | { |
||
54 | return response()->json($this->electrum->getUnusedAddress()); |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Validate the given address. |
||
59 | * |
||
60 | * @param $address |
||
61 | * @return \Illuminate\Http\JsonResponse |
||
62 | */ |
||
63 | public function check($address) |
||
64 | { |
||
65 | return response()->json($this->electrum->validateAddress($address)); |
||
66 | } |
||
67 | } |
||
68 |
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