[TASK] Replace simple preg_replace calls with trim 63/31763/6
authorBenjamin Mack <benni@b13.de>
Thu, 24 Jul 2014 14:06:52 +0000 (16:06 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Sun, 4 Jan 2015 21:25:47 +0000 (22:25 +0100)
commitc9af64352fd1fd6a7b7f83c12d7da8b3a31b7691
treebac1fd96873dbe88e02eec556dc39de870d62d92
parentaf50438d9c9f4d6dc6be059cba0fb4f74787a167
[TASK] Replace simple preg_replace calls with trim

There are a few occurrences where simple preg_replace calls are used
even though this can be accomplished with rtrim() or ltrim().
This improves readability and (maybe ;)) speed.

Resolves: #60534
Releases: master
Change-Id: Id834ce49df0f60a75f855c403ec15a79381d928d
Reviewed-on: http://review.typo3.org/31763
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Classes/Utility/File/BasicFileUtility.php