| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function byUuid($block) { |
||
|
|
|||
| 11 | |||
| 12 | $json = '{"story": { |
||
| 13 | "id": 107350, |
||
| 14 | "uuid": "ac0d2ed0-e323-43ca-ae59-5cd7d38683cb", |
||
| 15 | "name": "Child content", |
||
| 16 | "slug": "child-content", |
||
| 17 | "full_slug": "pages/default-page", |
||
| 18 | "created_at": "2018-04-24T11:57:29.302Z", |
||
| 19 | "published_at": "2018-12-07T01:31:36.134Z", |
||
| 20 | "first_published_at": "2018-08-07T09:40:13.000Z", |
||
| 21 | "content": { |
||
| 22 | "component": "child-content", |
||
| 23 | "title": "Child Content Title" |
||
| 24 | }, |
||
| 25 | "position": -20, |
||
| 26 | "tag_list": [ ], |
||
| 27 | "is_startpage": false, |
||
| 28 | "parent_id": 107348, |
||
| 29 | "group_id": "d5ea8520-1296-40b7-8360-894461fdc5b6", |
||
| 30 | "alternates": [ ], |
||
| 31 | "release_id": null, |
||
| 32 | "lang": "default" |
||
| 33 | } |
||
| 34 | }'; |
||
| 35 | |||
| 36 | $this->storyblokResponse = json_decode($json, true)['story']; |
||
| 37 | |||
| 38 | return $this; |
||
| 39 | } |
||
| 40 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.