mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
3c07660c2c
commit
bbbabcebaf
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace App\Server\StatisticsCollector;
|
namespace App\Server\StatisticsCollector;
|
||||||
|
|
||||||
use App\Contracts\ConnectionManager;
|
|
||||||
use App\Contracts\StatisticsCollector;
|
use App\Contracts\StatisticsCollector;
|
||||||
use Clue\React\SQLite\DatabaseInterface;
|
use Clue\React\SQLite\DatabaseInterface;
|
||||||
|
|
||||||
@@ -84,17 +83,17 @@ class DatabaseStatisticsCollector implements StatisticsCollector
|
|||||||
$sharedPorts += $numPorts;
|
$sharedPorts += $numPorts;
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->database->query("
|
$this->database->query('
|
||||||
INSERT INTO statistics (timestamp, shared_sites, shared_ports, unique_shared_sites, unique_shared_ports, incoming_requests)
|
INSERT INTO statistics (timestamp, shared_sites, shared_ports, unique_shared_sites, unique_shared_ports, incoming_requests)
|
||||||
VALUES (:timestamp, :shared_sites, :shared_ports, :unique_shared_sites, :unique_shared_ports, :incoming_requests)
|
VALUES (:timestamp, :shared_sites, :shared_ports, :unique_shared_sites, :unique_shared_ports, :incoming_requests)
|
||||||
", [
|
', [
|
||||||
'timestamp' => today()->toDateString(),
|
'timestamp' => today()->toDateString(),
|
||||||
'shared_sites' => $sharedSites,
|
'shared_sites' => $sharedSites,
|
||||||
'shared_ports' => $sharedPorts,
|
'shared_ports' => $sharedPorts,
|
||||||
'unique_shared_sites' => count($this->sharedSites),
|
'unique_shared_sites' => count($this->sharedSites),
|
||||||
'unique_shared_ports' => count($this->sharedPorts),
|
'unique_shared_ports' => count($this->sharedPorts),
|
||||||
'incoming_requests' => $this->requests,
|
'incoming_requests' => $this->requests,
|
||||||
])
|
])
|
||||||
->then(function () {
|
->then(function () {
|
||||||
$this->flush();
|
$this->flush();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user