@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function date($id, $date) |
104 | 104 | { |
105 | - if (! Util::isValidDate($date)) { |
|
105 | + if (!Util::isValidDate($date)) { |
|
106 | 106 | throw new \InvalidArgumentException("Date must be provided in Y-m-d format"); |
107 | 107 | } |
108 | 108 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | $this->additional['mark_complete'] = 1; |
150 | 150 | } |
151 | 151 | |
152 | - return $this->client->post('survey/'. $this->client->getSurveyId() .'/entries', $this->data, $this->additional); |
|
152 | + return $this->client->post('survey/' . $this->client->getSurveyId() . '/entries', $this->data, $this->additional); |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | } |
156 | 156 | \ No newline at end of file |
@@ -77,6 +77,6 @@ |
||
77 | 77 | echo("You may want to view this in your browser with enabled JSON Formatter or with REST API Client: $url"); |
78 | 78 | |
79 | 79 | return Request::get($url) |
80 | - ->send()->body; |
|
80 | + ->send()->body; |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 | \ No newline at end of file |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $template = Request::init() |
29 | 29 | ->withStrictSSL() |
30 | 30 | ->addHeader('Authorization', 'token') |
31 | - ->addHeader('User-Agent', 'Qualia API/PHP/'. PHP_VERSION . ' (' . PHP_OS . ')') |
|
31 | + ->addHeader('User-Agent', 'Qualia API/PHP/' . PHP_VERSION . ' (' . PHP_OS . ')') |
|
32 | 32 | ->parseWith(function($body) { |
33 | 33 | return json_decode($body, true); |
34 | 34 | }) |