Skip to content

Commit

Permalink
CS Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Apr 16, 2018
1 parent c128491 commit 95977a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Lib/Twig/Extension/Strings.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* file that was distributed with this source code.
*/
namespace WyriHaximus\TwigView\Lib\Twig\Extension;

use Cake\Utility\Text;

/**
Expand Down Expand Up @@ -39,7 +40,8 @@ public function getFilters()
new \Twig_SimpleFilter('excerpt', 'Cake\Utility\Text::excerpt'),
new \Twig_SimpleFilter('toList', 'Cake\Utility\Text::toList'),
new \Twig_SimpleFilter('stripLinks', function ($string) {
$previousrErrorHandler = set_error_handler(function () {});
$previousrErrorHandler = set_error_handler(function () {
});
$strippedString = Text::stripLinks($string);
set_error_handler($previousrErrorHandler);
return $strippedString;
Expand Down

0 comments on commit 95977a9

Please sign in to comment.