Completed
Pull Request — master (#9293)
by Blizzz
18:49
created
apps/admin_audit/lib/BackgroundJobs/Rotate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,22 +30,22 @@
 block discarded – undo
30 30
 	use RotationTrait;
31 31
 
32 32
 	public function __construct() {
33
-		$this->setInterval(60*60*3);
33
+		$this->setInterval(60 * 60 * 3);
34 34
 	}
35 35
 
36 36
 	protected function run($argument) {
37 37
 		$config = \OC::$server->getConfig();
38
-		$default = $config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/audit.log';
38
+		$default = $config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data').'/audit.log';
39 39
 		$this->filePath = $config->getAppValue('admin_audit', 'logfile', $default);
40 40
 
41
-		if($this->filePath === '') {
41
+		if ($this->filePath === '') {
42 42
 			// default log file, nothing to do
43 43
 			return;
44 44
 		}
45 45
 
46 46
 		$this->maxSize = $config->getSystemValue('log_rotate_size', 100 * 1024 * 1024);
47 47
 
48
-		if($this->shouldRotateBySize()) {
48
+		if ($this->shouldRotateBySize()) {
49 49
 			$this->rotate();
50 50
 		}
51 51
 	}
Please login to merge, or discard this patch.