Skip to content
Permalink
Browse files

Php Inspections (EA Ultimate): simplified a touched code fragment

  • Loading branch information...
vladimir.reznichenko
vladimir.reznichenko committed Jun 28, 2018
1 parent b991c2c commit c09b9c293d7660b94f444ec99fa610f910ddaf16
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/Http/ServerRequest.php
@@ -1107,8 +1107,7 @@ public function getHeaders()
$name = $key;
}
if ($name !== null) {
$name = str_replace('_', ' ', strtolower($name));
$name = str_replace(' ', '-', ucwords($name));
$name = ucwords(str_replace(['_', ' '], [' ', '-'], $name));
$headers[$name] = (array)$value;
}
}

0 comments on commit c09b9c2

Please sign in to comment.
You can’t perform that action at this time.