@@ -8,6 +8,9 @@ |
||
8 | 8 | { |
9 | 9 | use xsdRestrictions; |
10 | 10 | |
11 | + /** |
|
12 | + * @param string $TNamespaceName |
|
13 | + */ |
|
11 | 14 | protected function isTNamespaceNameValid($TNamespaceName) |
12 | 15 | { |
13 | 16 | if (!$this->isNCName($TNamespaceName)) { |
@@ -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); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | public function __construct() |
20 | 20 | { |
21 | - $this->gExpressionMaximum = (0 == count($this->parameters)) ? 1 : 0 ; |
|
21 | + $this->gExpressionMaximum = (0 == count($this->parameters)) ? 1 : 0; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public function isTGenerationPatternValid($string) |
12 | 12 | { |
13 | 13 | if (!is_string($string)) { |
14 | - $msg = "Input must be a string: " . get_class($this); |
|
14 | + $msg = "Input must be a string: ".get_class($this); |
|
15 | 15 | throw new \InvalidArgumentException($msg); |
16 | 16 | } |
17 | 17 | return 'None' == $string || 'Identity' == $string || 'Computed' == $string; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public function isTCommandTextValid($string) |
12 | 12 | { |
13 | 13 | if (!is_string($string)) { |
14 | - $msg = "Input must be a string: ". get_class($this); |
|
14 | + $msg = "Input must be a string: ".get_class($this); |
|
15 | 15 | throw new \InvalidArgumentException($msg); |
16 | 16 | } |
17 | 17 | return true; |
@@ -7,7 +7,7 @@ |
||
7 | 7 | public function isTMultiplicityValid($string) |
8 | 8 | { |
9 | 9 | if (!is_string($string)) { |
10 | - $msg = "Input must be a string: ". get_class($this); |
|
10 | + $msg = "Input must be a string: ".get_class($this); |
|
11 | 11 | throw new \InvalidArgumentException($msg); |
12 | 12 | } |
13 | 13 | return '0..1' == $string || '1' == $string || '*' == $string; |
@@ -7,7 +7,7 @@ |
||
7 | 7 | public function isTParameterModeValid($string) |
8 | 8 | { |
9 | 9 | if (!is_string($string)) { |
10 | - $msg = "Input must be a string: ". get_class($this); |
|
10 | + $msg = "Input must be a string: ".get_class($this); |
|
11 | 11 | throw new \InvalidArgumentException($msg); |
12 | 12 | } |
13 | 13 | return 'In' == $string || 'Out' == $string || 'InOut' == $string; |
@@ -7,7 +7,7 @@ |
||
7 | 7 | public function isTConcurrencyModeValid($string) |
8 | 8 | { |
9 | 9 | if (!is_string($string)) { |
10 | - $msg = "Input must be a string: ". get_class($this); |
|
10 | + $msg = "Input must be a string: ".get_class($this); |
|
11 | 11 | throw new \InvalidArgumentException($msg); |
12 | 12 | } |
13 | 13 | return 'Fixed' == $string || 'None' == $string; |