@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$auth = json_decode(file_get_contents(__DIR__ . '/../phpunit-auth.json'), true); |
|
| 4 | -$findAndReplace = json_decode(file_get_contents(__DIR__ . '/sanitize-values.json'), true); |
|
| 5 | -$fixtures = file_get_contents(__DIR__ . '/fixtures/PhpPulseVCR'); |
|
| 3 | +$auth = json_decode(file_get_contents(__DIR__.'/../phpunit-auth.json'), true); |
|
| 4 | +$findAndReplace = json_decode(file_get_contents(__DIR__.'/sanitize-values.json'), true); |
|
| 5 | +$fixtures = file_get_contents(__DIR__.'/fixtures/PhpPulseVCR'); |
|
| 6 | 6 | |
| 7 | 7 | $sanitized = str_replace($auth['apiToken'], 'YourApiKeyHere', $fixtures); |
| 8 | 8 | |
@@ -11,4 +11,4 @@ discard block |
||
| 11 | 11 | $sanitized = str_replace($key, $value, $sanitized); |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | -file_put_contents(__DIR__ . '/fixtures/PhpPulseVCR-sanitized', $sanitized); |
|
| 15 | 14 | \ No newline at end of file |
| 15 | +file_put_contents(__DIR__.'/fixtures/PhpPulseVCR-sanitized', $sanitized); |
|
| 16 | 16 | \ No newline at end of file |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | $url = sprintf("%s/%d/columns/%s/text.json", self::apiEndpoint(), $this->board_id, $this->column_id); |
| 57 | 57 | $postParams = array( |
| 58 | 58 | "pulse_id" => $this->pulse_id, |
| 59 | - "text" => (string)$text |
|
| 59 | + "text" => (string) $text |
|
| 60 | 60 | ); |
| 61 | 61 | |
| 62 | 62 | $result = self::sendPut($url, $postParams); |