From 8c97e08792f7ec7295693c22bbb9f4a477e8b1ef Mon Sep 17 00:00:00 2001 From: Zds <49744633+zds-s@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:14:10 +0800 Subject: [PATCH 1/6] Remove auto cs-fix author --- .github/workflows/pull-request-cs-fixer.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pull-request-cs-fixer.yml b/.github/workflows/pull-request-cs-fixer.yml index f962adf3..89d8a1ba 100644 --- a/.github/workflows/pull-request-cs-fixer.yml +++ b/.github/workflows/pull-request-cs-fixer.yml @@ -30,6 +30,5 @@ jobs: with: add: '-A' author_name: StyleCI - author_email: root@imoi.cn message: 'Apply CS Fixer' push: true \ No newline at end of file From fd5d60f9847988da4934e8969c8f6577995b1af2 Mon Sep 17 00:00:00 2001 From: Zds <49744633+zds-s@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:15:20 +0800 Subject: [PATCH 2/6] test --- src/AppStore/src/Command/InstallCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AppStore/src/Command/InstallCommand.php b/src/AppStore/src/Command/InstallCommand.php index 531c00d6..f0d4651c 100644 --- a/src/AppStore/src/Command/InstallCommand.php +++ b/src/AppStore/src/Command/InstallCommand.php @@ -27,16 +27,16 @@ class InstallCommand extends Base public function __construct( ) { - parent::__construct(); + parent::__construct() ; } public function __invoke() { - $path = $this->input->getArgument('path'); - $yes = $this->input->getOption('yes'); + $path = $this->input->getArgument('path',); + $yes = $this->input->getOption('yes',); $info = Plugin::read($path); - $headers = ['Extension name', 'author', 'description', 'homepage']; + $headers = ['Extension name','author', 'description', 'homepage']; $rows[] = [ $info['name'], is_string($info['author']) ? $info['author'] : ($info['author'][0]['name'] ?? '--'), From da2c86d2010863d60c73efd38aac2ee585f01303 Mon Sep 17 00:00:00 2001 From: Zds <49744633+zds-s@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:15:37 +0800 Subject: [PATCH 3/6] test --- src/AppStore/src/Command/InstallCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppStore/src/Command/InstallCommand.php b/src/AppStore/src/Command/InstallCommand.php index f0d4651c..78f40617 100644 --- a/src/AppStore/src/Command/InstallCommand.php +++ b/src/AppStore/src/Command/InstallCommand.php @@ -39,7 +39,7 @@ public function __invoke() $headers = ['Extension name','author', 'description', 'homepage']; $rows[] = [ $info['name'], - is_string($info['author']) ? $info['author'] : ($info['author'][0]['name'] ?? '--'), + is_string($info['author'])?$info['author']: ($info['author'][0]['name'] ?? '--'), $info['description'], $info['homepage'] ?? '--', ]; From 3d8873db00d36d775c94f15c4a78581df7b5b88e Mon Sep 17 00:00:00 2001 From: Zds <49744633+zds-s@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:17:43 +0800 Subject: [PATCH 4/6] Update --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 13fc3d59..1b0a96e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,10 +2,13 @@ name: PHPUnit for MineAdmin on: push: + paths: + - 'src/**' pull_request: + paths: + - 'src/**' schedule: - cron: '0 2 * * *' - jobs: tests: name: Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} From b0b1161ac20561905a547a1e4d515536f1a28484 Mon Sep 17 00:00:00 2001 From: Zds <49744633+zds-s@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:18:01 +0800 Subject: [PATCH 5/6] Update --- .github/workflows/code-coverage.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 982490f6..0265a76d 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -2,7 +2,11 @@ name: Code Coverage Upload on: push: + paths: + - 'src/**' pull_request: + paths: + - 'src/**' schedule: - cron: '0 2 * * *' From d3204caf0f2159758703729b83325f6087df8736 Mon Sep 17 00:00:00 2001 From: StyleCI Date: Thu, 6 Jun 2024 02:19:34 +0000 Subject: [PATCH 6/6] Apply CS Fixer --- src/AppStore/src/Command/InstallCommand.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AppStore/src/Command/InstallCommand.php b/src/AppStore/src/Command/InstallCommand.php index 78f40617..531c00d6 100644 --- a/src/AppStore/src/Command/InstallCommand.php +++ b/src/AppStore/src/Command/InstallCommand.php @@ -27,19 +27,19 @@ class InstallCommand extends Base public function __construct( ) { - parent::__construct() ; + parent::__construct(); } public function __invoke() { - $path = $this->input->getArgument('path',); - $yes = $this->input->getOption('yes',); + $path = $this->input->getArgument('path'); + $yes = $this->input->getOption('yes'); $info = Plugin::read($path); - $headers = ['Extension name','author', 'description', 'homepage']; + $headers = ['Extension name', 'author', 'description', 'homepage']; $rows[] = [ $info['name'], - is_string($info['author'])?$info['author']: ($info['author'][0]['name'] ?? '--'), + is_string($info['author']) ? $info['author'] : ($info['author'][0]['name'] ?? '--'), $info['description'], $info['homepage'] ?? '--', ];