Skip to content

Commit 0fee2b9

Browse files
authored
Test CI (#718)
Fix linter
1 parent d1cd56f commit 0fee2b9

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
name: Check code styles
7272
command: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix -v --dry-run
7373

74-
# Run tests with phpunit
74+
# Run tests with phpunit
7575
#
7676
# If the PR is open by an Algolia, we run all the tests
7777
# with the keys in the env variables

src/Support/Helpers.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,10 @@ public static function json_decode($json, $assoc = false, $depth = 512)
109109
{
110110
$data = \json_decode($json, $assoc, $depth);
111111
if (JSON_ERROR_NONE !== json_last_error()) {
112-
throw new \InvalidArgumentException(sprintf(
113-
<<<'EXCEPTION'
112+
throw new \InvalidArgumentException(sprintf(<<<'EXCEPTION'
114113
json_decode_error: %s
115114
input string: %s
116-
EXCEPTION
117-
,
118-
json_last_error_msg(),
119-
$json
120-
));
115+
EXCEPTION, json_last_error_msg(), $json));
121116
}
122117

123118
return $data;

0 commit comments

Comments
 (0)