From e6489efac1ea71570951ee0fa26b91d72ffbd185 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Sat, 29 Feb 2020 12:37:22 +0100 Subject: [PATCH] fix complexity --- rules/php-72/src/Rector/FuncCall/GetClassOnNullRector.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rules/php-72/src/Rector/FuncCall/GetClassOnNullRector.php b/rules/php-72/src/Rector/FuncCall/GetClassOnNullRector.php index fdc16da31206..6f9910fb103d 100644 --- a/rules/php-72/src/Rector/FuncCall/GetClassOnNullRector.php +++ b/rules/php-72/src/Rector/FuncCall/GetClassOnNullRector.php @@ -122,11 +122,7 @@ private function shouldSkip(FuncCall $funcCall): bool return true; } - if ($this->isNotIdenticalToNull($funcCall, $parentNode)) { - return true; - } - - return false; + return $this->isNotIdenticalToNull($funcCall, $parentNode); } /**