| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class TwitterDates |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Parse twitter raw date. |
||
| 11 | * |
||
| 12 | * @param string $twitterDate |
||
| 13 | * |
||
| 14 | * @return Carbon|null |
||
| 15 | */ |
||
| 16 | public static function parse($twitterDate) |
||
| 17 | { |
||
| 18 | return $twitterDate ? Carbon::createFromTimestamp(strtotime($twitterDate)) : null; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Format twitter date to `Y-m-d H:i:s`. |
||
| 23 | * |
||
| 24 | * @param string $twitterDate |
||
| 25 | * @return null |
||
| 26 | */ |
||
| 27 | public static function formatToMysql($twitterDate) |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
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.