Completed
Push — master ( e0af4b...9dfc58 )
by Sam
05:15
created

AssociationStandingsArchiveController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 16
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A show() 0 7 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
class AssociationStandingsArchiveController extends AssociationAwareController
8
{
9
10
    /**
11
     * Display the specified resource.
12
     *
13
     * @param  int  $id
14
     * @return \Illuminate\Http\Response
15
     */
16
    public function show()
17
    {
18
        return view(
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('association...on->archivedSchedules)) returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
19
            'association.standings.archive',
20
            [
21
                'association' => $this->association,
22
                'schedules' => $this->association->archivedSchedules,
0 ignored issues
show
Bug introduced by
The property archivedSchedules 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...
23
            ]
24
        );
25
    }
26
27
}
28