Skip to content

Commit

Permalink
Improve consistency of indentation in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-holt committed Jan 27, 2020
1 parent b6ae361 commit 1f320eb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ Control of how error instances are grouped together can be achieved by passing a

```php
$raygunClient->SetGroupingKey(function($payload, $stackTrace) {
// Inspect the above parameters and return a hash from the properties ...
return $payload->Details->Error->Message; // Naive message-based grouping only
// Inspect the above parameters and return a hash from the properties ...
return $payload->Details->Error->Message; // Naive message-based grouping only
});
```

Expand All @@ -260,10 +260,10 @@ Some error data will be too sensitive to transmit to an external service, such a

```php
$raygunClient->setFilterParams([
'password' => true,
'creditcardnumber' => true,
'ccv' => true,
'php_auth_pw' => true, // filters basic auth from $_SERVER
'password' => true,
'creditcardnumber' => true,
'ccv' => true,
'php_auth_pw' => true, // filters basic auth from $_SERVER
]);
// Example input: ['Username' => 'myuser','Password' => 'secret']
// Example output: ['Username' => 'myuser','Password' => '[filtered]']
Expand All @@ -273,7 +273,7 @@ You can also define keys as regular expressions:

```php
$raygunClient->setFilterParams([
'/^credit/i' => true,
'/^credit/i' => true,
]);
// Example input: ['CreditCardNumber' => '4111111111111111','CreditCardCcv' => '123']
// Example output: ['CreditCardNumber' => '[filtered]','CreditCardCcv' => '[filtered]']
Expand All @@ -283,7 +283,7 @@ In case you want to retain some hints on the data rather than removing it comple

```php
$raygunClient->setFilterParams([
'Email' => function($key, $val) {return substr($val, 0, 5) . '...';}
'Email' => function($key, $val) {return substr($val, 0, 5) . '...';}
]);
// Example input: ['Email' => '[email protected]']
// Example output: ['Email' => 'test@...']
Expand Down

0 comments on commit 1f320eb

Please sign in to comment.