From cf3b87dcc58cea4127e34607404c88895d706469 Mon Sep 17 00:00:00 2001 From: Gijs Jorissen Date: Mon, 24 Jun 2019 12:14:49 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/DirectivesRepository.php | 2 +- src/directives.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DirectivesRepository.php b/src/DirectivesRepository.php index 0b284fb..8083762 100644 --- a/src/DirectivesRepository.php +++ b/src/DirectivesRepository.php @@ -40,6 +40,6 @@ public static function parseMultipleArgs($expression) */ public static function stripQuotes($expression) { - return str_replace(["'", "\""], '', $expression); + return str_replace(["'", '"'], '', $expression); } } diff --git a/src/directives.php b/src/directives.php index d8edeec..e3fe454 100644 --- a/src/directives.php +++ b/src/directives.php @@ -232,7 +232,7 @@ */ 'pushonce' => function ($expression) { - list($pushName, $pushSub) = explode(':', trim(substr($expression, 1, -1))); + [$pushName, $pushSub] = explode(':', trim(substr($expression, 1, -1))); $key = '__pushonce_'.str_replace('-', '_', $pushName).'_'.str_replace('-', '_', $pushSub);