@@ -15,7 +15,7 @@ |
||
15 | 15 | public function __construct(ConstraintViolationListInterface $errors, string $message = '', int $code = 0, Throwable $previous = null) |
16 | 16 | { |
17 | 17 | $this->errors = $errors; |
18 | - parent::__construct((string)$errors . '. ' . $message, $code, $previous); |
|
18 | + parent::__construct((string) $errors . '. ' . $message, $code, $previous); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | public function getErrors() |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $url, |
53 | 53 | self::getGuzzleOps() |
54 | 54 | ); |
55 | - return (string)$res->getBody(); |
|
55 | + return (string) $res->getBody(); |
|
56 | 56 | } catch (RequestException $e) { |
57 | 57 | return vsprintf( |
58 | 58 | '<p><b>Request Exception</b>: %s<br/><small><a href="%s">%s</a></small></p>', |
@@ -56,7 +56,7 @@ |
||
56 | 56 | $this->propertyAccessor->setValue($entity, $field, $file); |
57 | 57 | $errors = $this->validator->validate($entity); |
58 | 58 | if ($errors !== null && \count($errors)) { |
59 | - throw new InvalidArgumentException((string)$errors); |
|
59 | + throw new InvalidArgumentException((string) $errors); |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $this->parent = $parent; |
63 | 63 | if ($parent && $cascadeValidComponent !== false) { |
64 | 64 | // convert to bool again for $force (null becomes false) |
65 | - $this->cascadeValidComponents($parent, (bool)$cascadeValidComponent); |
|
65 | + $this->cascadeValidComponents($parent, (bool) $cascadeValidComponent); |
|
66 | 66 | } |
67 | 67 | if (null === $this->sort || $sortLast !== null) { |
68 | 68 | $this->setSort($this->calculateSort($sortLast)); |
@@ -101,7 +101,7 @@ |
||
101 | 101 | if (method_exists($choice, 'getMessage')) { |
102 | 102 | $this->vars[$var][] = $choice->getMessage(); |
103 | 103 | } else { |
104 | - $this->vars[$var][] = (array)$choice; |
|
104 | + $this->vars[$var][] = (array) $choice; |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | } |