@@ -76,7 +76,7 @@ |
||
76 | 76 | * |
77 | 77 | * @param string $key 검색할 information의 키 |
78 | 78 | * |
79 | - * @return mixed 검색된 information를 반환함. |
|
79 | + * @return string 검색된 information를 반환함. |
|
80 | 80 | */ |
81 | 81 | public static function getComponentInfo($key = null) |
82 | 82 | { |
@@ -126,7 +126,7 @@ |
||
126 | 126 | * |
127 | 127 | * @param string $id component's id |
128 | 128 | * |
129 | - * @return mixed |
|
129 | + * @return null|callable |
|
130 | 130 | */ |
131 | 131 | public function get($id) |
132 | 132 | { |
@@ -110,7 +110,7 @@ |
||
110 | 110 | /** |
111 | 111 | * 생성자. 태그 별칭을 전달받는다. |
112 | 112 | * |
113 | - * @param string|array|null $alias 파일경로 |
|
113 | + * @param string $alias 파일경로 |
|
114 | 114 | */ |
115 | 115 | public function __construct($alias = null) |
116 | 116 | { |
@@ -83,7 +83,7 @@ |
||
83 | 83 | $sorted = static::$sorter->sort(array_diff(array_keys($list), static::$unloaded)); |
84 | 84 | |
85 | 85 | array_map( |
86 | - function ($alias) use ($list, &$output) { |
|
86 | + function($alias) use ($list, &$output) { |
|
87 | 87 | $htmlObj = $list[$alias]; |
88 | 88 | $output .= $htmlObj->render(); |
89 | 89 | }, |
@@ -366,7 +366,7 @@ |
||
366 | 366 | * Add a piece of shared data to the environment. |
367 | 367 | * |
368 | 368 | * @param mixed $key key(string|array) |
369 | - * @param mixed $value value |
|
369 | + * @param string $value value |
|
370 | 370 | * @return null|array |
371 | 371 | */ |
372 | 372 | public function share($key, $value = null) |
@@ -14,10 +14,8 @@ |
||
14 | 14 | |
15 | 15 | namespace Xpressengine\Routing; |
16 | 16 | |
17 | -use Illuminate\Http\Request as LaravelRequest; |
|
18 | -use Illuminate\Routing\Matching\ValidatorInterface; |
|
19 | 17 | use Illuminate\Http\Request; |
20 | -use Illuminate\Routing\Route; |
|
18 | +use Illuminate\Routing\Matching\ValidatorInterface; |
|
21 | 19 | use Illuminate\Routing\Route as LaravelRoute; |
22 | 20 | |
23 | 21 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public function matches(Route $route, Request $request) |
45 | 45 | { |
46 | - $path = $request->path() == '/' ? '/' : '/' . $request->path(); |
|
46 | + $path = $request->path() == '/' ? '/' : '/'.$request->path(); |
|
47 | 47 | $firstSegment = $request->segment(1); |
48 | 48 | if ($firstSegment === null) { |
49 | 49 | return true; |
@@ -112,7 +112,7 @@ |
||
112 | 112 | * Add meta tag |
113 | 113 | * |
114 | 114 | * @param string $key item key |
115 | - * @param string|array $contents meta content |
|
115 | + * @param string $contents meta content |
|
116 | 116 | * @return void |
117 | 117 | */ |
118 | 118 | protected function addMeta($key, $contents) |
@@ -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; |
@@ -163,7 +163,7 @@ |
||
163 | 163 | * |
164 | 164 | * @param array $config skin config |
165 | 165 | * |
166 | - * @return string|Renderable |
|
166 | + * @return string |
|
167 | 167 | */ |
168 | 168 | public static function getSettingView($config = []) |
169 | 169 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * get class name of skin |
81 | 81 | * |
82 | - * @return string |
|
82 | + * @return AbstractSkin |
|
83 | 83 | */ |
84 | 84 | public function getClass() |
85 | 85 | { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * get skin title |
91 | 91 | * |
92 | - * @return mixed |
|
92 | + * @return string |
|
93 | 93 | */ |
94 | 94 | public function getTitle() |
95 | 95 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * get screenshot of skin |
113 | 113 | * |
114 | - * @return mixed |
|
114 | + * @return string |
|
115 | 115 | */ |
116 | 116 | public function getScreenshot() |
117 | 117 | { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @param array $config skin config |
126 | 126 | * |
127 | - * @return string|Renderable |
|
127 | + * @return string |
|
128 | 128 | */ |
129 | 129 | public function getSettingView($config = []) |
130 | 130 | { |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | /** |
290 | 290 | * 주어진 타겟에 등록된 모바일 스킨의 목록을 조회하여 반환한다. |
291 | 291 | * |
292 | - * @param string|string[] $target 조회할 스킨 target |
|
292 | + * @param string $target 조회할 스킨 target |
|
293 | 293 | * @param bool $isSettings 설정스킨 여부. true일 경우 설정스킨 목록을 반환한다. |
294 | 294 | * |
295 | 295 | * @return SkinEntity[] |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | /** |
310 | 310 | * 주어진 타겟에 등록된 데스크탑 스킨의 목록을 조회하여 반환한다. |
311 | 311 | * |
312 | - * @param string|string[] $target 조회할 스킨 target |
|
312 | + * @param string $target 조회할 스킨 target |
|
313 | 313 | * @param bool $isSettings 설정스킨 여부. true일 경우 설정스킨 목록을 반환한다. |
314 | 314 | * |
315 | 315 | * @return SkinEntity[] |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | * 타겟이 지정돼 있는 설정스킨을 반환한다. |
377 | 377 | * 설정스킨을 모바일|데스크탑을 구분하지 않고, 스킨 정보를 저장소에 저장하는 기능도 제공하지 않는다. |
378 | 378 | * |
379 | - * @param string|string[] $target 조회할 타겟 |
|
379 | + * @param string $target 조회할 타겟 |
|
380 | 380 | * |
381 | 381 | * @return SkinEntity |
382 | 382 | */ |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function getMobileResolver() |
239 | 239 | { |
240 | - return $this->mobileResolver ?: function () { |
|
240 | + return $this->mobileResolver ?: function() { |
|
241 | 241 | }; |
242 | 242 | } |
243 | 243 | |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | $skins = $this->getList($target, $isSettings); |
300 | 300 | return array_where( |
301 | 301 | $skins, |
302 | - function ($id, $entity) { |
|
302 | + function($id, $entity) { |
|
303 | 303 | /** @var SkinEntity $entity */ |
304 | 304 | return $entity->supportMobile(); |
305 | 305 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | $skins = $this->getList($target, $isSettings); |
320 | 320 | return array_where( |
321 | 321 | $skins, |
322 | - function ($id, $entity) { |
|
322 | + function($id, $entity) { |
|
323 | 323 | /** @var SkinEntity $entity */ |
324 | 324 | return $entity->supportDesktop(); |
325 | 325 | } |