Skip to content

Commit

Permalink
Merge pull request #10 from spatie/analysis-8Qm42p
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
freekmurze authored Feb 17, 2018
2 parents 59eb05e + 4db7259 commit f8ab8a4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Profiles/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public function addDirective(string $directive, $values): self
$this->guardAgainstInvalidDirectives($directive);

foreach (array_wrap($values) as $value) {

$this->directives[$directive][] = $value;
}

Expand Down Expand Up @@ -73,7 +72,7 @@ public function shouldBeApplied(Request $request, Response $response): bool

public function addNonceForDirective(string $directive): self
{
return $this->addDirective($directive, "'nonce-" . app('csp-nonce') . "'");
return $this->addDirective($directive, "'nonce-".app('csp-nonce')."'");
}

public function applyTo(Response $response)
Expand All @@ -88,7 +87,7 @@ public function applyTo(Response $response)
return;
}

$response->headers->set($headerName, (string)$this);
$response->headers->set($headerName, (string) $this);
}

public function __toString()
Expand All @@ -104,7 +103,7 @@ public function __toString()

protected function guardAgainstInvalidDirectives(string $directive)
{
if (!Directive::isValid($directive)) {
if (! Directive::isValid($directive)) {
throw InvalidDirective::notSupported($directive);
}
}
Expand Down

0 comments on commit f8ab8a4

Please sign in to comment.