Use constants
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
38e5135cb9
commit
695696a4a6
2 changed files with 2 additions and 2 deletions
|
@ -578,7 +578,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($this->requestId)) {
|
if(empty($this->requestId)) {
|
||||||
$validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
$validChars = ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS;
|
||||||
$this->requestId = $this->secureRandom->generate(20, $validChars);
|
$this->requestId = $this->secureRandom->generate(20, $validChars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ class File {
|
||||||
'url',
|
'url',
|
||||||
'message',
|
'message',
|
||||||
'userAgent',
|
'userAgent',
|
||||||
'version',
|
'version'
|
||||||
);
|
);
|
||||||
$entry = json_encode($entry);
|
$entry = json_encode($entry);
|
||||||
$handle = @fopen(self::$logFile, 'a');
|
$handle = @fopen(self::$logFile, 'a');
|
||||||
|
|
Loading…
Reference in a new issue