Skip to content

Commit f07f557

Browse files
author
Alexandre Gérault
committed
style: fix for styleci
1 parent 8f63590 commit f07f557

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/Illuminate/Config/Repository.php

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Illuminate\Contracts\Config\Repository as ConfigContract;
77
use Illuminate\Support\Arr;
88
use Illuminate\Support\Traits\Macroable;
9-
use Webmozart\Assert\Assert;
109

1110
class Repository implements ArrayAccess, ConfigContract
1211
{
@@ -185,9 +184,9 @@ public function string(string $key): string
185184
{
186185
$value = $this->get($key);
187186

188-
if (!is_string($value)) {
187+
if (! is_string($value)) {
189188
throw new \InvalidArgumentException(
190-
sprintf("Configuration value for key [%s] must be a string, %s given.", $key, gettype($value))
189+
sprintf('Configuration value for key [%s] must be a string, %s given.', $key, gettype($value))
191190
);
192191
}
193192

@@ -201,9 +200,9 @@ public function array(string $key): array
201200
{
202201
$value = $this->get($key);
203202

204-
if (!is_array($value)) {
203+
if (! is_array($value)) {
205204
throw new \InvalidArgumentException(
206-
sprintf("Configuration value for key [%s] must be an array, %s given.", $key, gettype($value))
205+
sprintf('Configuration value for key [%s] must be an array, %s given.', $key, gettype($value))
207206
);
208207
}
209208

@@ -214,9 +213,9 @@ public function boolean(string $key): bool
214213
{
215214
$value = $this->get($key);
216215

217-
if(!is_bool($value)) {
216+
if (! is_bool($value)) {
218217
throw new \InvalidArgumentException(
219-
sprintf("Configuration value for key [%s] must be a boolean, %s given.", $key, gettype($value))
218+
sprintf('Configuration value for key [%s] must be a boolean, %s given.', $key, gettype($value))
220219
);
221220
}
222221

@@ -227,9 +226,9 @@ public function integer(string $key): int
227226
{
228227
$value = $this->get($key);
229228

230-
if (!is_int($value)) {
229+
if (! is_int($value)) {
231230
throw new \InvalidArgumentException(
232-
sprintf("Configuration value for key [%s] must be an integer, %s given.", $key, gettype($value))
231+
sprintf('Configuration value for key [%s] must be an integer, %s given.', $key, gettype($value))
233232
);
234233
}
235234

@@ -240,9 +239,9 @@ public function float(string $key): float
240239
{
241240
$value = $this->get($key);
242241

243-
if (!is_float($value)) {
242+
if (! is_float($value)) {
244243
throw new \InvalidArgumentException(
245-
sprintf("Configuration value for key [%s] must be a float, %s given.", $key, gettype($value))
244+
sprintf('Configuration value for key [%s] must be a float, %s given.', $key, gettype($value))
246245
);
247246
}
248247

0 commit comments

Comments
 (0)