Completed
Pull Request — master (#447)
by Marcel
02:29 queued 59s
created

ShowStatistics::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers;
4
5
use BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver;
6
use Illuminate\Http\Request;
7
8
class ShowStatistics
9
{
10
    /**
11
     * Get statistics for an app ID.
12
     *
13
     * @param  \Illuminate\Http\Request  $request
14
     * @param  \BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver  $driver
15
     * @param  mixed  $appId
16
     * @return \Illuminate\Http\Response
17
     */
18
    public function __invoke(Request $request, StatisticsDriver $driver, $appId)
19
    {
20
        return $driver::get($appId, $request);
21
    }
22
}
23