@@ -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 | } |
@@ -514,7 +514,7 @@ |
||
514 | 514 | * @param UserInterface $user user |
515 | 515 | * @param array $userData user data |
516 | 516 | * |
517 | - * @return UserInterface|static |
|
517 | + * @return UserInterface |
|
518 | 518 | */ |
519 | 519 | public function update(UserInterface $user, $userData) |
520 | 520 | { |
@@ -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 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | if (!str_contains($email, '@')) { |
58 | 58 | $emailPrefix = $email; |
59 | 59 | |
60 | - $query = $query->whereHas('emails', function ($q) use ($emailPrefix) { |
|
60 | + $query = $query->whereHas('emails', function($q) use ($emailPrefix) { |
|
61 | 61 | $q->where('address', 'like', $emailPrefix.'@%'); |
62 | 62 | })->get(); |
63 | 63 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | return null; |
68 | 68 | } |
69 | 69 | } else { |
70 | - $user = $query->whereHas('emails', function ($q) use ($email) { |
|
70 | + $user = $query->whereHas('emails', function($q) use ($email) { |
|
71 | 71 | $q->where('address', $email); |
72 | 72 | })->first(); |
73 | 73 | } |
@@ -824,7 +824,7 @@ |
||
824 | 824 | |
825 | 825 | XeDB::commit(); |
826 | 826 | |
827 | - return Redirect::back()->with('alert', ['type' => 'success', 'message' => 'success']); |
|
827 | + return Redirect::back()->with('alert', ['type' => 'success', 'message' => 'success']); |
|
828 | 828 | } |
829 | 829 | |
830 | 830 | /** |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @param MenuHandler $handler menu handler |
110 | 110 | * |
111 | - * @return mixed |
|
111 | + * @return RedirectResponse |
|
112 | 112 | * @throws Exception |
113 | 113 | */ |
114 | 114 | public function store(MenuHandler $handler) |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | * @param MenuHandler $handler menu handler |
454 | 454 | * @param string $menuId where to store |
455 | 455 | * |
456 | - * @return $this|RedirectResponse |
|
456 | + * @return RedirectResponse |
|
457 | 457 | * @throws Exception |
458 | 458 | */ |
459 | 459 | public function storeItem(MenuHandler $handler, $menuId) |
@@ -643,6 +643,9 @@ discard block |
||
643 | 643 | |
644 | 644 | } |
645 | 645 | |
646 | + /** |
|
647 | + * @param string $name |
|
648 | + */ |
|
646 | 649 | protected function registerItemImage(MenuItem $item, $name) |
647 | 650 | { |
648 | 651 | $columnKeyName = $name . 'Id'; |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | |
357 | 357 | protected function inputFilterParser($prefix, $inputs = []) |
358 | 358 | { |
359 | - $inputs = array_where($inputs, function ($key, $value) use ($prefix) { |
|
359 | + $inputs = array_where($inputs, function($key, $value) use ($prefix) { |
|
360 | 360 | return starts_with($key, $prefix); |
361 | 361 | }); |
362 | 362 | |
@@ -645,7 +645,7 @@ discard block |
||
645 | 645 | |
646 | 646 | protected function registerItemImage(MenuItem $item, $name) |
647 | 647 | { |
648 | - $columnKeyName = $name . 'Id'; |
|
648 | + $columnKeyName = $name.'Id'; |
|
649 | 649 | |
650 | 650 | if ($uploadImg = Request::file($name)) { |
651 | 651 | $image = XeMedia::make(XeStorage::upload($uploadImg, 'menu')); |
@@ -657,7 +657,7 @@ discard block |
||
657 | 657 | |
658 | 658 | $item->{$columnKeyName} = $image->getKey(); |
659 | 659 | } else { |
660 | - $key = 'remove' . ucfirst($name); |
|
660 | + $key = 'remove'.ucfirst($name); |
|
661 | 661 | if (Request::get($key) && $item->{$columnKeyName} !== null) { |
662 | 662 | XeStorage::unBind($item->getKey(), $item->{$name}); |
663 | 663 | $item->{$columnKeyName} = null; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * Execute the console command. |
53 | 53 | * |
54 | - * @return bool|null |
|
54 | + * @return false|null |
|
55 | 55 | */ |
56 | 56 | public function fire() |
57 | 57 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * makeDirectory |
98 | 98 | * |
99 | - * @param $path |
|
99 | + * @param string $path |
|
100 | 100 | * |
101 | 101 | * @return void |
102 | 102 | */ |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * replaceCode |
150 | 150 | * |
151 | 151 | * @param $stub |
152 | - * @param $search |
|
152 | + * @param string $search |
|
153 | 153 | * @param $replace |
154 | 154 | * |
155 | 155 | * @return $this |
@@ -163,6 +163,7 @@ discard block |
||
163 | 163 | /** |
164 | 164 | * Get the stub file for the generator. |
165 | 165 | * |
166 | + * @param string $filename |
|
166 | 167 | * @return string |
167 | 168 | */ |
168 | 169 | protected function getStub($filename) |
@@ -278,7 +279,7 @@ discard block |
||
278 | 279 | /** |
279 | 280 | * getTemplatePath |
280 | 281 | * |
281 | - * @param $id |
|
282 | + * @param string $id |
|
282 | 283 | * @param $plugin |
283 | 284 | * |
284 | 285 | * @return string |
@@ -318,15 +319,15 @@ discard block |
||
318 | 319 | * confirmInfo |
319 | 320 | * |
320 | 321 | * @param $file |
321 | - * @param $class |
|
322 | + * @param string $class |
|
322 | 323 | * @param $plugin |
323 | 324 | * @param $id |
324 | 325 | * @param $title |
325 | 326 | * @param $description |
326 | - * @param $template |
|
327 | - * @param $css |
|
327 | + * @param string $template |
|
328 | + * @param string $css |
|
328 | 329 | * |
329 | - * @return bool |
|
330 | + * @return boolean|null |
|
330 | 331 | */ |
331 | 332 | protected function confirmInfo($file, $class, $plugin, $id, $title, $description, $template, $css) |
332 | 333 | { |
@@ -356,7 +357,7 @@ discard block |
||
356 | 357 | /** |
357 | 358 | * getThemeClass |
358 | 359 | * |
359 | - * @return array |
|
360 | + * @return string[] |
|
360 | 361 | */ |
361 | 362 | protected function getThemeClass() |
362 | 363 | { |
@@ -368,10 +369,12 @@ discard block |
||
368 | 369 | * makeThemeClass |
369 | 370 | * |
370 | 371 | * @param $file |
371 | - * @param $namespace |
|
372 | - * @param $class |
|
372 | + * @param string $namespace |
|
373 | + * @param string $class |
|
373 | 374 | * @param $plugin |
374 | - * @param $template |
|
375 | + * @param string $template |
|
376 | + * @param string $templateView |
|
377 | + * @param string $css |
|
375 | 378 | * |
376 | 379 | * @return void |
377 | 380 | * @throws \Exception |
@@ -396,7 +399,7 @@ discard block |
||
396 | 399 | * @param $class |
397 | 400 | * @param $m |
398 | 401 | * |
399 | - * @return array |
|
402 | + * @return string[] |
|
400 | 403 | */ |
401 | 404 | protected function parseClassName($class) |
402 | 405 | { |
@@ -412,7 +415,7 @@ discard block |
||
412 | 415 | /** |
413 | 416 | * formatJson |
414 | 417 | * |
415 | - * @param $json |
|
418 | + * @param string $json |
|
416 | 419 | * @param bool $unescapeUnicode |
417 | 420 | * @param bool $unescapeSlashes |
418 | 421 | * |
@@ -513,8 +516,8 @@ discard block |
||
513 | 516 | * registerTheme |
514 | 517 | * |
515 | 518 | * @param $plugin |
516 | - * @param $id |
|
517 | - * @param $class |
|
519 | + * @param string $id |
|
520 | + * @param string $class |
|
518 | 521 | * @param $title |
519 | 522 | * @param $description |
520 | 523 | * |
@@ -547,7 +550,7 @@ discard block |
||
547 | 550 | * makeTemplate |
548 | 551 | * |
549 | 552 | * @param $plugin |
550 | - * @param $template |
|
553 | + * @param string $template |
|
551 | 554 | * |
552 | 555 | * @return bool |
553 | 556 | */ |
@@ -563,7 +566,7 @@ discard block |
||
563 | 566 | * makeCss |
564 | 567 | * |
565 | 568 | * @param $plugin |
566 | - * @param $css |
|
569 | + * @param string $css |
|
567 | 570 | * |
568 | 571 | * @return bool |
569 | 572 | */ |
@@ -580,8 +583,8 @@ discard block |
||
580 | 583 | * |
581 | 584 | * @param $file |
582 | 585 | * @param $plugin |
583 | - * @param $template |
|
584 | - * @param $css |
|
586 | + * @param string $template |
|
587 | + * @param string $css |
|
585 | 588 | * |
586 | 589 | * @return void |
587 | 590 | */ |
@@ -4,8 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | 6 | use Illuminate\Filesystem\Filesystem; |
7 | -use Symfony\Component\Console\Input\InputArgument; |
|
8 | -use Symfony\Component\Process\Process; |
|
9 | 7 | |
10 | 8 | class ThemeMakeCommand extends Command |
11 | 9 | { |
@@ -62,12 +62,12 @@ discard block |
||
62 | 62 | $id = $this->getThemeId($plugin, $file); |
63 | 63 | $title = $this->getThemeTitle(); |
64 | 64 | $description = $this->getThemeDescription($id, $plugin); |
65 | - $templateView = strtolower(last(explode('@',$id))); |
|
65 | + $templateView = strtolower(last(explode('@', $id))); |
|
66 | 66 | $template = $this->getTemplatePath($templateView, $plugin); |
67 | 67 | $css = $this->getCssPath($id, $plugin); |
68 | 68 | |
69 | 69 | // print and confirm the information of theme |
70 | - if($this->confirmInfo($file, $namespace.'\\'.$class, $plugin, $id, $title, $description, $template, $css) === false){ |
|
70 | + if ($this->confirmInfo($file, $namespace.'\\'.$class, $plugin, $id, $title, $description, $template, $css) === false) { |
|
71 | 71 | return false; |
72 | 72 | } |
73 | 73 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $this->makeCss($plugin, $css); |
79 | 79 | |
80 | 80 | // composer.json 파일 수정 |
81 | - if($this->registerTheme($plugin, 'theme/'.$id, $namespace.'\\'.$class, $title, $description) === false) { |
|
81 | + if ($this->registerTheme($plugin, 'theme/'.$id, $namespace.'\\'.$class, $title, $description) === false) { |
|
82 | 82 | throw new \Exception('Writing to composer.json file was failed.'); |
83 | 83 | } |
84 | 84 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * DummyCssFile |
130 | 130 | */ |
131 | 131 | |
132 | - if($class === $pluginClass) { |
|
132 | + if ($class === $pluginClass) { |
|
133 | 133 | $pluginClass = $pluginClass.'Plugin'; |
134 | 134 | } |
135 | 135 | |
@@ -183,22 +183,22 @@ discard block |
||
183 | 183 | { |
184 | 184 | $id = $this->option('id'); |
185 | 185 | |
186 | - if(!$id) { |
|
187 | - $fileName = basename($file,'.php'); |
|
186 | + if (!$id) { |
|
187 | + $fileName = basename($file, '.php'); |
|
188 | 188 | $id = $plugin.'@'.strtolower($fileName); |
189 | 189 | } else { |
190 | - if(strpos('theme/', $id) === 0) { |
|
190 | + if (strpos('theme/', $id) === 0) { |
|
191 | 191 | $id = substr($id, 6); |
192 | 192 | } |
193 | 193 | |
194 | - if(strpos($id, '@') === false) { |
|
194 | + if (strpos($id, '@') === false) { |
|
195 | 195 | $id = $plugin.'@'.$id; |
196 | 196 | } |
197 | 197 | } |
198 | 198 | |
199 | 199 | $theme = \App::make('xe.theme')->getTheme($id); |
200 | 200 | |
201 | - if($theme !== null) { |
|
201 | + if ($theme !== null) { |
|
202 | 202 | throw new \Exception("Theme[$theme] already exists."); |
203 | 203 | } |
204 | 204 | |
@@ -217,13 +217,13 @@ discard block |
||
217 | 217 | { |
218 | 218 | $paths = explode('/', $file); |
219 | 219 | |
220 | - if($paths[0] === str_replace(base_path().'/', '', app('xe.plugin')->getPluginsDir())) { |
|
220 | + if ($paths[0] === str_replace(base_path().'/', '', app('xe.plugin')->getPluginsDir())) { |
|
221 | 221 | array_shift($paths); |
222 | 222 | } |
223 | 223 | |
224 | 224 | $plugin = array_shift($paths); |
225 | 225 | |
226 | - if(app('xe.plugin')->getPlugin($plugin) === null) { |
|
226 | + if (app('xe.plugin')->getPlugin($plugin) === null) { |
|
227 | 227 | throw new \Exception("Unable to find a plugin to locate the theme file. plugin[$plugin] is not found."); |
228 | 228 | } |
229 | 229 | |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | protected function getThemeDescription($id, $plugin) |
252 | 252 | { |
253 | 253 | $description = $this->option('description'); |
254 | - if(!$description) { |
|
254 | + if (!$description) { |
|
255 | 255 | $description = sprintf( |
256 | 256 | '%s theme from %s plugin.', |
257 | 257 | ucfirst(last(explode('@', $id))), ucfirst($plugin) |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | protected function getThemeFile() |
270 | 270 | { |
271 | 271 | $filePath = $this->argument('file'); |
272 | - if(file_exists($filePath)) { |
|
272 | + if (file_exists($filePath)) { |
|
273 | 273 | throw new \Exception("file[$filePath] already exists."); |
274 | 274 | } |
275 | 275 | return $filePath; |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | { |
289 | 289 | $entity = \App::make('xe.plugin')->getPlugin($plugin); |
290 | 290 | $viewFile = 'views/theme/'.$id.'.blade.php'; |
291 | - if(file_exists($entity->getPath($viewFile))) { |
|
291 | + if (file_exists($entity->getPath($viewFile))) { |
|
292 | 292 | throw new \Exception("template file[views/$viewFile] already exists."); |
293 | 293 | } |
294 | 294 | return $viewFile; |
@@ -306,9 +306,9 @@ discard block |
||
306 | 306 | protected function getCssPath($id, $plugin) |
307 | 307 | { |
308 | 308 | $entity = \App::make('xe.plugin')->getPlugin($plugin); |
309 | - $file = strtolower(last(explode('@',$id))); |
|
309 | + $file = strtolower(last(explode('@', $id))); |
|
310 | 310 | $cssFile = 'assets/theme/'.$file.'.css'; |
311 | - if(file_exists($entity->getPath($cssFile))) { |
|
311 | + if (file_exists($entity->getPath($cssFile))) { |
|
312 | 312 | throw new \Exception("template file[views/$cssFile] already exists."); |
313 | 313 | } |
314 | 314 | return $cssFile; |
@@ -344,8 +344,8 @@ discard block |
||
344 | 344 | ) |
345 | 345 | ); |
346 | 346 | |
347 | - while($confirm = $this->ask('Do you want to add theme? [yes|no]')) { |
|
348 | - if($confirm === 'yes') { |
|
347 | + while ($confirm = $this->ask('Do you want to add theme? [yes|no]')) { |
|
348 | + if ($confirm === 'yes') { |
|
349 | 349 | return true; |
350 | 350 | } else { |
351 | 351 | return false; |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | |
385 | 385 | $this->files->put(base_path($file), $code); |
386 | 386 | |
387 | - if(!class_exists($namespace.'\\'.$class)) { |
|
387 | + if (!class_exists($namespace.'\\'.$class)) { |
|
388 | 388 | $this->files->delete(base_path($file)); |
389 | 389 | throw new \Exception("Unable to load the theme class file[$file]. please check autoload setting of composer.json"); |
390 | 390 | } |
@@ -449,11 +449,11 @@ discard block |
||
449 | 449 | |
450 | 450 | if ($unescapeUnicode && function_exists('mb_convert_encoding')) { |
451 | 451 | // https://stackoverflow.com/questions/2934563/how-to-decode-unicode-escape-sequences-like-u00ed-to-proper-utf-8-encoded-cha |
452 | - $buffer = preg_replace_callback('/(\\\\+)u([0-9a-f]{4})/i', function ($match) { |
|
452 | + $buffer = preg_replace_callback('/(\\\\+)u([0-9a-f]{4})/i', function($match) { |
|
453 | 453 | $l = strlen($match[1]); |
454 | 454 | |
455 | 455 | if ($l % 2) { |
456 | - return str_repeat('\\', $l - 1) . mb_convert_encoding( |
|
456 | + return str_repeat('\\', $l - 1).mb_convert_encoding( |
|
457 | 457 | pack('H*', $match[2]), |
458 | 458 | 'UTF-8', |
459 | 459 | 'UCS-2BE' |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | $this->originComposerStr = $composerStr; |
530 | 530 | $json = json_decode($composerStr, true); |
531 | 531 | $component = data_get($json, 'extra.xpressengine.component'); |
532 | - if(isset($component[$id])) { |
|
532 | + if (isset($component[$id])) { |
|
533 | 533 | throw new \Exception(sprintf('component[%s] already exists.', $id)); |
534 | 534 | } |
535 | 535 | $component[$id] = []; |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | protected function clean($file, $plugin, $template, $css) |
589 | 589 | { |
590 | 590 | // delete theme class file |
591 | - if(is_writable(base_path($file))) { |
|
591 | + if (is_writable(base_path($file))) { |
|
592 | 592 | $this->files->delete(base_path($file)); |
593 | 593 | } |
594 | 594 | |
@@ -596,19 +596,19 @@ discard block |
||
596 | 596 | |
597 | 597 | // unregister component from composer.json |
598 | 598 | $composerFile = $pluginEntity->getPath('composer.json'); |
599 | - if($this->originComposerStr !== null && is_writable($composerFile)) { |
|
599 | + if ($this->originComposerStr !== null && is_writable($composerFile)) { |
|
600 | 600 | $this->files->put($composerFile, $this->originComposerStr); |
601 | 601 | } |
602 | 602 | |
603 | 603 | // delete template file |
604 | 604 | $templateFile = $pluginEntity->getPath($template); |
605 | - if(is_writable($templateFile)) { |
|
605 | + if (is_writable($templateFile)) { |
|
606 | 606 | $this->files->delete($templateFile); |
607 | 607 | } |
608 | 608 | |
609 | 609 | // delete css file |
610 | 610 | $cssFile = $pluginEntity->getPath($css); |
611 | - if(is_writable($cssFile)) { |
|
611 | + if (is_writable($cssFile)) { |
|
612 | 612 | $this->files->delete($cssFile); |
613 | 613 | } |
614 | 614 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | $loop = 0; |
53 | 53 | try { |
54 | - while(true) { |
|
54 | + while (true) { |
|
55 | 55 | $files = $this->storage->paginate(['useCount' => 0, 'parentId' => null], 20); |
56 | 56 | if (count($files) < 1) { |
57 | 57 | break; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | private function intercept() |
84 | 84 | { |
85 | - intercept('XeStorage@remove', 'storage.optimize.log', function ($target, $file) { |
|
85 | + intercept('XeStorage@remove', 'storage.optimize.log', function($target, $file) { |
|
86 | 86 | |
87 | 87 | $this->bag[] = $file; |
88 | 88 | |
@@ -102,22 +102,22 @@ discard block |
||
102 | 102 | switch ($verbosity) { |
103 | 103 | case 2: |
104 | 104 | if ($file->parentId === null) { |
105 | - $this->info("\t" . $file->clientname); |
|
105 | + $this->info("\t".$file->clientname); |
|
106 | 106 | } |
107 | 107 | break; |
108 | 108 | case 3: |
109 | 109 | if ($file->parentId === null) { |
110 | - $this->line("\t" . |
|
111 | - $file->disk . "\t" . |
|
112 | - "<info>" . $file->clientname . "</info>\t" . |
|
110 | + $this->line("\t". |
|
111 | + $file->disk."\t". |
|
112 | + "<info>".$file->clientname."</info>\t". |
|
113 | 113 | bytes($file->size) |
114 | 114 | ); |
115 | 115 | } |
116 | 116 | break; |
117 | 117 | case 4: |
118 | - $this->line("\t" . |
|
119 | - $file->disk . "\t" . |
|
120 | - "<info>" . $file->clientname . "</info>\t" . |
|
118 | + $this->line("\t". |
|
119 | + $file->disk."\t". |
|
120 | + "<info>".$file->clientname."</info>\t". |
|
121 | 121 | bytes($file->size) |
122 | 122 | ); |
123 | 123 | break; |
@@ -14,10 +14,8 @@ |
||
14 | 14 | namespace App\Console\Commands; |
15 | 15 | |
16 | 16 | use Illuminate\Console\Command; |
17 | -use Xpressengine\Database\VirtualConnectionInterface; |
|
18 | 17 | use Symfony\Component\Console\Input\InputArgument; |
19 | 18 | use Symfony\Component\Console\Input\InputOption; |
20 | -use Xpressengine\Database\DatabaseHandler; |
|
21 | 19 | use Xpressengine\Translation\Translator; |
22 | 20 | |
23 | 21 | /** |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $dir = dir($dirPath); |
90 | 90 | |
91 | 91 | while ($entry = $dir->read()) { |
92 | - $path = $dirPath . DIRECTORY_SEPARATOR . $entry; |
|
92 | + $path = $dirPath.DIRECTORY_SEPARATOR.$entry; |
|
93 | 93 | if (is_dir($path)) { |
94 | 94 | continue; |
95 | 95 | } |
@@ -115,10 +115,10 @@ discard block |
||
115 | 115 | { |
116 | 116 | if (!$name) { |
117 | 117 | // core language |
118 | - return base_path('resources') . DIRECTORY_SEPARATOR . 'lang'; |
|
118 | + return base_path('resources').DIRECTORY_SEPARATOR.'lang'; |
|
119 | 119 | } |
120 | 120 | |
121 | - return base_path('plugins') . DIRECTORY_SEPARATOR . $name . DIRECTORY_SEPARATOR . 'langs'; |
|
121 | + return base_path('plugins').DIRECTORY_SEPARATOR.$name.DIRECTORY_SEPARATOR.'langs'; |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace App\Http\Controllers; |
3 | 3 | |
4 | -use Xpressengine\Http\Request; |
|
5 | 4 | use View; |
6 | 5 | use Artisan; |
7 | 6 | use File; |
@@ -83,8 +83,8 @@ |
||
83 | 83 | $this->checkSystem(); |
84 | 84 | |
85 | 85 | |
86 | - $appKeyPath = storage_path('app') . '/appKey'; |
|
87 | - $configPath = storage_path('app') . '/installConfig'; |
|
86 | + $appKeyPath = storage_path('app').'/appKey'; |
|
87 | + $configPath = storage_path('app').'/installConfig'; |
|
88 | 88 | |
89 | 89 | $string = Yaml::dump([ |
90 | 90 | 'site' => [ |