Skip to content

Commit

Permalink
php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Dec 4, 2023
1 parent bcfd288 commit 57e4e24
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development Wiki
*/

namespace VuFind\View\Helper\Root;

use Laminas\View\Helper\AbstractHelper;
Expand Down Expand Up @@ -55,7 +56,7 @@ public function __invoke($str)

// Replace non-alphanumeric characters with underscores (to ensure
// legal translation keys):
$normalizedStr = preg_replace("/[^A-Za-z0-9 ]/", "_", $str);
$normalizedStr = preg_replace('/[^A-Za-z0-9 ]/', '_', $str);

// Now apply translation: ideally we want a match from the EDS namespace,
// but if that's not found, we'll fall back on the default namespace, and
Expand Down

0 comments on commit 57e4e24

Please sign in to comment.