original_string: public static function check()
      {
          $collections = self::getCollection();
  
          $jsonLastError = json_last_error();
  
          return isset($jsonLastError) ? $collections[$jsonLastError] : $collections['default'];
      }
code: public static function check()
      {
          $collections = self::getCollection();
  
          $jsonLastError = json_last_error();
  
          return isset($jsonLastError) ? $collections[$jsonLastError] : $collections['default'];
      }
code_tokens: public static function check ( ) { $ collections = self :: getCollection ( ) ; $ jsonLastError = json_last_error ( ) ; return isset ( $ jsonLastError ) ? $ collections [ $ jsonLastError ] : $ collections [ 'default' ] ; }
docstring: Check for errors.
  
  @return array|null
docstring_tokens: Check for errors .