From 6818a86369ab0a80b184d7d7584ab0f7f6028471 Mon Sep 17 00:00:00 2001 From: Cvetomir Lazarov Date: Sun, 12 Aug 2018 14:43:57 +0300 Subject: [PATCH] Add spaces before NOT operators --- src/StringPrefix.php | 6 +++--- src/StringSuffix.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/StringPrefix.php b/src/StringPrefix.php index 86770171..123d2722 100644 --- a/src/StringPrefix.php +++ b/src/StringPrefix.php @@ -40,7 +40,7 @@ public function __construct($options = null) */ public function setPrefix($prefix) { - if (!is_string($prefix)) { + if (! is_string($prefix)) { throw new Exception\InvalidArgumentException(sprintf( '%s expects "prefix" to be string; received "%s"', __METHOD__, @@ -58,7 +58,7 @@ public function setPrefix($prefix) */ public function getPrefix() { - if (!isset($this->options['prefix'])) { + if (! isset($this->options['prefix'])) { throw new Exception\InvalidArgumentException(sprintf( '%s expects a "prefix" option; none given', __CLASS__ @@ -73,7 +73,7 @@ public function getPrefix() */ public function filter($value) { - if (!is_scalar($value)) { + if (! is_scalar($value)) { return $value; } diff --git a/src/StringSuffix.php b/src/StringSuffix.php index ec8ebce4..b2e45b4d 100644 --- a/src/StringSuffix.php +++ b/src/StringSuffix.php @@ -40,7 +40,7 @@ public function __construct($options = null) */ public function setSuffix($suffix) { - if (!is_string($suffix)) { + if (! is_string($suffix)) { throw new Exception\InvalidArgumentException(sprintf( '%s expects "suffix" to be string; received "%s"', __METHOD__, @@ -58,7 +58,7 @@ public function setSuffix($suffix) */ public function getSuffix() { - if (!isset($this->options['suffix'])) { + if (! isset($this->options['suffix'])) { throw new Exception\InvalidArgumentException(sprintf( '%s expects a "suffix" option; none given', __CLASS__ @@ -73,7 +73,7 @@ public function getSuffix() */ public function filter($value) { - if (!is_scalar($value)) { + if (! is_scalar($value)) { return $value; }