File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/magento/framework/Data/Form/Filter/Trim.php
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* Form Input/Output Trim Filter
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Framework\Data\Form\Filter;
class Trim implements \Magento\Framework\Data\Form\Filter\FilterInterface
{
/**
* Returns the result of filtering $value
*
* @param string $value
* @return string
*/
public function inputFilter($value)
{
return trim($value, ' ');
}
/**
* Returns the result of filtering $value
*
* @param string $value
* @return string
*/
public function outputFilter($value)
{
return $value;
}
}