/Sculpture/Packages/MVC/View/Filter/RTrim.php
PHP | 61 lines | 10 code | 18 blank | 33 comment | 0 complexity | 58c94426bf2716a6da4c93acf558c2ed MD5 | raw file
- <?php
- namespace MVC\View\Filter;
- /*
- * Copyright 2011 Richard Downes
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- use MVC\View\IFilter;
- /**
- * Contains View\Filter\RTrim class
- *
- * @author Richard Downes <richard@sculpt.ie>
- * @copyright Copyright (c) 2011, Richard Downes
- * @package View.Filter
- */
- /**
- * Responsible for filtering the input by trimming whitespace from the right
- *
- * @author Richard Downes <richard@sculpt.ie>
- */
- class RTrim implements IFilter
- {
- /**
- * Filters the input by trimming whitespace from the right
- *
- * @param string $value The value to filter
- * @return string
- */
- public function filter($value)
- {
- return rtrim($value);
- }
- }