original_string: public static function getAppliedSorters()
      {
          $order = static::getOrderKey();
          $orderBy = static::getOrderByKey();
  
          $applied = \Illuminate\Support\Facades\Request::only($order, $orderBy);
  
          $applied = array_filter($applied);
  
          $default = [
              $orderBy => static::getDefaultOrderBy(),
              $order => static::getDefaultOrder()
          ];
  
          return $applied ?: $default;
      }
code: public static function getAppliedSorters()
      {
          $order = static::getOrderKey();
          $orderBy = static::getOrderByKey();
  
          $applied = \Illuminate\Support\Facades\Request::only($order, $orderBy);
  
          $applied = array_filter($applied);
  
          $default = [
              $orderBy => static::getDefaultOrderBy(),
              $order => static::getDefaultOrder()
          ];
  
          return $applied ?: $default;
      }
code_tokens: public static function getAppliedSorters ( ) { $ order = static :: getOrderKey ( ) ; $ orderBy = static :: getOrderByKey ( ) ; $ applied = \ Illuminate \ Support \ Facades \ Request :: only ( $ order , $ orderBy ) ; $ applied = array_filter ( $ applied ) ; $ default = [ $ orderBy => static :: getDefaultOrderBy ( ) , $ order => static :: getDefaultOrder ( ) ] ; return $ applied ? : $ default ; }
docstring: Get applied sorters from request or fallback to default.
  
  @return array
docstring_tokens: Get applied sorters from request or fallback to default .