Completed
Push — master ( a4deca...b10287 )
by Ori
01:31
created
src/Table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *
19 19
      * @throws Exceptions\DataSourceException
20 20
      */
21
-    public function __construct($dataSource, $schema=null)
21
+    public function __construct($dataSource, $schema = null)
22 22
     {
23 23
         if (!is_a($dataSource, "frictionlessdata\\tableschema\\DataSources\\BaseDataSource")) {
24 24
             // TODO: more advanced data source detection
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 ])];
68 68
             } catch (Exceptions\FieldValidationException $e) {
69 69
                 // validation error in one of the fields
70
-                return array_map(function ($validationError) use ($i) {
70
+                return array_map(function($validationError) use ($i) {
71 71
                     return new SchemaValidationError(SchemaValidationError::ROW_FIELD_VALIDATION, [
72 72
                         'row' => $i + 1,
73 73
                         'field' => $validationError->extraDetails['field'],
Please login to merge, or discard this patch.
src/DataSources/BaseDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     public function __construct($dataSource, $options = null)
11 11
     {
12 12
         $this->dataSource = $dataSource;
13
-        $this->options = empty($options) ? (object) [] : $options;
13
+        $this->options = empty($options) ? (object)[] : $options;
14 14
     }
15 15
 
16 16
     abstract public function open();
Please login to merge, or discard this patch.