From 7c31c3fb6d3db9230d25aea3993dce46482a3b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Guti=C3=A9rrez?= Date: Sat, 20 Oct 2018 19:17:04 +0200 Subject: [PATCH] fix CS --- composer.json | 2 +- src/ContainerTrait.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8e3b5d4..40c692a 100644 --- a/composer.json +++ b/composer.json @@ -101,7 +101,7 @@ }, "extra": { "hooks": { - "pre-commit": "composer qa && composer test-phpunit" + "pre-commit": "composer lint && composer qa && composer test-phpunit" } } } diff --git a/src/ContainerTrait.php b/src/ContainerTrait.php index faeaca7..2f331ea 100644 --- a/src/ContainerTrait.php +++ b/src/ContainerTrait.php @@ -37,7 +37,7 @@ trait ContainerTrait public function get($name) { try { - return strpos($name, '.') === false + return \strpos($name, '.') === false ? parent::get($name) : $this->getRecursive($name); } catch (NotFoundException $exception) { @@ -64,7 +64,7 @@ public function get($name) */ public function has($name) { - if (strpos($name, '.') === false) { + if (\strpos($name, '.') === false) { return parent::has($name); }