aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Log
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-05 15:12:57 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-10-05 20:25:24 +0200
commitd9015a8c94bfd71fe484618a06d276701d3bf9ff (patch)
tree3f7a1cd6ec2fd982dd02de71b76076f7f01cef70 /lib/private/Log
parentd357f4b10fe1b59e1e07bb90641d647522c7bfe2 (diff)
downloadnextcloud-server-d9015a8c94bfd71fe484618a06d276701d3bf9ff.tar.gz
nextcloud-server-d9015a8c94bfd71fe484618a06d276701d3bf9ff.zip
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Log')
-rw-r--r--lib/private/Log/ErrorHandler.php2
-rw-r--r--lib/private/Log/File.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Log/ErrorHandler.php b/lib/private/Log/ErrorHandler.php
index e87da0b5d83..b58fae60d51 100644
--- a/lib/private/Log/ErrorHandler.php
+++ b/lib/private/Log/ErrorHandler.php
@@ -41,7 +41,7 @@ class ErrorHandler {
return preg_replace('/\/\/(.*):(.*)@/', '//xxx:xxx@', $msg);
}
- public static function register($debug=false) {
+ public static function register($debug = false) {
$handler = new ErrorHandler();
if ($debug) {
diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php
index b2fb16029c8..289afed9179 100644
--- a/lib/private/Log/File.php
+++ b/lib/private/Log/File.php
@@ -107,7 +107,7 @@ class File extends LogDetails implements IWriter, IFileBased {
* @param int $offset
* @return array
*/
- public function getEntries(int $limit=50, int $offset=0):array {
+ public function getEntries(int $limit = 50, int $offset = 0):array {
$minLevel = $this->config->getValue("loglevel", ILogger::WARN);
$entries = [];
$handle = @fopen($this->logFile, 'rb');
@@ -118,7 +118,7 @@ class File extends LogDetails implements IWriter, IFileBased {
$entriesCount = 0;
$lines = 0;
// Loop through each character of the file looking for new lines
- while ($pos >= 0 && ($limit === null ||$entriesCount < $limit)) {
+ while ($pos >= 0 && ($limit === null || $entriesCount < $limit)) {
fseek($handle, $pos);
$ch = fgetc($handle);
if ($ch == "\n" || $pos == 0) {