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

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
justmd5 authored and StyleCIBot committed Mar 17, 2019
1 parent 8702b36 commit 8423cee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(Signature $signature, $classify, $filter)
public function request($method, $params = [], $files = [])
{
$url = sprintf('%s/%s/%s_%s', self::BASE_API, $this->classify, $this->classify, strtolower($method));
if (!key_exists(strtolower($method),$this->filter)) {
if (!array_key_exists(strtolower($method), $this->filter)) {
throw new NotFoundException(sprintf('the url %s can not found!please reaffirm', $url));
}
$factory = new ValidatorFactory(new Translator());
Expand Down
2 changes: 1 addition & 1 deletion src/Core/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

namespace Justmd5\TencentAi\Core;

use Pimple\Container;
use Hanson\Foundation\Foundation;
use Pimple\Container;
use Pimple\ServiceProviderInterface;

class CoreServiceProvider implements ServiceProviderInterface
Expand Down

0 comments on commit 8423cee

Please sign in to comment.