| Conditions | 3 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __construct($data) { |
||
| 23 | $this->id = $data->id; |
||
| 24 | $this->imdbId = (strlen($data->imdbId)) ? $data->imdbId : null; |
||
| 25 | $this->name = $data->episodeName; |
||
| 26 | |||
| 27 | if($data->filename) |
||
| 28 | $this->image = TVDB::IMAGE_URL_PREFIX . $data->filename; |
||
| 29 | else |
||
| 30 | $this->image = null; |
||
| 31 | |||
| 32 | $this->season = $data->airedSeason; |
||
| 33 | $this->number = $data->airedEpisodeNumber; |
||
| 34 | $this->synopsis = $data->overview; |
||
| 35 | $this->firstAired = Carbon::parse($data->firstAired); |
||
| 36 | $this->lastUpdated = Carbon::createFromTimestamp($data->lastUpdated); |
||
| 37 | $this->directors = $data->directors; |
||
| 38 | $this->writers = $data->writers; |
||
| 39 | $this->guestStars = $data->guestStars; |
||
| 40 | $this->tvdbRating = [ |
||
| 41 | 'average' => $data->siteRating, |
||
| 42 | 'count' => $data->siteRatingCount |
||
| 43 | ]; |
||
| 45 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths