Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Bukashk0zzz committed Mar 9, 2016
1 parent a0f97cc commit 9d95ddd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Annotation/LiipImagineSerializableField.php
Expand Up @@ -136,11 +136,13 @@ public function setVirtualField($virtualField)
* @return bool
* @throws \Exception
*/
private function checkOption($optionName) {
private function checkOption($optionName)
{
if (array_key_exists($optionName, $this->options)) {
if (!is_string($this->options[$optionName])) {
throw new \InvalidArgumentException(sprintf('Option "'.$optionName.'" must be a string.'));
}

return true;
}

Expand Down

0 comments on commit 9d95ddd

Please sign in to comment.