| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 61 | public function __construct( |
||
| 62 | string $title = null, |
||
| 63 | string $author = null, |
||
| 64 | string $url = null, |
||
| 65 | string $description = null |
||
| 66 | ) { |
||
| 67 | $this->title = $title ? Str::of($title)->limit(60, '...') . ' - Xetaravel' : config('xetaravel.site.title'); |
||
| 68 | $this->author = $author ?? config('xetaravel.site.copyright'); |
||
| 69 | $this->url = $url ?? URL::full(); |
||
| 70 | $this->description = |
||
| 71 | $description ? Str::of(strip_tags($description))->limit(150, '...') : config('xetaravel.site.description'); |
||
| 72 | $this->copyright = config('xetaravel.site.copyright'); |
||
| 73 | $this->image = URL::asset('images/logo300x300.png'); |
||
| 74 | } |
||
| 86 |