Convert   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
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