Completed
Push — master ( 2adf77...0bce9c )
by Sam
04:25
created

AssociationScheduleController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 16
rs 10
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
use App\Association;
8
9
class AssociationScheduleController 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.schedule',
22
            [
23
                'association' => $this->association,
24
                'schedules' => $this->association->activeSchedules,
0 ignored issues
show
Bug introduced by
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