From 84cb2e98a1106433a5e8923f54a62ba4123f1e57 Mon Sep 17 00:00:00 2001 From: dpslwk Date: Thu, 2 Jan 2020 16:30:53 +0000 Subject: [PATCH] Break not continue --- CHANGELOG.md | 5 +++++ src/Serializer/Normalizer/ViMbAdminNormalizer.php | 4 ++-- src/ViMbAdminClient.php | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba66cfe..a838661 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All Notable changes to `ViMbAdminClient` will be documented in this file. Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles. +## 1.1.1 (released 2020-01-02) + +### Fixed +- break not continue + ## 1.1.0 (released 2019-12-21) ### Added diff --git a/src/Serializer/Normalizer/ViMbAdminNormalizer.php b/src/Serializer/Normalizer/ViMbAdminNormalizer.php index 5bdd501..105403b 100644 --- a/src/Serializer/Normalizer/ViMbAdminNormalizer.php +++ b/src/Serializer/Normalizer/ViMbAdminNormalizer.php @@ -153,7 +153,7 @@ public function denormalize($data, $class, $format = null, array $context = []) case 'links': // create a new Link object and add it to the $object if its not an array object if ( ! $object) { - continue; + break; } $link = new Link(); foreach ($value as $key => $_value) { @@ -186,7 +186,7 @@ public function denormalize($data, $class, $format = null, array $context = []) $relationships = $relations['data']; } if ( ! $relationships) { - continue; + break; } foreach ($relationships as $relation) { diff --git a/src/ViMbAdminClient.php b/src/ViMbAdminClient.php index 77d90f5..8f40183 100644 --- a/src/ViMbAdminClient.php +++ b/src/ViMbAdminClient.php @@ -66,8 +66,8 @@ class ViMbAdminClient public function __construct( TokenStore $tokenStore, \Illuminate\Config\Repository $config, - ViMbAdminNormalizer $normalizer) - { + ViMbAdminNormalizer $normalizer + ) { $this->tokenStore = $tokenStore; // TODO: strip traling / from url $this->apiUrl = $config->get('vimbadmin.api_url');