original_string: public static function read($key = '', $default = null)
      {
          if (empty($key)) {
              return self::instance()->all();
          }
          if (!self::exists($key)) {
              return $default;
          }
          return self::instance()->get($key);
      }
code: public static function read($key = '', $default = null)
      {
          if (empty($key)) {
              return self::instance()->all();
          }
          if (!self::exists($key)) {
              return $default;
          }
          return self::instance()->get($key);
      }
code_tokens: public static function read ( $ key = '' , $ default = null ) { if ( empty ( $ key ) ) { return self :: instance ( ) -> all ( ) ; } if ( ! self :: exists ( $ key ) ) { return $ default ; } return self :: instance ( ) -> get ( $ key ) ; }
docstring: Read configuration value
  
  @param string $key     Configuration-Key Path
  @param mixed  $default Default value if key is empty/not-found
  
  @return mixed
docstring_tokens: Read configuration value