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 $name = Type::FLOAT;
public $description = public $description =
'The `Float` scalar type represents signed double-precision fractional ' . 'The `Float` scalar type represents signed double-precision fractional
'values as specified by ' . values as specified by
'[IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). '; [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ';
public function serialize($value) public function serialize($value)
{ {

View File

@ -9,11 +9,11 @@ class IDType extends ScalarType
public $name = 'ID'; public $name = 'ID';
public $description = public $description =
'The `ID` scalar type represents a unique identifier, often used to ' . '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 ' . 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. ' . 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 ' . When expected as an input type, any string (such as `"4"`) or integer
'(such as `4`) input value will be accepted as an ID.'; (such as `4`) input value will be accepted as an ID.';
public function serialize($value) public function serialize($value)
{ {

View File

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

View File

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