Passed
Pull Request — main (#17)
by
unknown
03:01 queued 40s
created

lightning-config.dist.php (2 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
use PhpLightning\Config\Backend\LnBitsBackendConfig;
6
use PhpLightning\Config\LightningConfig;
7
8
return (new LightningConfig())
9
    ->setDomain('your-domain.com')
10
    ->setReceiver('custom-receiver')
11
    ->setSendableRange(min: 100_000, max: 10_000_000_000)
0 ignored issues
show
The constant 100_000 was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
The constant 10_000_000_000 was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
12
    ->setCallbackUrl('https://your-domain.com/path/to/index.php')
13
    ->addBackend(
14
        (new LnBitsBackendConfig())
15
            ->setApiEndpoint('http://localhost:5000')
16
            ->setApiKey('api_key')
17
    );
18