Skip to content

Commit

Permalink
use constants
Browse files Browse the repository at this point in the history
  • Loading branch information
petecoop committed Feb 20, 2017
1 parent fc629a2 commit 664af3d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Utils/SchemaPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ private static function isIntrospectionType($typename)
private static function isBuiltInScalar($typename)
{
return (
$typename === 'String' ||
$typename === 'Boolean' ||
$typename === 'Int' ||
$typename === 'Float' ||
$typename === 'ID'
$typename === Type::STRING ||
$typename === Type::BOOLEAN ||
$typename === Type::INT ||
$typename === Type::FLOAT ||
$typename === Type::ID
);
}

Expand Down

0 comments on commit 664af3d

Please sign in to comment.