@@ -88,7 +88,7 @@ |
||
| 88 | 88 | foreach ($this->validators as $validator) { |
| 89 | 89 | if (!$validator->validate($value)) { |
| 90 | 90 | throw new InvalidValueException( |
| 91 | - "Field {$this->name}, was set with invalid value: " . var_export($value, true) |
|
| 91 | + "Field {$this->name}, was set with invalid value: ".var_export($value, true) |
|
| 92 | 92 | ); |
| 93 | 93 | } |
| 94 | 94 | } |
@@ -29,6 +29,6 @@ |
||
| 29 | 29 | return new $val; |
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | - throw new \Exception('Unsupported annotation: ' . get_class($annotation)); |
|
| 32 | + throw new \Exception('Unsupported annotation: '.get_class($annotation)); |
|
| 33 | 33 | } |
| 34 | 34 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $value = $propertyParser->parse( |
| 79 | 79 | $this->getFromRequest($request, $propertyName) |
| 80 | 80 | ); |
| 81 | - $method = 'set' . ucfirst($propertyName); |
|
| 81 | + $method = 'set'.ucfirst($propertyName); |
|
| 82 | 82 | $object->$method($value); |
| 83 | 83 | } |
| 84 | 84 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | try { |
| 43 | 43 | $this->setProperty($request, $object, $propertyName, $propertyParser); |
| 44 | 44 | } catch (InvalidValueException $e) { |
| 45 | - $exception = new InvalidRequestException($propertyName . ': ' . $e->getMessage()); |
|
| 45 | + $exception = new InvalidRequestException($propertyName.': '.$e->getMessage()); |
|
| 46 | 46 | $exception->setErrors([$propertyName => $e->getMessage()]); |
| 47 | 47 | throw $exception; |
| 48 | 48 | } |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | private function generateRequestParserObject($className, $parser) |
| 75 | 75 | { |
| 76 | - $cacheKey = str_replace('\\', '', $className . get_class($parser)); |
|
| 76 | + $cacheKey = str_replace('\\', '', $className.get_class($parser)); |
|
| 77 | 77 | $cacheItem = $this->cache->getItem($cacheKey); |
| 78 | 78 | $return = $cacheItem->get(); |
| 79 | 79 | if ($return === null) { |