Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

修改targetPath为Laravel 9目录结构 && 代码格式调整 #87

Merged
merged 1 commit into from
Apr 16, 2022

Conversation

wjfz
Copy link

@wjfz wjfz commented Mar 2, 2022

No description provided.


if (!is_dir($targetPath) && !mkdir($targetPath)) {
return $this->error('The lang path "resources/lang/" does not exist or not writable.');
$this->error('The lang path "lang" does not exist or not writable.');
return;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$this->error 的return type为void


$process->run(function ($type, $buffer) {
if (Process::ERR === $type) {
return $this->error(trim($buffer));
$this->error(trim($buffer));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'return' is unnecessary as the last statement in a function

*/
public function __construct(Filesystem $files, $path, $paths = [])
public function __construct(Filesystem $files, string $path, array $paths = [])
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parent的$path参数类型为string

@overtrue overtrue merged commit 588251b into overtrue:master Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants