@@ -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 @@ |
||
| 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); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | class TTextType extends IsOK |
| 21 | 21 | { |
| 22 | - public function IsOK(&$msg = null){ |
|
| 22 | + public function IsOK(&$msg = null) { |
|
| 23 | 23 | return true; |
| 24 | 24 | } |
| 25 | 25 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function isTSimpleIdentifierValid($string) |
| 15 | 15 | { |
| 16 | - if(null == $string || empty($string)){ |
|
| 16 | + if (null == $string || empty($string)) { |
|
| 17 | 17 | return false; |
| 18 | 18 | } |
| 19 | 19 | return true; |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | use TQualifiedNameTrait; |
| 15 | 15 | public function isTUndottedIdentifierValid($string) |
| 16 | 16 | { |
| 17 | - if(!$this->isTQualifiedNameValid($string)){ |
|
| 17 | + if (!$this->isTQualifiedNameValid($string)) { |
|
| 18 | 18 | return false; |
| 19 | 19 | } |
| 20 | 20 | // <!-- The below pattern represents the allowed identifiers in ECMA specification plus the '.' for namespace qualification --> |
@@ -13,13 +13,13 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function isTStoreGeneratedPatternValid($string) |
| 15 | 15 | { |
| 16 | - if("None" == $string ){ |
|
| 16 | + if ("None" == $string) { |
|
| 17 | 17 | return true; |
| 18 | 18 | } |
| 19 | - if("Identity" == $string ){ |
|
| 19 | + if ("Identity" == $string) { |
|
| 20 | 20 | return true; |
| 21 | 21 | } |
| 22 | - if("Computed" == $string ){ |
|
| 22 | + if ("Computed" == $string) { |
|
| 23 | 23 | return true; |
| 24 | 24 | } |
| 25 | 25 | return false; |
@@ -13,13 +13,13 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function isTMultiplicityValid($string) |
| 15 | 15 | { |
| 16 | - if("0..1" == $string ){ |
|
| 16 | + if ("0..1" == $string) { |
|
| 17 | 17 | return true; |
| 18 | 18 | } |
| 19 | - if("1" == $string ){ |
|
| 19 | + if ("1" == $string) { |
|
| 20 | 20 | return true; |
| 21 | 21 | } |
| 22 | - if("*" == $string ){ |
|
| 22 | + if ("*" == $string) { |
|
| 23 | 23 | return true; |
| 24 | 24 | } |
| 25 | 25 | return false; |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function isTCommandTextValid($string) |
| 15 | 15 | { |
| 16 | - if(null == $string || empty($string)){ |
|
| 16 | + if (null == $string || empty($string)) { |
|
| 17 | 17 | return false; |
| 18 | 18 | } |
| 19 | 19 | return true; |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function isTQualifiedNameValid($string) |
| 10 | 10 | { |
| 11 | - if(null == $string || empty($string)){ |
|
| 11 | + if (null == $string || empty($string)) { |
|
| 12 | 12 | return false; |
| 13 | 13 | } |
| 14 | 14 | return true; |