Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Commit 8423cee

Browse files
justmd5StyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 8702b36 commit 8423cee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Core/API.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(Signature $signature, $classify, $filter)
5151
public function request($method, $params = [], $files = [])
5252
{
5353
$url = sprintf('%s/%s/%s_%s', self::BASE_API, $this->classify, $this->classify, strtolower($method));
54-
if (!key_exists(strtolower($method),$this->filter)) {
54+
if (!array_key_exists(strtolower($method), $this->filter)) {
5555
throw new NotFoundException(sprintf('the url %s can not found!please reaffirm', $url));
5656
}
5757
$factory = new ValidatorFactory(new Translator());

src/Core/CoreServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
namespace Justmd5\TencentAi\Core;
1010

11-
use Pimple\Container;
1211
use Hanson\Foundation\Foundation;
12+
use Pimple\Container;
1313
use Pimple\ServiceProviderInterface;
1414

1515
class CoreServiceProvider implements ServiceProviderInterface

0 commit comments

Comments
 (0)