Test Setup Failed
Push — master ( d3c328...f97b13 )
by Davide
07:16 queued 10s
created

GeoMapController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 12
rs 10
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use App\User;
6
use Carbon\Carbon;
7
use DavideCasiraghi\LaravelEventsCalendar\Models\Event;
8
9
use Illuminate\Http\Request;
10
11
class GeoMapController extends Controller
12
{
13
    /***************************************************************************/
14
15
    /**
16
     * Display a listing of the resource.
17
     * @param  \Illuminate\Http\Request  $request
18
     * @return \Illuminate\View\View
19
     */
20
    public function index(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

20
    public function index(/** @scrutinizer ignore-unused */ Request $request)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
21
    {
22
        $activeEventMarkersGeoJSON = Event::getActiveEventsMapGeoJSON();
23
    
24
        //dd($activeEventMarkersGeoJSON);
25
    
26
        //$clientIP = $request->ip();
27
        //$userPosition = geoip($ip = null);
28
        //dd($userPosition);
29
        
30
        return view('geomap.index')
31
            ->with('activeEventMarkersJSON', $activeEventMarkersGeoJSON);
32
        
33
    }
34
    
35
    
36
37
38
}
39