Skip to content

Commit 1b9b2fd

Browse files
committed
SDK-766: Remove unneeded returns
1 parent 91299f3 commit 1b9b2fd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Yoti/Util/Profile/AttributeConverter.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ private static function convertValueBasedOnContentType($value, $contentType)
6565
case self::CONTENT_TYPE_PNG:
6666
$imageExtension = self::imageTypeToExtension($contentType);
6767
return new Image($value, $imageExtension);
68-
break;
6968

7069
case self::CONTENT_TYPE_JSON:
7170
// Convert JSON string to an array
@@ -74,15 +73,12 @@ private static function convertValueBasedOnContentType($value, $contentType)
7473
throw new AttributeException("Error converting attr to a JSON Object");
7574
}
7675
return $value;
77-
break;
7876

7977
case self::CONTENT_TYPE_DATE:
8078
return self::convertTimestampToDate($value);
81-
break;
8279

8380
case self::CONTENT_TYPE_MULTI_VALUE:
8481
return self::convertMultiValue($value);
85-
break;
8682

8783
case self::CONTENT_TYPE_UNDEFINED:
8884
throw new AttributeException("Content Type is undefined");

0 commit comments

Comments
 (0)