| Conditions | 6 |
| Paths | 6 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 10 |
| Ratio | 41.67 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 70 | protected function isOK(&$msg = null) |
||
| 71 | { |
||
| 72 | if (!$this->isStringNotNullOrEmpty($this->namespace)) { |
||
| 73 | $msg = "Namespace Must be defined"; |
||
| 74 | return false; |
||
| 75 | } |
||
| 76 | if (!$this->isTNamespaceNameValid($this->namespace)) { |
||
|
|
|||
| 77 | $msg = "Namespace Must be a valid NameSpace"; |
||
| 78 | return false; |
||
| 79 | } |
||
| 80 | |||
| 81 | |||
| 82 | View Code Duplication | if (null != $this->alias) { |
|
| 83 | if (!is_string($this->alias)) { |
||
| 84 | $msg = "Alias must be either a string or null"; |
||
| 85 | return false; |
||
| 86 | } |
||
| 87 | if (!$this->isTSimpleIdentifierValid($this->alias)) { |
||
| 88 | $msg = "Alias must be a valid TSimpleIdentifier"; |
||
| 89 | return false; |
||
| 90 | } |
||
| 91 | } |
||
| 92 | return true; |
||
| 93 | } |
||
| 94 | } |
||
| 95 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.