From 96118f99a0e44975458973664f28546da9c03ff6 Mon Sep 17 00:00:00 2001 From: Adam Schubert Date: Wed, 1 Nov 2017 13:52:42 +0100 Subject: [PATCH] Added option to force branch update --- src/Branch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Branch.php b/src/Branch.php index e2b6c20..2f5d309 100644 --- a/src/Branch.php +++ b/src/Branch.php @@ -40,9 +40,9 @@ public function __construct($apiKey, IBranchStorage $branchStorage) /** * @throws \Exception */ - public function initializeStorage() + public function initializeStorage($force = false) { - if (!$this->branchStorage->isStorageValid()) + if (!$this->branchStorage->isStorageValid() || $force) { $result = file_get_contents($this->jsonEndpoint); if (!$result)