Skip to content

Commit

Permalink
Making phpcs happy
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Apr 3, 2017
1 parent 60e8f23 commit bc2495a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Routing/Middleware/SecurityMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ public function setCrossDomainPolicy($policy = 'all')
* Convenience method to check if a value is in the list of allowed args
*
* @throws \InvalidArgumentException Thrown when a value is invalid.
* @param string $value
* @param array $allowed
* @param string $value Value to check
* @param array $allowed List of allowed values
* @return void
*/
protected function checkValues($value, array $allowed)
{
if (!in_array($value, $allowed)) {
throw new InvalidArgumentException(sprintf(
'Invalid arg `%s`, use one of these: %s',
'Invalid arg `%s`, use one of these: %s',
$value,
implode(', ', $allowed)
)
Expand Down

0 comments on commit bc2495a

Please sign in to comment.