Issues (84)

Controllers/AssociationStandingsController.php (2 issues)

1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
use App\Association;
8
9
class AssociationStandingsController extends AssociationAwareController
10
{
11
12
    /**
13
     * Display the specified resource.
14
     *
15
     * @param  int  $id
16
     * @return \Illuminate\Http\Response
17
     */
18
    public function show()
19
    {
20
        return view(
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('association...tion->activeSchedules)) returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
21
            'association.standings',
22
            [
23
                'association' => $this->association,
24
                'schedules' => $this->association->activeSchedules,
0 ignored issues
show
The property activeSchedules does not seem to exist on App\Association. Are you sure there is no database migration missing?

Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.

Loading history...
25
            ]
26
        );
27
    }
28
29
}
30