1 | <?php |
||
16 | class StatisticsController extends AuthorizedController |
||
17 | { |
||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | protected $resource = 'list-statistics'; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | protected $resourceMethodsWithoutModels = [ |
||
|
|||
27 | 'agents', |
||
28 | 'geoips', |
||
29 | 'devices', |
||
30 | 'paths', |
||
31 | 'platforms', |
||
32 | 'requests', |
||
33 | 'routes', |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * Show statistics index. |
||
38 | * |
||
39 | * @return \Illuminate\View\View |
||
40 | */ |
||
41 | public function index() |
||
45 | |||
46 | /** |
||
47 | * List all agents. |
||
48 | * |
||
49 | * @param \Cortex\Statistics\DataTables\Adminarea\AgentsDataTable $agentsDataTable |
||
50 | * |
||
51 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
52 | */ |
||
53 | public function agents(AgentsDataTable $agentsDataTable) |
||
60 | |||
61 | /** |
||
62 | * List all geoips. |
||
63 | * |
||
64 | * @param \Cortex\Statistics\DataTables\Adminarea\GeoipsDataTable $geoipsDataTable |
||
65 | * |
||
66 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
67 | */ |
||
68 | public function geoips(GeoipsDataTable $geoipsDataTable) |
||
75 | |||
76 | /** |
||
77 | * List all devices. |
||
78 | * |
||
79 | * @param \Cortex\Statistics\DataTables\Adminarea\DevicesDataTable $devicesDataTable |
||
80 | * |
||
81 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
82 | */ |
||
83 | public function devices(DevicesDataTable $devicesDataTable) |
||
90 | |||
91 | /** |
||
92 | * List all paths. |
||
93 | * |
||
94 | * @param \Cortex\Statistics\DataTables\Adminarea\PathsDataTable $pathsDataTable |
||
95 | * |
||
96 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
97 | */ |
||
98 | public function paths(PathsDataTable $pathsDataTable) |
||
105 | |||
106 | /** |
||
107 | * List all platforms. |
||
108 | * |
||
109 | * @param \Cortex\Statistics\DataTables\Adminarea\PlatformsDataTable $platformsDataTable |
||
110 | * |
||
111 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
112 | */ |
||
113 | public function platforms(PlatformsDataTable $platformsDataTable) |
||
120 | |||
121 | /** |
||
122 | * List all requests. |
||
123 | * |
||
124 | * @param \Cortex\Statistics\DataTables\Adminarea\RequestsDataTable $requestsDataTable |
||
125 | * |
||
126 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
127 | */ |
||
128 | public function requests(RequestsDataTable $requestsDataTable) |
||
135 | |||
136 | /** |
||
137 | * List all routes. |
||
138 | * |
||
139 | * @param \Cortex\Statistics\DataTables\Adminarea\RoutesDataTable $routesDataTable |
||
140 | * |
||
141 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
142 | */ |
||
143 | public function routes(RoutesDataTable $routesDataTable) |
||
150 | } |
||
151 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.