Skip to content

Commit d0b5d66

Browse files
StyleCIBotjiannei
authored andcommitted
Apply fixes from StyleCI
1 parent 375afba commit d0b5d66

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Support/Format.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ protected function formatMessage(int $code, string $message = ''): ?string
148148
$localizationKey = join('.', [Config::get('response.locale', 'enums'), $code]);
149149

150150
return match (true) {
151-
!$message && Lang::has($localizationKey) => Lang::get($localizationKey),
151+
! $message && Lang::has($localizationKey) => Lang::get($localizationKey),
152152
default => $message
153153
};
154154
}
@@ -272,7 +272,7 @@ protected function formatDataFields(array $data): array
272272
$formatConfig = Config::get('response.format.config', []);
273273

274274
foreach ($formatConfig as $key => $config) {
275-
if (!Arr::has($data, $key)) {
275+
if (! Arr::has($data, $key)) {
276276
continue;
277277
}
278278

@@ -285,7 +285,7 @@ protected function formatDataFields(array $data): array
285285
$key = $alias;
286286
}
287287

288-
if (!$show) {
288+
if (! $show) {
289289
$data = Arr::except($data, $key);
290290
}
291291
}

tests/Unit/SuccessTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,5 +304,3 @@
304304
expect(Response::success()->status())->toEqual(Format::data(null, '', 200)->response()->status())
305305
->and(Response::success()->content())->toEqual(Format::data(null, '', 200)->response()->content());
306306
});
307-
308-

0 commit comments

Comments
 (0)