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

ShowStatistics   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

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