Completed
Pull Request — master (#2)
by Christopher
05:51
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.
src/Mapping/Compiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -498,7 +498,7 @@
 block discarded – undo
498 498
             if ($field instanceof Fluent && !is_null($field->type)) {
499 499
                 $method = 'compile' . ucfirst(camel_case($field->type));
500 500
                 if (method_exists($this, $method)) {
501
-                    $statements[$field->name] = (array)$this->$method($field);
501
+                    $statements[$field->name] = (array) $this->$method($field);
502 502
                 }
503 503
             }
504 504
         }
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
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
                 ]
282 282
             ]
283 283
         ], $this->compiler->compileNested(new FluentNested([
284
-            'callback' => function (Blueprint $blueprint) {
284
+            'callback' => function(Blueprint $blueprint) {
285 285
                 $blueprint->keyword('KEYWORD');
286 286
             }
287 287
         ])));
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
                 ]
301 301
             ]
302 302
         ], $this->compiler->compileObject(new FluentObject([
303
-            'callback' => function (Blueprint $blueprint) {
303
+            'callback' => function(Blueprint $blueprint) {
304 304
                 $blueprint->keyword('KEYWORD');
305 305
             }
306 306
         ])));
Please login to merge, or discard this patch.