| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | public static function isSame(string $to, string $from) |
||
| 58 | { |
||
| 59 | $toBreak = self::break($to); |
||
| 60 | $fromBreak = self::break($from); |
||
| 61 | $to = self::toDatabase($to); |
||
| 62 | $from = self::toDatabase($from); |
||
| 63 | if ($to === $from) { |
||
| 64 | return true; |
||
| 65 | } |
||
| 66 | if ($toBreak['first'] === $fromBreak['first'] && $toBreak['last'] === $fromBreak['last']) { |
||
| 67 | return true; |
||
| 68 | } |
||
| 69 | return false; |
||
| 70 | } |
||
| 73 |