We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -41,12 +41,12 @@ discard block |
||
41 | 41 | { |
42 | 42 | // only send usage stats in production |
43 | 43 | if (!$this->runningInProduction()) { |
44 | - return ; |
|
44 | + return; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | // only send stats every ~100 pageloads |
48 | 48 | if (rand(1, 100) != 1) { |
49 | - return ; |
|
49 | + return; |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | $url = "https://backpackforlaravel.com/api/stats"; |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | private function makeCurlRequest($method, $url, $payload) |
92 | 92 | { |
93 | 93 | $cmd = "curl -X ".$method." -H 'Content-Type: application/json'"; |
94 | - $cmd.= " -d '" . json_encode($payload) . "' " . "'" . $url . "'"; |
|
94 | + $cmd .= " -d '".json_encode($payload)."' "."'".$url."'"; |
|
95 | 95 | $cmd .= " > /dev/null 2>&1 &"; |
96 | 96 | |
97 | 97 | exec($cmd, $output, $exit); |