Completed
Branch master (ab3fbf)
by Christopher
03:48
created
tests/Integration/ElasticsearchMappingTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     
118 118
     private function getTestBlueprintClosure() : \Closure
119 119
     {
120
-        return function (Blueprint $blueprint) {
120
+        return function(Blueprint $blueprint) {
121 121
             $blueprint->integer('id');
122 122
             $blueprint->text('name');
123 123
             $blueprint->keyword('email');
Please login to merge, or discard this patch.
tests/Unit/Mapping/BlueprintTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
         $this->blueprint->range('RANGE_DOUBLE', 'double');
44 44
         $this->blueprint->range('RANGE_DATE', 'date');
45 45
         $this->blueprint->range('RANGE_IP', 'ip');
46
-        $this->blueprint->nested('NESTED')->callback(function (Blueprint $blueprint) {
46
+        $this->blueprint->nested('NESTED')->callback(function(Blueprint $blueprint) {
47 47
             $blueprint->keyword('NESTED_KEYWORD');
48 48
         });
49
-        $this->blueprint->object('OBJECT')->callback(function (Blueprint $blueprint) {
49
+        $this->blueprint->object('OBJECT')->callback(function(Blueprint $blueprint) {
50 50
             $blueprint->keyword('OBJECT_KEYWORD');
51 51
         });
52 52
         $this->blueprint->geoPoint('GEO_POINT');
Please login to merge, or discard this patch.
tests/Unit/Mapping/CompilerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
                 ]
257 257
             ]
258 258
         ], $this->compiler->compileNested(new Fluent([
259
-            'callback' => function (Blueprint $blueprint) {
259
+            'callback' => function(Blueprint $blueprint) {
260 260
                 $blueprint->keyword('KEYWORD');
261 261
             }
262 262
         ])));
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
                 ]
276 276
             ]
277 277
         ], $this->compiler->compileObject(new Fluent([
278
-            'callback' => function (Blueprint $blueprint) {
278
+            'callback' => function(Blueprint $blueprint) {
279 279
                 $blueprint->keyword('KEYWORD');
280 280
             }
281 281
         ])));
Please login to merge, or discard this patch.
src/Mapping/Compiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -472,7 +472,7 @@
 block discarded – undo
472 472
             if ($field instanceof Fluent && !is_null($field->type)) {
473 473
                 $method = 'compile' . ucfirst($this->camelize($field->type));
474 474
                 if (method_exists($this, $method)) {
475
-                    $statements[$field->name] = (array)$this->$method($field);
475
+                    $statements[$field->name] = (array) $this->$method($field);
476 476
                 }
477 477
             }
478 478
         }
Please login to merge, or discard this patch.