original_string: public function filter($filter = 'image.filters.default')
      {
          $filters = (array) $this->get($filter, []);
          foreach ($filters as $params) {
              $params = (array) $params;
              $method = array_shift($params);
              $this->__call($method, $params);
          }
      }
code: public function filter($filter = 'image.filters.default')
      {
          $filters = (array) $this->get($filter, []);
          foreach ($filters as $params) {
              $params = (array) $params;
              $method = array_shift($params);
              $this->__call($method, $params);
          }
      }
code_tokens: public function filter ( $ filter = 'image.filters.default' ) { $ filters = ( array ) $ this -> get ( $ filter , [ ] ) ; foreach ( $ filters as $ params ) { $ params = ( array ) $ params ; $ method = array_shift ( $ params ) ; $ this -> __call ( $ method , $ params ) ; } }
docstring: Filter image by using user defined filter parameters.
  
  @param string $filter Filter to be used.
docstring_tokens: Filter image by using user defined filter parameters .