Skip to content

Commit ed644c2

Browse files
committed
Apply automatic php-cs-fixer fixes
1 parent d6d84eb commit ed644c2

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Saver/MongoSaver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function save(array $data)
3737
*
3838
* Replace the dots with underscrore in keys.
3939
*
40-
* @link https://github.com/perftools/xhgui/issues/209
40+
* @see https://github.com/perftools/xhgui/issues/209
4141
*/
4242
private function encodeProfile(array $profile)
4343
{

src/Saver/UploadSaver.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,20 @@ private function submit($url, $payload)
6262
));
6363
if (!$res) {
6464
$error = curl_errno($ch) ? curl_error($ch) : '';
65-
throw new ProfilerException('Failed to set cURL options'.($error ? ': '.$error : ''));
65+
throw new ProfilerException('Failed to set cURL options' . ($error ? ': ' . $error : ''));
6666
}
6767

6868
$result = curl_exec($ch);
6969
if ($result === false) {
7070
$error = curl_errno($ch) ? curl_error($ch) : '';
71-
throw new ProfilerException('Failed to submit data'.($error ? ': '.$error : ''));
71+
throw new ProfilerException('Failed to submit data' . ($error ? ': ' . $error : ''));
7272
}
7373
curl_close($ch);
7474

7575
$response = json_decode($result, true);
7676
if (!$response) {
77-
$error = json_last_error() ? (PHP_VERSION_ID >= 50500 ? json_last_error_msg() : 'Error '.json_last_error()) : '';
78-
throw new ProfilerException('Failed to decode response'.($error ? ': '.$error : ''));
77+
$error = json_last_error() ? (PHP_VERSION_ID >= 50500 ? json_last_error_msg() : 'Error ' . json_last_error()) : '';
78+
throw new ProfilerException('Failed to decode response' . ($error ? ': ' . $error : ''));
7979
}
8080

8181
if (isset($response['error']) && $response['error']) {

0 commit comments

Comments
 (0)