Skip to content

Commit

Permalink
Automatically applied php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cindreta authored and actions-user committed Feb 25, 2022
1 parent 1f8f4ad commit b9b94ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Middlewares/TreblleMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ public function maskFields($data): array
}

// PROVIDE A FALLBACK IN CASE SOMEONE FORGOT TO CLEAR CACHE
$fields = config('treblle.masked_fields', [
$fields = config(
'treblle.masked_fields',
[
'password',
'pwd',
'secret',
Expand All @@ -177,8 +179,7 @@ public function maskFields($data): array
]
);


if(!empty($fields)) {
if (!empty($fields)) {
foreach ($data as $key => $value) {
if (is_array($value)) {
$this->maskFields($value);
Expand Down

0 comments on commit b9b94ff

Please sign in to comment.