Conditions | 5 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function compose(View $view) |
||
26 | { |
||
27 | $title = config('app.name'); |
||
28 | if ($this->seo) { |
||
29 | if ($this->seo->title) { |
||
30 | $title = $this->seo->title; |
||
31 | if (config('meta-box.use_app_name')) { |
||
32 | $title .= config('meta-box.use_app_name_separator').config('app.name'); |
||
33 | } |
||
34 | } |
||
35 | } |
||
36 | |||
37 | $view->with('seoUseTwitter', config('meta-box.use_twitter')); |
||
38 | $view->with('seoTwitterHandle', config('meta-box.twitter_handle')); |
||
39 | $view->with('seoTitle', $title); |
||
40 | $view->with('seoDescription', $this->seo ? $this->seo->description : ''); |
||
41 | $view->with('seoUseOpenGraph', config('meta-box.use_open_graph')); |
||
42 | $view->with('seoFullUrl', url($this->requestUrl)); |
||
43 | } |
||
45 |