@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function toString() |
69 | 69 | { |
70 | - return 'attribute "' . $this->attributeName . '" ' . |
|
70 | + return 'attribute "'.$this->attributeName.'" '. |
|
71 | 71 | $this->innerConstraint->toString(); |
72 | 72 | } |
73 | 73 |
@@ -50,6 +50,6 @@ |
||
50 | 50 | */ |
51 | 51 | public function toString() |
52 | 52 | { |
53 | - return 'is greater than ' . $this->exporter->export($this->value); |
|
53 | + return 'is greater than '.$this->exporter->export($this->value); |
|
54 | 54 | } |
55 | 55 | } |
@@ -50,6 +50,6 @@ |
||
50 | 50 | */ |
51 | 51 | public function toString() |
52 | 52 | { |
53 | - return 'is less than ' . $this->exporter->export($this->value); |
|
53 | + return 'is less than '.$this->exporter->export($this->value); |
|
54 | 54 | } |
55 | 55 | } |
@@ -56,8 +56,8 @@ |
||
56 | 56 | if ($other !== null) { |
57 | 57 | $message = ''; |
58 | 58 | if ($other instanceof Throwable) { |
59 | - $message = '. Message was: "' . $other->getMessage() . '" at' |
|
60 | - . "\n" . Filter::getFilteredStacktrace($other); |
|
59 | + $message = '. Message was: "'.$other->getMessage().'" at' |
|
60 | + . "\n".Filter::getFilteredStacktrace($other); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | return \sprintf( |
@@ -49,6 +49,6 @@ |
||
49 | 49 | */ |
50 | 50 | public function toString() |
51 | 51 | { |
52 | - return 'starts with "' . $this->prefix . '"'; |
|
52 | + return 'starts with "'.$this->prefix.'"'; |
|
53 | 53 | } |
54 | 54 | } |
@@ -29,17 +29,17 @@ |
||
29 | 29 | case JSON_ERROR_NONE: |
30 | 30 | return; |
31 | 31 | case JSON_ERROR_DEPTH: |
32 | - return $prefix . 'Maximum stack depth exceeded'; |
|
32 | + return $prefix.'Maximum stack depth exceeded'; |
|
33 | 33 | case JSON_ERROR_STATE_MISMATCH: |
34 | - return $prefix . 'Underflow or the modes mismatch'; |
|
34 | + return $prefix.'Underflow or the modes mismatch'; |
|
35 | 35 | case JSON_ERROR_CTRL_CHAR: |
36 | - return $prefix . 'Unexpected control character found'; |
|
36 | + return $prefix.'Unexpected control character found'; |
|
37 | 37 | case JSON_ERROR_SYNTAX: |
38 | - return $prefix . 'Syntax error, malformed JSON'; |
|
38 | + return $prefix.'Syntax error, malformed JSON'; |
|
39 | 39 | case JSON_ERROR_UTF8: |
40 | - return $prefix . 'Malformed UTF-8 characters, possibly incorrectly encoded'; |
|
40 | + return $prefix.'Malformed UTF-8 characters, possibly incorrectly encoded'; |
|
41 | 41 | default: |
42 | - return $prefix . 'Unknown error'; |
|
42 | + return $prefix.'Unknown error'; |
|
43 | 43 | } |
44 | 44 | } |
45 | 45 |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | case LogicalAnd::class: |
141 | 141 | case self::class: |
142 | 142 | case LogicalOr::class: |
143 | - return 'not( ' . $this->constraint->failureDescription($other) . ' )'; |
|
143 | + return 'not( '.$this->constraint->failureDescription($other).' )'; |
|
144 | 144 | |
145 | 145 | default: |
146 | 146 | return self::negate( |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | case LogicalAnd::class: |
161 | 161 | case self::class: |
162 | 162 | case LogicalOr::class: |
163 | - return 'not( ' . $this->constraint->toString() . ' )'; |
|
163 | + return 'not( '.$this->constraint->toString().' )'; |
|
164 | 164 | |
165 | 165 | default: |
166 | 166 | return self::negate( |
@@ -38,7 +38,7 @@ |
||
38 | 38 | foreach ($constraints as $constraint) { |
39 | 39 | if (!($constraint instanceof Constraint)) { |
40 | 40 | throw new \PHPUnit\Framework\Exception( |
41 | - 'All parameters to ' . __CLASS__ . |
|
41 | + 'All parameters to '.__CLASS__. |
|
42 | 42 | ' must be a constraint object.' |
43 | 43 | ); |
44 | 44 | } |
@@ -138,7 +138,7 @@ |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | throw new ExpectationFailedException( |
141 | - \trim($description . "\n" . $f->getMessage()), |
|
141 | + \trim($description."\n".$f->getMessage()), |
|
142 | 142 | $f |
143 | 143 | ); |
144 | 144 | } |