Completed
Push — master ( ffd66f...8de122 )
by Alexandr
03:45 queued 35s
created
examples/04_bookstore/schema-bootstrap.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (is_file(__DIR__ . '/../../../../../vendor/autoload.php')) {
4
-    require_once __DIR__ . '/../../../../../vendor/autoload.php';
3
+if (is_file(__DIR__.'/../../../../../vendor/autoload.php')) {
4
+    require_once __DIR__.'/../../../../../vendor/autoload.php';
5 5
 }
6
-require_once __DIR__ . '/../../vendor/autoload.php';
7
-require_once __DIR__ . '/Schema/Type/BookType.php';
8
-require_once __DIR__ . '/Schema/Type/AuthorType.php';
9
-require_once __DIR__ . '/Schema/Field/Book/RecentBooksField.php';
10
-require_once __DIR__ . '/DataProvider.php';
11
-require_once __DIR__ . '/Schema/BookStoreSchema.php';
6
+require_once __DIR__.'/../../vendor/autoload.php';
7
+require_once __DIR__.'/Schema/Type/BookType.php';
8
+require_once __DIR__.'/Schema/Type/AuthorType.php';
9
+require_once __DIR__.'/Schema/Field/Book/RecentBooksField.php';
10
+require_once __DIR__.'/DataProvider.php';
11
+require_once __DIR__.'/Schema/BookStoreSchema.php';
Please login to merge, or discard this patch.
src/Type/TypeService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,9 +129,9 @@
 block discarded – undo
129 129
         if (is_object($data)) {
130 130
             $getter = $path;
131 131
             if (substr($path, 0, 2) != 'is') {
132
-                $getter = 'get' . self::classify($path);
132
+                $getter = 'get'.self::classify($path);
133 133
                 if (!is_callable([$data, $getter])) {
134
-                    $getter = 'is' . self::classify($path);
134
+                    $getter = 'is'.self::classify($path);
135 135
                 }
136 136
                 if (!is_callable([$data, $getter])) {
137 137
                     $getter = self::classify($path);
Please login to merge, or discard this patch.
Tests/Parser/VariableTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function testGetValue($actual, $expected)
16 16
     {
17
-        $var = new Variable('foo', 'bar', false, false, new Location(1,1));
17
+        $var = new Variable('foo', 'bar', false, false, new Location(1, 1));
18 18
         $var->setValue($actual);
19 19
         $this->assertEquals($var->getValue(), $expected);
20 20
     }
@@ -25,13 +25,13 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function testGetNullValueException()
27 27
     {
28
-        $var = new Variable('foo', 'bar', false, false, new Location(1,1));
28
+        $var = new Variable('foo', 'bar', false, false, new Location(1, 1));
29 29
         $var->getValue();
30 30
     }
31 31
 
32 32
     public function testGetValueReturnsDefaultValueIfNoValueSet()
33 33
     {
34
-        $var = new Variable('foo', 'bar', false, false, new Location(1,1));
34
+        $var = new Variable('foo', 'bar', false, false, new Location(1, 1));
35 35
         $var->setDefaultValue('default-value');
36 36
 
37 37
         $this->assertEquals(
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     public function testGetValueReturnsSetValueEvenWithDefaultValue()
44 44
     {
45
-        $var = new Variable('foo', 'bar', false, false, new Location(1,1));
45
+        $var = new Variable('foo', 'bar', false, false, new Location(1, 1));
46 46
         $var->setValue('real-value');
47 47
         $var->setDefaultValue('default-value');
48 48
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function testIndicatesDefaultValuePresent()
56 56
     {
57
-        $var = new Variable('foo', 'bar', false, false, new Location(1,1));
57
+        $var = new Variable('foo', 'bar', false, false, new Location(1, 1));
58 58
         $var->setDefaultValue('default-value');
59 59
 
60 60
         $this->assertTrue(
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function testHasNoDefaultValue()
66 66
     {
67
-        $var = new Variable('foo', 'bar', false, false, new Location(1,1));
67
+        $var = new Variable('foo', 'bar', false, false, new Location(1, 1));
68 68
 
69 69
         $this->assertFalse(
70 70
             $var->hasDefaultValue()
Please login to merge, or discard this patch.
src/Parser/Ast/ArgumentValue/Variable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             if ($this->hasDefaultValue()) {
72 72
                 return $this->defaultValue;
73 73
             }
74
-            throw new \LogicException('Value is not set for variable "' . $this->name . '"');
74
+            throw new \LogicException('Value is not set for variable "'.$this->name.'"');
75 75
         }
76 76
 
77 77
         return $this->value;
Please login to merge, or discard this patch.
Tests/Schema/VariablesTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                         'args'    => [
24 24
                             'ids' => new ListType(new NonNullType(new IdType())),
25 25
                         ],
26
-                        'resolve' => function () {
26
+                        'resolve' => function() {
27 27
                             return 'item';
28 28
                         },
29 29
                     ],
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                         'args'    => [
101 101
                             'sortOrder' => new StringType(),
102 102
                         ],
103
-                        'resolve' => function ($args) {
103
+                        'resolve' => function($args) {
104 104
                             return sprintf('Result with %s order', empty($args['sortOrder']) ? 'default' : $args['sortOrder']);
105 105
                         },
106 106
                     ],
Please login to merge, or discard this patch.