1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

fix formatting

This commit is contained in:
Damodar Lohani 2022-08-17 11:10:17 +00:00
parent 6b11fa26ce
commit c0119e6a0d
2 changed files with 3 additions and 3 deletions

View file

@ -355,7 +355,7 @@ App::shutdown()
$fileSize = 0;
$file = $request->getFiles('file');
if(!empty($file)) {
if (!empty($file)) {
$fileSize = (\is_array($file['size']) && isset($file['size'][0])) ? $file['size'][0] : $file['size'];
}

View file

@ -81,10 +81,10 @@ class Stats
{
$projectId = $this->params['projectId'] ?? '';
$tags = ",projectId={$projectId},version=" . App::getEnv('_APP_VERSION', 'UNKNOWN');
// the global namespace is prepended to every key (optional)
$this->statsd->setNamespace($this->namespace);
$httpRequest = $this->params['project.{scope}.network.requests'] ?? 0;
$httpMethod = $this->params['httpMethod'] ?? '';
if ($httpRequest >= 1) {