|
@@ -43,7 +43,7 @@ discard block |
|
|
block discarded – undo |
|
43
|
43
|
'direction' => GraphNavigatorInterface::DIRECTION_SERIALIZATION, |
|
44
|
44
|
'type' => FormInterface::class, |
|
45
|
45
|
'format' => $format, |
|
46
|
|
- 'method' => 'serializeFormTo' . ucfirst($format), |
|
|
46
|
+ 'method' => 'serializeFormTo'.ucfirst($format), |
|
47
|
47
|
]; |
|
48
|
48
|
$methods[] = [ |
|
49
|
49
|
'direction' => GraphNavigatorInterface::DIRECTION_SERIALIZATION, |
|
@@ -57,7 +57,7 @@ discard block |
|
|
block discarded – undo |
|
57
|
57
|
|
|
58
|
58
|
public function __construct(?object $translator = null, string $translationDomain = 'validators') |
|
59
|
59
|
{ |
|
60
|
|
- if (null !== $translator && (!$translator instanceof TranslatorInterface && !$translator instanceof TranslatorContract)) { |
|
|
60
|
+ if (null !== $translator && ( ! $translator instanceof TranslatorInterface && ! $translator instanceof TranslatorContract)) { |
|
61
|
61
|
throw new \InvalidArgumentException(sprintf( |
|
62
|
62
|
'The first argument passed to %s must be instance of %s or %s, %s given', |
|
63
|
63
|
self::class, |
Please login to merge, or discard this patch.