@@ -333,6 +333,6 @@ |
||
333 | 333 | */ |
334 | 334 | public function setModel($model) |
335 | 335 | { |
336 | - $this->model = '\\' . ltrim($model, '\\'); |
|
336 | + $this->model = '\\'.ltrim($model, '\\'); |
|
337 | 337 | } |
338 | 338 | } |
@@ -201,7 +201,7 @@ |
||
201 | 201 | protected function makeTitle(SeoUsable $item = null) |
202 | 202 | { |
203 | 203 | if ($item) { |
204 | - return $item->getTitle() . ' - ' . $this->translator->trans($this->setting->get('mainTitle')); |
|
204 | + return $item->getTitle().' - '.$this->translator->trans($this->setting->get('mainTitle')); |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | return implode(' - ', [ |
@@ -90,6 +90,6 @@ |
||
90 | 90 | return; |
91 | 91 | } |
92 | 92 | |
93 | - parent::exec(array_merge($data, ['type' => 'summary', 'username' => '@' . $this->username])); |
|
93 | + parent::exec(array_merge($data, ['type' => 'summary', 'username' => '@'.$this->username])); |
|
94 | 94 | } |
95 | 95 | } |
@@ -67,6 +67,6 @@ |
||
67 | 67 | */ |
68 | 68 | protected function makeCanonical($url) |
69 | 69 | { |
70 | - return '<link rel="canonical" href="' . $this->prependHost($url) . '" />'; |
|
70 | + return '<link rel="canonical" href="'.$this->prependHost($url).'" />'; |
|
71 | 71 | } |
72 | 72 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | { |
143 | 143 | $text = Str::substr($origin, 0, $len); |
144 | 144 | |
145 | - return $origin == $text ? $text : $text . '...'; |
|
145 | + return $origin == $text ? $text : $text.'...'; |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | protected function prependHost($url) |
155 | 155 | { |
156 | 156 | if (preg_match('/^(http[s]?\:\/\/)([^\/]+)/i', $url, $matches) === 0) { |
157 | - return $this->request->root() . '/' . ltrim($url, '/'); |
|
157 | + return $this->request->root().'/'.ltrim($url, '/'); |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | return $url; |
@@ -37,8 +37,8 @@ |
||
37 | 37 | */ |
38 | 38 | public function make($type) |
39 | 39 | { |
40 | - if (class_exists('\\Xpressengine\\Media\\Commands\\' . ucfirst($type) . 'Command')) { |
|
41 | - $class = '\\Xpressengine\\Media\\Commands\\' . ucfirst($type) . 'Command'; |
|
40 | + if (class_exists('\\Xpressengine\\Media\\Commands\\'.ucfirst($type).'Command')) { |
|
41 | + $class = '\\Xpressengine\\Media\\Commands\\'.ucfirst($type).'Command'; |
|
42 | 42 | return new $class(); |
43 | 43 | } |
44 | 44 |
@@ -73,8 +73,8 @@ |
||
73 | 73 | */ |
74 | 74 | public function render(array $option = []) |
75 | 75 | { |
76 | - return '<div class="embed-responsive embed-responsive-16by9">' . |
|
77 | - '<iframe class="embed-responsive-item" src="' . $this->url() . '"></iframe>' . |
|
76 | + return '<div class="embed-responsive embed-responsive-16by9">'. |
|
77 | + '<iframe class="embed-responsive-item" src="'.$this->url().'"></iframe>'. |
|
78 | 78 | '</div>'; |
79 | 79 | } |
80 | 80 |
@@ -67,8 +67,8 @@ |
||
67 | 67 | */ |
68 | 68 | public function render(array $option = []) |
69 | 69 | { |
70 | - return '<audio controls src="' . $this->url() . '">' . |
|
71 | - 'Your user agent does not support the HTML5 Audio element.' . |
|
70 | + return '<audio controls src="'.$this->url().'">'. |
|
71 | + 'Your user agent does not support the HTML5 Audio element.'. |
|
72 | 72 | '</audio>'; |
73 | 73 | } |
74 | 74 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public static function getThumbnail(Media $media, $type, $dimension, $defaultSelf = true) |
64 | 64 | { |
65 | 65 | $image = static::derives($media) //->where('type', $type)->where('code', $dimension)->first(); |
66 | - ->whereHas('meta', function ($query) use ($type, $dimension) { |
|
66 | + ->whereHas('meta', function($query) use ($type, $dimension) { |
|
67 | 67 | $query->where('type', $type)->where('code', $dimension); |
68 | 68 | })->with('meta')->first(); |
69 | 69 | |
@@ -97,10 +97,10 @@ discard block |
||
97 | 97 | public function render(array $option = []) |
98 | 98 | { |
99 | 99 | if (isset($option['responsive']) && $option['responsive'] === true) { |
100 | - return '<img src="' . $this->url() . '" style="max-width: 100%" />'; |
|
100 | + return '<img src="'.$this->url().'" style="max-width: 100%" />'; |
|
101 | 101 | } |
102 | 102 | |
103 | - return '<img src="' . $this->url() . '" width="' . $this->width . '" height="' . $this->height . '" />'; |
|
103 | + return '<img src="'.$this->url().'" width="'.$this->width.'" height="'.$this->height.'" />'; |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |