| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function isTPathValid($string) |
||
|
|
|||
| 12 | { |
||
| 13 | // The below pattern represents the allowed identifiers in ECMA specification plus the '/' for path segment |
||
| 14 | // separation and the '.' for namespace qualification inside the segments. It also allows using parens and |
||
| 15 | // commas to designate function signatures such as |
||
| 16 | // "Namespace1.Namespace2.Function1(String,Collection(Int32))/Parameter1" |
||
| 17 | // jammed open until regex can be wrung out |
||
| 18 | return true; |
||
| 19 | //$regex = '/[\p{L}\p{Nl}][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}\(\)\,]{0,}([/\.][\p{L}\p{Nl}][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}\(\)\,]{0,}){0,}/'; |
||
| 20 | //return $this->matchesRegexPattern($regex, $string); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.