From 8ff1a92cc917192a68bf7abe85c06c62f4bd25a3 Mon Sep 17 00:00:00 2001 From: lopadova Date: Sat, 10 Sep 2016 23:16:04 +0200 Subject: [PATCH] # 1.1.2 - 2016-09-10 ### CHANGE - Small refactor of RequestHelper::getFileSafe to reduce Cyclomatyc Complexity. --- CHANGELOG.md | 4 ++++ src/RequestHelper.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11dfc76..bf7c765 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All Notable changes to `laravel-request` will be documented in this file +## 1.1.2 - 2016-09-10 +### CHANGE +- Small refactor of RequestHelper::getFileSafe to reduce Cyclomatyc Complexity. + ## 1.1.1 - 2016-09-10 ### CHANGE - Add a PHPUnit abstract method in UploadedFileTestable trait. diff --git a/src/RequestHelper.php b/src/RequestHelper.php index b000523..0b108c2 100644 --- a/src/RequestHelper.php +++ b/src/RequestHelper.php @@ -81,7 +81,7 @@ public static function getFileSafe( string $uploadField, Request $request ) { - if (!$request || $uploadField === null || $uploadField == '') { + if (!$request) { return null; }