@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @param BodyParser[] $mappings keyed by content type |
19 | 19 | */ |
20 | 20 | public function __construct($mappings = []) { |
21 | - foreach($mappings as $contentType => $bodyParser) { |
|
21 | + foreach ($mappings as $contentType => $bodyParser) { |
|
22 | 22 | $this->add($contentType, $bodyParser); |
23 | 23 | } |
24 | 24 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @throws UnknownContentTypeException |
39 | 39 | */ |
40 | 40 | public function create(string $contentType): BodyParser { |
41 | - if(isset($this->contentTypeToParserMap[strtolower($contentType)])){ |
|
41 | + if (isset($this->contentTypeToParserMap[strtolower($contentType)])) { |
|
42 | 42 | return $this->contentTypeToParserMap[strtolower($contentType)]; |
43 | 43 | } |
44 | 44 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * @throws UnknownContentTypeException |
39 | 39 | */ |
40 | 40 | public function create(string $contentType): BodyParser { |
41 | - if(isset($this->contentTypeToParserMap[strtolower($contentType)])){ |
|
41 | + if(isset($this->contentTypeToParserMap[strtolower($contentType)])) { |
|
42 | 42 | return $this->contentTypeToParserMap[strtolower($contentType)]; |
43 | 43 | } |
44 | 44 |