Passed
Push — master ( 3a127f...19e1d1 )
by Grzegorz
28:06
created
src/RequestFactory.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                 'headers' => [
42 42
                     'Content-Type' => 'application/json',
43 43
                 ],
44
-                'auth'    => [$this->apiKey, ''],
44
+                'auth'    => [ $this->apiKey, '' ],
45 45
                 'json'    => $dataSet->getDefinition(),
46 46
             ]
47 47
         );
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function getAppendRequest($datasetName, array $rows)
57 57
     {
58
-        $data = [];
58
+        $data = [ ];
59 59
         foreach ($rows as $row) {
60
-            $data[] = $row->getData();
60
+            $data[ ] = $row->getData();
61 61
         }
62 62
 
63 63
         return $this->client->createRequest(
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
                 'headers' => [
68 68
                     'Content-Type' => 'application/json',
69 69
                 ],
70
-                'auth'    => [$this->apiKey, ''],
71
-                'json'    => ['data' => $data],
70
+                'auth'    => [ $this->apiKey, '' ],
71
+                'json'    => [ 'data' => $data ],
72 72
             ]
73 73
         );
74 74
     }
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function getReplaceRequest($datasetName, array $rows)
83 83
     {
84
-        $data = [];
84
+        $data = [ ];
85 85
         foreach ($rows as $row) {
86
-            $data[] = $row->getData();
86
+            $data[ ] = $row->getData();
87 87
         }
88 88
 
89 89
         return $this->client->createRequest(
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
                 'headers' => [
94 94
                     'Content-Type' => 'application/json',
95 95
                 ],
96
-                'auth'    => [$this->apiKey, ''],
97
-                'json'    => ['data' => $data],
96
+                'auth'    => [ $this->apiKey, '' ],
97
+                'json'    => [ 'data' => $data ],
98 98
             ]
99 99
         );
100 100
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             'DELETE',
111 111
             sprintf('/datasets/%s', $datasetName),
112 112
             [
113
-                'auth' => [$this->apiKey, ''],
113
+                'auth' => [ $this->apiKey, '' ],
114 114
             ]
115 115
         );
116 116
     }
Please login to merge, or discard this patch.
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.