original_string: public static function countMaxDepth(array $array)
      {
          $maxDepth = 1;
          foreach ($array as $element) {
              $depth = 1;
              if (is_array($element)) {
                  $depth += self::countMaxDepth($element);
              }
              if ($depth > $maxDepth) $maxDepth = $depth;
          }
  
          return $maxDepth;
      }
code: public static function countMaxDepth(array $array)
      {
          $maxDepth = 1;
          foreach ($array as $element) {
              $depth = 1;
              if (is_array($element)) {
                  $depth += self::countMaxDepth($element);
              }
              if ($depth > $maxDepth) $maxDepth = $depth;
          }
  
          return $maxDepth;
      }
code_tokens: public static function countMaxDepth ( array $ array ) { $ maxDepth = 1 ; foreach ( $ array as $ element ) { $ depth = 1 ; if ( is_array ( $ element ) ) { $ depth += self :: countMaxDepth ( $ element ) ; } if ( $ depth > $ maxDepth ) $ maxDepth = $ depth ; } return $ maxDepth ; }
docstring: Counts maximum array depth recursively
  
  @param array $array
  
  @return int
docstring_tokens: Counts maximum array depth recursively