bristol-su /
upload-file
| 1 | <?php |
||||
| 2 | |||||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||||
| 3 | namespace BristolSU\Module\UploadFile\Http\Controllers\AdminApi; |
||||
| 4 | |||||
| 5 | use BristolSU\Module\UploadFile\Http\Controllers\Controller; |
||||
| 6 | use BristolSU\Support\Activity\Activity; |
||||
| 7 | use BristolSU\Support\ActivityInstance\Contracts\ActivityInstanceRepository; |
||||
| 8 | use BristolSU\Support\Module\Module; |
||||
| 9 | |||||
| 10 | class ActivityInstanceController extends Controller |
||||
|
0 ignored issues
–
show
|
|||||
| 11 | { |
||||
| 12 | |||||
| 13 | public function index(Activity $activity, Module $module, ActivityInstanceRepository $activityInstanceRepository) |
||||
|
0 ignored issues
–
show
The parameter
$module 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
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...
|
|||||
| 14 | { |
||||
| 15 | return $activityInstanceRepository->allForActivity($activity->id); |
||||
| 16 | } |
||||
| 17 | |||||
| 18 | } |