Skip to content

Commit

Permalink
Merge pull request spatie#3 from spatie/analysis-XZQw9a
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
sebastiandedeyne authored Sep 21, 2016
2 parents eb2a6e1 + a82e57b commit 730cf0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Helpers/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public static function mapToAssoc(array $items, callable $callback)
return array_reduce($items, function (array $assoc, $item) use ($callback) {
list($key, $value) = $callback($item);
$assoc[$key] = $value;

return $assoc;
}, []);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected function sanitizeScheme(string $scheme): string
{
$scheme = strtolower($scheme);

if (! in_array($scheme, static::VALID_SCHEMES)) {
if (!in_array($scheme, static::VALID_SCHEMES)) {
throw InvalidArgument::invalidScheme($scheme);
}

Expand Down Expand Up @@ -245,7 +245,7 @@ public function withDirname(string $dirname)
{
$dirname = trim($dirname, '/');

if (! $this->getBasename()) {
if (!$this->getBasename()) {
return $this->withPath($dirname);
}

Expand Down

0 comments on commit 730cf0d

Please sign in to comment.