Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed May 6, 2019
1 parent 9f26136 commit d61a165
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Extractor/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function buildDefinitionProperties($propertyTexts)
while ($name = array_shift($propertyTexts)) {
$type = array_shift($propertyTexts);

if ($name === 'quantity') {
if ('quantity' === $name) {
// quantitiy properties are sometimes wrongly documented as integer
$type = 'float';
}
Expand Down Expand Up @@ -515,7 +515,8 @@ public static function singularize($word)
return $word;
}

public static function snakeCase($word) {
public static function snakeCase($word)
{
return strtolower(preg_replace('/[A-Z]/', '_\\0', lcfirst($word)));
}

Expand Down

0 comments on commit d61a165

Please sign in to comment.