Code Duplication    Length = 11-13 lines in 2 locations

src/kint/parsers/custom/Kint_Parsers_Microtime.php 1 location

@@ 22-32 (lines=11) @@
19
   */
20
  protected function _parse(&$variable)
21
  {
22
    if (
23
        is_object($variable)
24
        ||
25
        is_array($variable)
26
        ||
27
        (string)$variable !== $variable
28
        ||
29
        !preg_match('[0\.[0-9]{8} [0-9]{10}]', $variable)
30
    ) {
31
      return false;
32
    }
33
34
    list($usec, $sec) = explode(' ', $variable);
35

src/kint/parsers/custom/Kint_Parsers_Timestamp.php 1 location

@@ 19-31 (lines=13) @@
16
   */
17
  private static function _fits(&$variable)
18
  {
19
    if (
20
        is_object($variable)
21
        ||
22
        is_array($variable)
23
        ||
24
        (
25
            (string)$variable !== $variable
26
            &&
27
            (int)$variable !== $variable
28
        )
29
    ) {
30
      return false;
31
    }
32
33
    $len = strlen((int)$variable);
34