Completed
Pull Request — master (#204)
by Ryan
11:34
created
src/Type/Scalar/AbstractScalarType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of graphql-youshido project.
15 15
  *
Please login to merge, or discard this patch.
src/Type/Scalar/IdType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of GraphQL project.
15 15
  *
@@ -32,15 +32,15 @@  discard block
 block discarded – undo
32 32
             return;
33 33
         }
34 34
 
35
-        return (string) $value;
35
+        return (string)$value;
36 36
     }
37 37
 
38 38
     public function getDescription()
39 39
     {
40
-        return 'The `ID` scalar type represents a unique identifier, often used to ' .
41
-               'refetch an object or as key for a cache. The ID type appears in a JSON ' .
42
-               'response as a String; however, it is not intended to be human-readable. ' .
43
-               'When expected as an input type, any string (such as `"4"`) or integer ' .
40
+        return 'The `ID` scalar type represents a unique identifier, often used to '.
41
+               'refetch an object or as key for a cache. The ID type appears in a JSON '.
42
+               'response as a String; however, it is not intended to be human-readable. '.
43
+               'When expected as an input type, any string (such as `"4"`) or integer '.
44 44
                '(such as `4`) input value will be accepted as an ID.';
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
src/Type/Scalar/StringType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of graphql-youshido project.
15 15
  *
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             return '';
45 45
         }
46 46
 
47
-        return (string) $value;
47
+        return (string)$value;
48 48
     }
49 49
 
50 50
     public function isValidValue($value)
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function getDescription()
56 56
     {
57
-        return 'The `String` scalar type represents textual data, represented as UTF-8 ' .
58
-               'character sequences. The String type is most often used by GraphQL to ' .
57
+        return 'The `String` scalar type represents textual data, represented as UTF-8 '.
58
+               'character sequences. The String type is most often used by GraphQL to '.
59 59
                'represent free-form human-readable text.';
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
src/Type/NonNullType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of GraphQL project.
15 15
  *
Please login to merge, or discard this patch.
src/Type/TypeFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of GraphQL project.
15 15
  *
@@ -43,17 +43,17 @@  discard block
 block discarded – undo
43 43
             if (empty(self::$objectsHash[$type])) {
44 44
                 $name = \ucfirst($type);
45 45
 
46
-                $name = 'Datetime'   === $name ? 'DateTime' : $name;
46
+                $name = 'Datetime' === $name ? 'DateTime' : $name;
47 47
                 $name = 'Datetimetz' === $name ? 'DateTimeTz' : $name;
48 48
 
49
-                $className                = 'Youshido\GraphQL\Type\Scalar\\' . $name . 'Type';
49
+                $className                = 'Youshido\GraphQL\Type\Scalar\\'.$name.'Type';
50 50
                 self::$objectsHash[$type] = new $className();
51 51
             }
52 52
 
53 53
             return self::$objectsHash[$type];
54 54
         }
55 55
 
56
-        throw new ConfigurationException('Configuration problem with type ' . $type);
56
+        throw new ConfigurationException('Configuration problem with type '.$type);
57 57
     }
58 58
 
59 59
     /**
Please login to merge, or discard this patch.
src/Type/TypeInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of graphql-youshido project.
15 15
  *
Please login to merge, or discard this patch.
src/Type/AbstractInterfaceTypeInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of GraphQL project.
15 15
  *
Please login to merge, or discard this patch.
src/Type/TypeMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of graphql-youshido project.
15 15
  *
Please login to merge, or discard this patch.
src/Type/Enum/EnumType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 07.12.15.
15 15
  */
Please login to merge, or discard this patch.