Completed
Pull Request — master (#8)
by
unknown
08:29 queued 04:11
created
src/DatasetBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 
5 5
 class DatasetBuilder
6 6
 {
7
-    private $fields     = [];
8
-    private $parameters = [];
7
+    private $fields     = [ ];
8
+    private $parameters = [ ];
9 9
 
10 10
     /**
11 11
      * @return array
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function addField($id, TypeInterface $fieldDefinition)
28 28
     {
29
-        $this->fields[$id] = $fieldDefinition->toArray();
29
+        $this->fields[ $id ] = $fieldDefinition->toArray();
30 30
 
31 31
         return $this;
32 32
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function addParam($paramName, $value)
43 43
     {
44
-        $this->parameters[$paramName] = $value;
44
+        $this->parameters[ $paramName ] = $value;
45 45
 
46 46
         return $this;
47 47
     }
Please login to merge, or discard this patch.
src/RequestFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function getAppendRequest($datasetName, array $rows)
56 56
     {
57
-        $data = [];
57
+        $data = [ ];
58 58
         foreach ($rows as $row) {
59
-            $data[] = $row->getData();
59
+            $data[ ] = $row->getData();
60 60
         }
61 61
 
62 62
         return new Request(
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 'Content-Type' => 'application/json',
67 67
                 'Authorization' => 'Basic '.base64_encode($this->apiKey.':'),
68 68
             ],
69
-            \GuzzleHttp\json_encode(['data' => $data])
69
+            \GuzzleHttp\json_encode([ 'data' => $data ])
70 70
         );
71 71
     }
72 72
 
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function getReplaceRequest($datasetName, array $rows)
80 80
     {
81
-        $data = [];
81
+        $data = [ ];
82 82
         foreach ($rows as $row) {
83
-            $data[] = $row->getData();
83
+            $data[ ] = $row->getData();
84 84
         }
85 85
 
86 86
         return new Request(
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                 'Content-Type' => 'application/json',
91 91
                 'Authorization' => 'Basic '.base64_encode($this->apiKey.':'),
92 92
             ],
93
-            \GuzzleHttp\json_encode(['data' => $data])
93
+            \GuzzleHttp\json_encode([ 'data' => $data ])
94 94
         );
95 95
     }
96 96
 
Please login to merge, or discard this patch.