Fixed syntax errors specific to PHP5.5- to still support PHP5.4+

This commit is contained in:
vladar 2016-05-02 04:16:57 +06:00
parent 26db43e7c4
commit f7c8c670fe
4 changed files with 13 additions and 13 deletions

View File

@ -9,9 +9,9 @@ class FloatType extends ScalarType
public $name = Type::FLOAT;
public $description =
'The `Float` scalar type represents signed double-precision fractional ' .
'values as specified by ' .
'[IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ';
'The `Float` scalar type represents signed double-precision fractional
values as specified by
[IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ';
public function serialize($value)
{

View File

@ -9,11 +9,11 @@ class IDType extends ScalarType
public $name = 'ID';
public $description =
'The `ID` scalar type represents a unique identifier, often used to ' .
'refetch an object or as key for a cache. The ID type appears in a JSON ' .
'response as a String; however, it is not intended to be human-readable. ' .
'When expected as an input type, any string (such as `"4"`) or integer ' .
'(such as `4`) input value will be accepted as an ID.';
'The `ID` scalar type represents a unique identifier, often used to
refetch an object or as key for a cache. The ID type appears in a JSON
response as a String; however, it is not intended to be human-readable.
When expected as an input type, any string (such as `"4"`) or integer
(such as `4`) input value will be accepted as an ID.';
public function serialize($value)
{

View File

@ -17,8 +17,8 @@ class IntType extends ScalarType
public $name = Type::INT;
public $description =
'The `Int` scalar type represents non-fractional signed whole numeric ' .
'values. Int can represent values between -(2^31) and 2^31 - 1. ';
'The `Int` scalar type represents non-fractional signed whole numeric
values. Int can represent values between -(2^31) and 2^31 - 1. ';
public function serialize($value)
{

View File

@ -8,9 +8,9 @@ class StringType extends ScalarType
public $name = Type::STRING;
public $description =
'The `String` scalar type represents textual data, represented as UTF-8 ' .
'character sequences. The String type is most often used by GraphQL to ' .
'represent free-form human-readable text.';
'The `String` scalar type represents textual data, represented as UTF-8
character sequences. The String type is most often used by GraphQL to
represent free-form human-readable text.';
public function serialize($value)
{