@@ -59,7 +59,7 @@ discard block |
||
| 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 |
||
| 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)) { |