From d60298630fa7bd302d9071440896dd7196ca0a3f Mon Sep 17 00:00:00 2001 From: Ghazanfar Mir Date: Wed, 30 Aug 2017 11:20:06 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Resources/Company.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Resources/Company.php b/src/Resources/Company.php index 8748919..2a3de49 100644 --- a/src/Resources/Company.php +++ b/src/Resources/Company.php @@ -100,9 +100,7 @@ public function find($number) if (count($this->with)) { foreach ($this->with as $resource) { - if (! in_array($resource, $this->valid_resources)) { - $valid_resource_string = implode(', ', $this->valid_resources); throw new InvalidArgumentException("Invalid resource ($resource). You must provide a valid company resource. e.g. $valid_resource_string."); @@ -129,9 +127,7 @@ public function find($number) */ public function searchAll($search, $items_per_page = 20, $start_index = 0) { - if (! empty($search)) { - $params = [ 'q' => $search, 'items_per_page' => $items_per_page,