Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
11 | public function show(int $compaignId): Renderable |
||
|
|||
12 | { |
||
13 | /** @var Campaign $compaign */ |
||
14 | // $compaign = factory(Campaign::class)->make(); |
||
15 | // return $compaign; |
||
16 | |||
17 | $data = '{ |
||
18 | "layout": "form", |
||
19 | "styles": { }, |
||
20 | "content": { |
||
21 | "title": "First campaign title", |
||
22 | "description": "First campaign description", |
||
23 | "image": "path_url", |
||
24 | "warnings": { |
||
25 | "cost_error": "invalid cost" |
||
26 | }, |
||
27 | "button_values": [ "2", "4", "6", "8", "10", "12" ], |
||
28 | "termsOfUse": {} |
||
29 | } |
||
30 | }'; |
||
31 | return view('client.campaign')->withData($data); |
||
32 | } |
||
34 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.