Convert::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php 
2
3
declare(strict_types=1);
4
5
namespace Elvendor\Tcmb\Http\Controllers;
6
7
use Illuminate\Http\Request;
8
use Illuminate\Routing\Controller;
9
use Elvendor\Tcmb\Tcmb;
10
11
class Convert extends Controller
12
{
13
    public function __invoke(Request $request)
14
    {
15
        return Tcmb::convert($amount, $from, $to, $date, $decimals);
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable $to seems to be never defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable $date seems to be never defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable $amount seems to be never defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable $from seems to be never defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable $decimals seems to be never defined.
Loading history...
16
    }
17
}
18