Skip to content

Commit

Permalink
Unknown Update Types should not throw exception
Browse files Browse the repository at this point in the history
  • Loading branch information
XavRsl committed Apr 26, 2018
1 parent af15a4c commit 3b7ced4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Helpers/UpdateTypesStandardiser.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ class UpdateTypesStandardiser
'Retraction' => 'Retracted',
'retration' => 'Retracted',
'withdrawal' => 'Withdrawn',
'new_version' => 'New Version'
];

public static function getType($type)
{
if(!isset(self::TYPES_MAP[$type])) {
return $type;
}

return self::TYPES_MAP[$type];
}
}

0 comments on commit 3b7ced4

Please sign in to comment.