Skip to content

Commit dbaa2f2

Browse files
committed
SDK-766: Declare convertMultiValue() as static and remove unneeded returns
1 parent 72b09f5 commit dbaa2f2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Yoti/Entity/MultiValue.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public function filterInstance($type)
9393
return $this->filter(function ($item) use ($type) {
9494
return $item instanceof $type;
9595
});
96-
return $this;
9796
}
9897

9998
/**
@@ -108,7 +107,6 @@ public function filterType($type)
108107
return $this->filter(function ($item) use ($type) {
109108
return gettype($item) === $type;
110109
});
111-
return $this;
112110
}
113111

114112
/**

src/Yoti/Util/Profile/AttributeConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private static function convertValueBasedOnContentType($value, $contentType)
9191
* @param string $value
9292
* @return MultiValue
9393
*/
94-
private function convertMultiValue($value)
94+
private static function convertMultiValue($value)
9595
{
9696
$protoMultiValue = new \Attrpubapi\MultiValue();
9797
$protoMultiValue->mergeFromString($value);

0 commit comments

Comments
 (0)