@@ -37,6 +37,7 @@ |
||
37 | 37 | * Gets or sets the inner value |
38 | 38 | * |
39 | 39 | * @param string ...$value |
40 | + * @param string[] $value |
|
40 | 41 | * @return string |
41 | 42 | */ |
42 | 43 | public function value(...$value) |
@@ -32,6 +32,7 @@ |
||
32 | 32 | * Gets or sets the inner value |
33 | 33 | * |
34 | 34 | * @param integer ...$value |
35 | + * @param integer[] $value |
|
35 | 36 | * @return integer |
36 | 37 | */ |
37 | 38 | public function value(...$value) |
@@ -37,6 +37,7 @@ |
||
37 | 37 | * Gets or sets the inner value |
38 | 38 | * |
39 | 39 | * @param string ...$value |
40 | + * @param string[] $value |
|
40 | 41 | * @return string |
41 | 42 | */ |
42 | 43 | public function value(...$value) |
@@ -37,6 +37,7 @@ |
||
37 | 37 | * Gets or sets the inner value |
38 | 38 | * |
39 | 39 | * @param string ...$value |
40 | + * @param string[] $value |
|
40 | 41 | * @return string |
41 | 42 | */ |
42 | 43 | public function value(...$value) |
@@ -37,6 +37,7 @@ |
||
37 | 37 | * Gets or sets the inner value |
38 | 38 | * |
39 | 39 | * @param string ...$value |
40 | + * @param string[] $value |
|
40 | 41 | * @return string |
41 | 42 | */ |
42 | 43 | public function value(...$value) |
@@ -32,6 +32,7 @@ |
||
32 | 32 | * Gets or sets the inner value |
33 | 33 | * |
34 | 34 | * @param \DateTime ...$value |
35 | + * @param \DateTime[] $value |
|
35 | 36 | * @return \DateTime |
36 | 37 | */ |
37 | 38 | public function value(...$value) |
@@ -136,7 +136,7 @@ |
||
136 | 136 | $msg = 'Type name cannot be null or empty'; |
137 | 137 | return false; |
138 | 138 | } |
139 | - if (null != $this->modificationFunctionMapping && !$this->modificationFunctionMapping>isOK($msg)) { |
|
139 | + if (null != $this->modificationFunctionMapping && !$this->modificationFunctionMapping > isOK($msg)) { |
|
140 | 140 | return false; |
141 | 141 | } |
142 | 142 | if (!$this->isValidArray( |
@@ -188,14 +188,14 @@ discard block |
||
188 | 188 | { |
189 | 189 | $bar = m::mock(testType::class); |
190 | 190 | // closure needs to return true to match the matcher and thus trip the andReturn(false) bit |
191 | - $bar->shouldReceive('isOK')->with(m::on(function (&$msg) { |
|
191 | + $bar->shouldReceive('isOK')->with(m::on(function(&$msg) { |
|
192 | 192 | $msg = 'OH NOES!'; |
193 | 193 | return true; |
194 | 194 | }))->andReturn(false); |
195 | 195 | |
196 | 196 | $msg = null; |
197 | 197 | $expected = "OH NOES!"; |
198 | - $arr = [ $bar ]; |
|
198 | + $arr = [$bar]; |
|
199 | 199 | |
200 | 200 | $foo = new testType(); |
201 | 201 | $this->assertFalse($foo->isChildArrayOK($arr, $msg), $msg); |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $msg = null; |
248 | 248 | $obj = m::mock(testType::class); |
249 | 249 | // closure needs to return true to match the matcher and thus trip the andReturn(false) bit |
250 | - $obj->shouldReceive('isOK')->with(m::on(function (&$msg) { |
|
250 | + $obj->shouldReceive('isOK')->with(m::on(function(&$msg) { |
|
251 | 251 | $msg = null; |
252 | 252 | return true; |
253 | 253 | }))->andReturn(true); |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | $msg = null; |
261 | 261 | $obj = m::mock(testType::class); |
262 | 262 | // closure needs to return true to match the matcher and thus trip the andReturn(false) bit |
263 | - $obj->shouldReceive('isOK')->with(m::on(function (&$msg) { |
|
263 | + $obj->shouldReceive('isOK')->with(m::on(function(&$msg) { |
|
264 | 264 | $msg = 'OH NOES!'; |
265 | 265 | return true; |
266 | 266 | }))->andReturn(false); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | { |
286 | 286 | $foo = m::mock(testType::class)->makePartial(); |
287 | 287 | $foo->shouldReceive('isValidArray')->withAnyArgs()->andReturn(true); |
288 | - $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function (&$msg) { |
|
288 | + $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function(&$msg) { |
|
289 | 289 | $msg = 'OH NOES!'; |
290 | 290 | return true; |
291 | 291 | }))->andReturn(false); |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | { |
300 | 300 | $foo = m::mock(testType::class)->makePartial(); |
301 | 301 | $foo->shouldReceive('isValidArray')->withAnyArgs()->andReturn(true); |
302 | - $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function (&$msg) { |
|
302 | + $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function(&$msg) { |
|
303 | 303 | $msg = null; |
304 | 304 | return true; |
305 | 305 | }))->andReturn(true); |
@@ -673,11 +673,11 @@ discard block |
||
673 | 673 | $counter += isset($this->$name) ? 1 : 0; |
674 | 674 | } |
675 | 675 | if (-1 < $this->gExpressionMinimum && $counter < $this->gExpressionMinimum) { |
676 | - $msg = $counter . " fields not null. Need minimum of ".$this->gExpressionMinimum; |
|
676 | + $msg = $counter." fields not null. Need minimum of ".$this->gExpressionMinimum; |
|
677 | 677 | return false; |
678 | 678 | } |
679 | 679 | if (-1 < $this->gExpressionMaximum && $counter > $this->gExpressionMaximum) { |
680 | - $msg = $counter . " fields not null. Need maximum of ".$this->gExpressionMaximum; |
|
680 | + $msg = $counter." fields not null. Need maximum of ".$this->gExpressionMaximum; |
|
681 | 681 | return false; |
682 | 682 | } |
683 | 683 | } |
@@ -687,7 +687,7 @@ discard block |
||
687 | 687 | return false; |
688 | 688 | } |
689 | 689 | if (!$this->isObjectNullOrType($type, $this->$key)) { |
690 | - $msg = 'Type mismatch - should be ' .$type. ", is ".get_class($this->$key); |
|
690 | + $msg = 'Type mismatch - should be '.$type.", is ".get_class($this->$key); |
|
691 | 691 | return false; |
692 | 692 | } |
693 | 693 | } |