Completed
Push — master ( cd378b...329175 )
by Ori
01:30
created
src/SchemaValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $descriptor = json_decode(json_encode($this->descriptor));
60 60
         $validator->validate(
61 61
             $descriptor,
62
-            (object) ['$ref' => 'file://'.realpath(dirname(__FILE__)).'/schemas/table-schema.json']
62
+            (object)['$ref' => 'file://' . realpath(dirname(__FILE__)) . '/schemas/table-schema.json']
63 63
         );
64 64
         if (!$validator->isValid()) {
65 65
             foreach ($validator->getErrors() as $error) {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     protected function validateKeys()
75 75
     {
76
-        $fieldNames = array_map(function ($field) {
76
+        $fieldNames = array_map(function($field) {
77 77
             return $field->name;
78 78
         }, $this->descriptor->fields);
79 79
         if (isset($this->descriptor->primaryKey)) {
Please login to merge, or discard this patch.