Completed
Push — stable10 ( b85e94...1e5021 )
by
unknown
23:18 queued 12:32
created
lib/private/IntegrityCheck/Iterator/ExcludeFileByNameFilterIterator.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -30,32 +30,32 @@
 block discarded – undo
30 30
  * @package OC\Integritycheck\Iterator
31 31
  */
32 32
 class ExcludeFileByNameFilterIterator extends \RecursiveFilterIterator {
33
-	/**
34
-	 * Array of excluded file names. Those are not scanned by the integrity checker.
35
-	 * This is used to exclude files which administrators could upload by mistakes
36
-	 * such as .DS_Store files.
37
-	 *
38
-	 * @var array
39
-	 */
40
-	private $excludedFilenames = [
41
-		'.DS_Store', // Mac OS X
42
-		'Thumbs.db', // Microsoft Windows
43
-		'.directory', // Dolphin (KDE)
44
-		'.webapp', // Gentoo/Funtoo & derivatives use a tool known as webapp-config to manager wep-apps.
45
-	];
33
+    /**
34
+     * Array of excluded file names. Those are not scanned by the integrity checker.
35
+     * This is used to exclude files which administrators could upload by mistakes
36
+     * such as .DS_Store files.
37
+     *
38
+     * @var array
39
+     */
40
+    private $excludedFilenames = [
41
+        '.DS_Store', // Mac OS X
42
+        'Thumbs.db', // Microsoft Windows
43
+        '.directory', // Dolphin (KDE)
44
+        '.webapp', // Gentoo/Funtoo & derivatives use a tool known as webapp-config to manager wep-apps.
45
+    ];
46 46
 
47
-	/**
48
-	 * @return bool
49
-	 */
50
-	public function accept() {
51
-		if($this->isDir()) {
52
-			return true;
53
-		}
47
+    /**
48
+     * @return bool
49
+     */
50
+    public function accept() {
51
+        if($this->isDir()) {
52
+            return true;
53
+        }
54 54
 
55
-		return !in_array(
56
-			$this->current()->getFilename(),
57
-			$this->excludedFilenames,
58
-			true
59
-		);
60
-	}
55
+        return !in_array(
56
+            $this->current()->getFilename(),
57
+            $this->excludedFilenames,
58
+            true
59
+        );
60
+    }
61 61
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 	 * @return bool
49 49
 	 */
50 50
 	public function accept() {
51
-		if($this->isDir()) {
51
+		if ($this->isDir()) {
52 52
 			return true;
53 53
 		}
54 54
 
Please login to merge, or discard this patch.
lib/private/IntegrityCheck/Iterator/ExcludeFoldersByPathFilterIterator.php 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -24,45 +24,45 @@
 block discarded – undo
24 24
 namespace OC\IntegrityCheck\Iterator;
25 25
 
26 26
 class ExcludeFoldersByPathFilterIterator extends \RecursiveFilterIterator {
27
-	private $excludedFolders = [];
27
+    private $excludedFolders = [];
28 28
 
29
-	public function __construct(\RecursiveIterator $iterator, $root = '') {
30
-		parent::__construct($iterator);
29
+    public function __construct(\RecursiveIterator $iterator, $root = '') {
30
+        parent::__construct($iterator);
31 31
 
32
-		$appFolders = \OC::$APPSROOTS;
33
-		foreach($appFolders as $key => $appFolder) {
34
-			$appFolders[$key] = rtrim($appFolder['path'], '/');
35
-		}
32
+        $appFolders = \OC::$APPSROOTS;
33
+        foreach($appFolders as $key => $appFolder) {
34
+            $appFolders[$key] = rtrim($appFolder['path'], '/');
35
+        }
36 36
 
37
-		$excludedFolders = [
38
-			rtrim($root . '/data', '/'),
39
-			rtrim($root . '/themes', '/'),
40
-			rtrim($root . '/config', '/'),
41
-			rtrim($root . '/apps', '/'),
42
-			rtrim($root . '/assets', '/'),
43
-			rtrim($root . '/lost+found', '/'),
44
-			// Ignore folders generated by updater since the updater is replaced
45
-			// after the integrity check is run.
46
-			// See https://github.com/owncloud/updater/issues/318#issuecomment-212497846
47
-			rtrim($root . '/updater', '/'),
48
-			rtrim($root . '/_oc_upgrade', '/'),
49
-		];
50
-		$customDataDir = \OC::$server->getConfig()->getSystemValue('datadirectory', '');
51
-		if($customDataDir !== '') {
52
-			$excludedFolders[] = rtrim($customDataDir, '/');
53
-		}
37
+        $excludedFolders = [
38
+            rtrim($root . '/data', '/'),
39
+            rtrim($root . '/themes', '/'),
40
+            rtrim($root . '/config', '/'),
41
+            rtrim($root . '/apps', '/'),
42
+            rtrim($root . '/assets', '/'),
43
+            rtrim($root . '/lost+found', '/'),
44
+            // Ignore folders generated by updater since the updater is replaced
45
+            // after the integrity check is run.
46
+            // See https://github.com/owncloud/updater/issues/318#issuecomment-212497846
47
+            rtrim($root . '/updater', '/'),
48
+            rtrim($root . '/_oc_upgrade', '/'),
49
+        ];
50
+        $customDataDir = \OC::$server->getConfig()->getSystemValue('datadirectory', '');
51
+        if($customDataDir !== '') {
52
+            $excludedFolders[] = rtrim($customDataDir, '/');
53
+        }
54 54
 
55
-		$this->excludedFolders = array_merge($excludedFolders, $appFolders);
56
-	}
55
+        $this->excludedFolders = array_merge($excludedFolders, $appFolders);
56
+    }
57 57
 
58
-	/**
59
-	 * @return bool
60
-	 */
61
-	public function accept() {
62
-		return !in_array(
63
-			$this->current()->getPathName(),
64
-			$this->excludedFolders,
65
-			true
66
-		);
67
-	}
58
+    /**
59
+     * @return bool
60
+     */
61
+    public function accept() {
62
+        return !in_array(
63
+            $this->current()->getPathName(),
64
+            $this->excludedFolders,
65
+            true
66
+        );
67
+    }
68 68
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,25 +30,25 @@
 block discarded – undo
30 30
 		parent::__construct($iterator);
31 31
 
32 32
 		$appFolders = \OC::$APPSROOTS;
33
-		foreach($appFolders as $key => $appFolder) {
33
+		foreach ($appFolders as $key => $appFolder) {
34 34
 			$appFolders[$key] = rtrim($appFolder['path'], '/');
35 35
 		}
36 36
 
37 37
 		$excludedFolders = [
38
-			rtrim($root . '/data', '/'),
39
-			rtrim($root . '/themes', '/'),
40
-			rtrim($root . '/config', '/'),
41
-			rtrim($root . '/apps', '/'),
42
-			rtrim($root . '/assets', '/'),
43
-			rtrim($root . '/lost+found', '/'),
38
+			rtrim($root.'/data', '/'),
39
+			rtrim($root.'/themes', '/'),
40
+			rtrim($root.'/config', '/'),
41
+			rtrim($root.'/apps', '/'),
42
+			rtrim($root.'/assets', '/'),
43
+			rtrim($root.'/lost+found', '/'),
44 44
 			// Ignore folders generated by updater since the updater is replaced
45 45
 			// after the integrity check is run.
46 46
 			// See https://github.com/owncloud/updater/issues/318#issuecomment-212497846
47
-			rtrim($root . '/updater', '/'),
48
-			rtrim($root . '/_oc_upgrade', '/'),
47
+			rtrim($root.'/updater', '/'),
48
+			rtrim($root.'/_oc_upgrade', '/'),
49 49
 		];
50 50
 		$customDataDir = \OC::$server->getConfig()->getSystemValue('datadirectory', '');
51
-		if($customDataDir !== '') {
51
+		if ($customDataDir !== '') {
52 52
 			$excludedFolders[] = rtrim($customDataDir, '/');
53 53
 		}
54 54
 
Please login to merge, or discard this patch.
lib/private/IntegrityCheck/Helpers/EnvironmentHelper.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -29,21 +29,21 @@
 block discarded – undo
29 29
  * @package OC\IntegrityCheck\Helpers
30 30
  */
31 31
 class EnvironmentHelper {
32
-	/**
33
-	 * Provides \OC::$SERVERROOT
34
-	 *
35
-	 * @return string
36
-	 */
37
-	public function getServerRoot() {
38
-		return rtrim(\OC::$SERVERROOT, '/');
39
-	}
32
+    /**
33
+     * Provides \OC::$SERVERROOT
34
+     *
35
+     * @return string
36
+     */
37
+    public function getServerRoot() {
38
+        return rtrim(\OC::$SERVERROOT, '/');
39
+    }
40 40
 
41
-	/**
42
-	 * Provides \OC_Util::getChannel()
43
-	 *
44
-	 * @return string
45
-	 */
46
-	public function getChannel() {
47
-		return \OC_Util::getChannel();
48
-	}
41
+    /**
42
+     * Provides \OC_Util::getChannel()
43
+     *
44
+     * @return string
45
+     */
46
+    public function getChannel() {
47
+        return \OC_Util::getChannel();
48
+    }
49 49
 }
Please login to merge, or discard this patch.
lib/private/IntegrityCheck/Helpers/AppLocator.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -30,28 +30,28 @@
 block discarded – undo
30 30
  * @package OC\IntegrityCheck\Helpers
31 31
  */
32 32
 class AppLocator {
33
-	/**
34
-	 * Provides \OC_App::getAppPath($appId)
35
-	 *
36
-	 * @param string $appId
37
-	 * @return string
38
-	 * @throws \Exception If the app cannot be found
39
-	 */
40
-	public function getAppPath($appId) {
41
-		$path = \OC_App::getAppPath($appId);
42
-		if($path === false) {
33
+    /**
34
+     * Provides \OC_App::getAppPath($appId)
35
+     *
36
+     * @param string $appId
37
+     * @return string
38
+     * @throws \Exception If the app cannot be found
39
+     */
40
+    public function getAppPath($appId) {
41
+        $path = \OC_App::getAppPath($appId);
42
+        if($path === false) {
43 43
 
44
-			throw new \Exception('App not found');
45
-		}
46
-		return $path;
47
-	}
44
+            throw new \Exception('App not found');
45
+        }
46
+        return $path;
47
+    }
48 48
 
49
-	/**
50
-	 * Providers \OC_App::getAllApps()
51
-	 *
52
-	 * @return array
53
-	 */
54
-	public function getAllApps() {
55
-		return \OC_App::getAllApps();
56
-	}
49
+    /**
50
+     * Providers \OC_App::getAllApps()
51
+     *
52
+     * @return array
53
+     */
54
+    public function getAllApps() {
55
+        return \OC_App::getAllApps();
56
+    }
57 57
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 	 */
40 40
 	public function getAppPath($appId) {
41 41
 		$path = \OC_App::getAppPath($appId);
42
-		if($path === false) {
42
+		if ($path === false) {
43 43
 
44 44
 			throw new \Exception('App not found');
45 45
 		}
Please login to merge, or discard this patch.
lib/private/User/Backend.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@  discard block
 block discarded – undo
37 37
 	/**
38 38
 	 * actions that user backends can define
39 39
 	 */
40
-	const CREATE_USER		= 1;			// 1 << 0
41
-	const SET_PASSWORD		= 16;			// 1 << 4
42
-	const CHECK_PASSWORD	= 256;			// 1 << 8
43
-	const GET_HOME			= 4096;			// 1 << 12
44
-	const GET_DISPLAYNAME	= 65536;		// 1 << 16
45
-	const SET_DISPLAYNAME	= 1048576;		// 1 << 20
46
-	const PROVIDE_AVATAR	= 16777216;		// 1 << 24
47
-	const COUNT_USERS		= 268435456;	// 1 << 28
40
+	const CREATE_USER = 1; // 1 << 0
41
+	const SET_PASSWORD = 16; // 1 << 4
42
+	const CHECK_PASSWORD = 256; // 1 << 8
43
+	const GET_HOME = 4096; // 1 << 12
44
+	const GET_DISPLAYNAME	= 65536; // 1 << 16
45
+	const SET_DISPLAYNAME	= 1048576; // 1 << 20
46
+	const PROVIDE_AVATAR = 16777216; // 1 << 24
47
+	const COUNT_USERS = 268435456; // 1 << 28
48 48
 
49 49
 	protected $possibleActions = array(
50 50
 		self::CREATE_USER => 'createUser',
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 	*/
67 67
 	public function getSupportedActions() {
68 68
 		$actions = 0;
69
-		foreach($this->possibleActions AS $action => $methodName) {
70
-			if(method_exists($this, $methodName)) {
69
+		foreach ($this->possibleActions AS $action => $methodName) {
70
+			if (method_exists($this, $methodName)) {
71 71
 				$actions |= $action;
72 72
 			}
73 73
 		}
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	* compared with self::CREATE_USER etc.
85 85
 	*/
86 86
 	public function implementsActions($actions) {
87
-		return (bool)($this->getSupportedActions() & $actions);
87
+		return (bool) ($this->getSupportedActions() & $actions);
88 88
 	}
89 89
 
90 90
 	/**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	 *
95 95
 	 * Deletes a user
96 96
 	 */
97
-	public function deleteUser( $uid ) {
97
+	public function deleteUser($uid) {
98 98
 		return false;
99 99
 	}
100 100
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 	public function getDisplayNames($search = '', $limit = null, $offset = null) {
149 149
 		$displayNames = array();
150 150
 		$users = $this->getUsers($search, $limit, $offset);
151
-		foreach ( $users as $user) {
151
+		foreach ($users as $user) {
152 152
 			$displayNames[$user] = $user;
153 153
 		}
154 154
 		return $displayNames;
Please login to merge, or discard this patch.
Indentation   +120 added lines, -120 removed lines patch added patch discarded remove patch
@@ -27,136 +27,136 @@
 block discarded – undo
27 27
  * capabilities.
28 28
  */
29 29
 abstract class Backend implements \OCP\UserInterface {
30
-	/**
31
-	 * error code for functions not provided by the user backend
32
-	 */
33
-	const NOT_IMPLEMENTED = -501;
30
+    /**
31
+     * error code for functions not provided by the user backend
32
+     */
33
+    const NOT_IMPLEMENTED = -501;
34 34
 
35
-	/**
36
-	 * actions that user backends can define
37
-	 */
38
-	const CREATE_USER		= 1;			// 1 << 0
39
-	const SET_PASSWORD		= 16;			// 1 << 4
40
-	const CHECK_PASSWORD	= 256;			// 1 << 8
41
-	const GET_HOME			= 4096;			// 1 << 12
42
-	const GET_DISPLAYNAME	= 65536;		// 1 << 16
43
-	const SET_DISPLAYNAME	= 1048576;		// 1 << 20
44
-	const PROVIDE_AVATAR	= 16777216;		// 1 << 24
45
-	const COUNT_USERS		= 268435456;	// 1 << 28
35
+    /**
36
+     * actions that user backends can define
37
+     */
38
+    const CREATE_USER		= 1;			// 1 << 0
39
+    const SET_PASSWORD		= 16;			// 1 << 4
40
+    const CHECK_PASSWORD	= 256;			// 1 << 8
41
+    const GET_HOME			= 4096;			// 1 << 12
42
+    const GET_DISPLAYNAME	= 65536;		// 1 << 16
43
+    const SET_DISPLAYNAME	= 1048576;		// 1 << 20
44
+    const PROVIDE_AVATAR	= 16777216;		// 1 << 24
45
+    const COUNT_USERS		= 268435456;	// 1 << 28
46 46
 
47
-	protected $possibleActions = array(
48
-		self::CREATE_USER => 'createUser',
49
-		self::SET_PASSWORD => 'setPassword',
50
-		self::CHECK_PASSWORD => 'checkPassword',
51
-		self::GET_HOME => 'getHome',
52
-		self::GET_DISPLAYNAME => 'getDisplayName',
53
-		self::SET_DISPLAYNAME => 'setDisplayName',
54
-		self::PROVIDE_AVATAR => 'canChangeAvatar',
55
-		self::COUNT_USERS => 'countUsers',
56
-	);
47
+    protected $possibleActions = array(
48
+        self::CREATE_USER => 'createUser',
49
+        self::SET_PASSWORD => 'setPassword',
50
+        self::CHECK_PASSWORD => 'checkPassword',
51
+        self::GET_HOME => 'getHome',
52
+        self::GET_DISPLAYNAME => 'getDisplayName',
53
+        self::SET_DISPLAYNAME => 'setDisplayName',
54
+        self::PROVIDE_AVATAR => 'canChangeAvatar',
55
+        self::COUNT_USERS => 'countUsers',
56
+    );
57 57
 
58
-	/**
59
-	* Get all supported actions
60
-	* @return int bitwise-or'ed actions
61
-	*
62
-	* Returns the supported actions as int to be
63
-	* compared with self::CREATE_USER etc.
64
-	*/
65
-	public function getSupportedActions() {
66
-		$actions = 0;
67
-		foreach($this->possibleActions AS $action => $methodName) {
68
-			if(method_exists($this, $methodName)) {
69
-				$actions |= $action;
70
-			}
71
-		}
58
+    /**
59
+     * Get all supported actions
60
+     * @return int bitwise-or'ed actions
61
+     *
62
+     * Returns the supported actions as int to be
63
+     * compared with self::CREATE_USER etc.
64
+     */
65
+    public function getSupportedActions() {
66
+        $actions = 0;
67
+        foreach($this->possibleActions AS $action => $methodName) {
68
+            if(method_exists($this, $methodName)) {
69
+                $actions |= $action;
70
+            }
71
+        }
72 72
 
73
-		return $actions;
74
-	}
73
+        return $actions;
74
+    }
75 75
 
76
-	/**
77
-	* Check if backend implements actions
78
-	* @param int $actions bitwise-or'ed actions
79
-	* @return boolean
80
-	*
81
-	* Returns the supported actions as int to be
82
-	* compared with self::CREATE_USER etc.
83
-	*/
84
-	public function implementsActions($actions) {
85
-		return (bool)($this->getSupportedActions() & $actions);
86
-	}
76
+    /**
77
+     * Check if backend implements actions
78
+     * @param int $actions bitwise-or'ed actions
79
+     * @return boolean
80
+     *
81
+     * Returns the supported actions as int to be
82
+     * compared with self::CREATE_USER etc.
83
+     */
84
+    public function implementsActions($actions) {
85
+        return (bool)($this->getSupportedActions() & $actions);
86
+    }
87 87
 
88
-	/**
89
-	 * delete a user
90
-	 * @param string $uid The username of the user to delete
91
-	 * @return bool
92
-	 *
93
-	 * Deletes a user
94
-	 */
95
-	public function deleteUser( $uid ) {
96
-		return false;
97
-	}
88
+    /**
89
+     * delete a user
90
+     * @param string $uid The username of the user to delete
91
+     * @return bool
92
+     *
93
+     * Deletes a user
94
+     */
95
+    public function deleteUser( $uid ) {
96
+        return false;
97
+    }
98 98
 
99
-	/**
100
-	 * Get a list of all users
101
-	 *
102
-	 * @param string $search
103
-	 * @param null|int $limit
104
-	 * @param null|int $offset
105
-	 * @return string[] an array of all uids
106
-	 */
107
-	public function getUsers($search = '', $limit = null, $offset = null) {
108
-		return array();
109
-	}
99
+    /**
100
+     * Get a list of all users
101
+     *
102
+     * @param string $search
103
+     * @param null|int $limit
104
+     * @param null|int $offset
105
+     * @return string[] an array of all uids
106
+     */
107
+    public function getUsers($search = '', $limit = null, $offset = null) {
108
+        return array();
109
+    }
110 110
 
111
-	/**
112
-	* check if a user exists
113
-	* @param string $uid the username
114
-	* @return boolean
115
-	*/
116
-	public function userExists($uid) {
117
-		return false;
118
-	}
111
+    /**
112
+     * check if a user exists
113
+     * @param string $uid the username
114
+     * @return boolean
115
+     */
116
+    public function userExists($uid) {
117
+        return false;
118
+    }
119 119
 
120
-	/**
121
-	* get the user's home directory
122
-	* @param string $uid the username
123
-	* @return boolean
124
-	*/
125
-	public function getHome($uid) {
126
-		return false;
127
-	}
120
+    /**
121
+     * get the user's home directory
122
+     * @param string $uid the username
123
+     * @return boolean
124
+     */
125
+    public function getHome($uid) {
126
+        return false;
127
+    }
128 128
 
129
-	/**
130
-	 * get display name of the user
131
-	 * @param string $uid user ID of the user
132
-	 * @return string display name
133
-	 */
134
-	public function getDisplayName($uid) {
135
-		return $uid;
136
-	}
129
+    /**
130
+     * get display name of the user
131
+     * @param string $uid user ID of the user
132
+     * @return string display name
133
+     */
134
+    public function getDisplayName($uid) {
135
+        return $uid;
136
+    }
137 137
 
138
-	/**
139
-	 * Get a list of all display names and user ids.
140
-	 *
141
-	 * @param string $search
142
-	 * @param string|null $limit
143
-	 * @param string|null $offset
144
-	 * @return array an array of all displayNames (value) and the corresponding uids (key)
145
-	 */
146
-	public function getDisplayNames($search = '', $limit = null, $offset = null) {
147
-		$displayNames = array();
148
-		$users = $this->getUsers($search, $limit, $offset);
149
-		foreach ( $users as $user) {
150
-			$displayNames[$user] = $user;
151
-		}
152
-		return $displayNames;
153
-	}
138
+    /**
139
+     * Get a list of all display names and user ids.
140
+     *
141
+     * @param string $search
142
+     * @param string|null $limit
143
+     * @param string|null $offset
144
+     * @return array an array of all displayNames (value) and the corresponding uids (key)
145
+     */
146
+    public function getDisplayNames($search = '', $limit = null, $offset = null) {
147
+        $displayNames = array();
148
+        $users = $this->getUsers($search, $limit, $offset);
149
+        foreach ( $users as $user) {
150
+            $displayNames[$user] = $user;
151
+        }
152
+        return $displayNames;
153
+    }
154 154
 
155
-	/**
156
-	 * Check if a user list is available or not
157
-	 * @return boolean if users can be listed or not
158
-	 */
159
-	public function hasUserListings() {
160
-		return false;
161
-	}
155
+    /**
156
+     * Check if a user list is available or not
157
+     * @return boolean if users can be listed or not
158
+     */
159
+    public function hasUserListings() {
160
+        return false;
161
+    }
162 162
 }
Please login to merge, or discard this patch.
lib/private/Diagnostics/NullQueryLogger.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -26,21 +26,21 @@
 block discarded – undo
26 26
 use OCP\Diagnostics\IQueryLogger;
27 27
 
28 28
 class NullQueryLogger implements IQueryLogger {
29
-	/**
30
-	 * @param string $sql
31
-	 * @param array $params
32
-	 * @param array $types
33
-	 */
34
-	public function startQuery($sql, array $params = null, array $types = null) {
35
-	}
29
+    /**
30
+     * @param string $sql
31
+     * @param array $params
32
+     * @param array $types
33
+     */
34
+    public function startQuery($sql, array $params = null, array $types = null) {
35
+    }
36 36
 
37
-	public function stopQuery() {
38
-	}
37
+    public function stopQuery() {
38
+    }
39 39
 
40
-	/**
41
-	 * @return \OCP\Diagnostics\IQuery[]
42
-	 */
43
-	public function getQueries() {
44
-		return array();
45
-	}
40
+    /**
41
+     * @return \OCP\Diagnostics\IQuery[]
42
+     */
43
+    public function getQueries() {
44
+        return array();
45
+    }
46 46
 }
Please login to merge, or discard this patch.
lib/private/Diagnostics/Event.php 1 patch
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -26,79 +26,79 @@
 block discarded – undo
26 26
 use OCP\Diagnostics\IEvent;
27 27
 
28 28
 class Event implements IEvent {
29
-	/**
30
-	 * @var string
31
-	 */
32
-	protected $id;
29
+    /**
30
+     * @var string
31
+     */
32
+    protected $id;
33 33
 
34
-	/**
35
-	 * @var float
36
-	 */
37
-	protected $start;
34
+    /**
35
+     * @var float
36
+     */
37
+    protected $start;
38 38
 
39
-	/**
40
-	 * @var float
41
-	 */
42
-	protected $end;
39
+    /**
40
+     * @var float
41
+     */
42
+    protected $end;
43 43
 
44
-	/**
45
-	 * @var string
46
-	 */
47
-	protected $description;
44
+    /**
45
+     * @var string
46
+     */
47
+    protected $description;
48 48
 
49
-	/**
50
-	 * @param string $id
51
-	 * @param string $description
52
-	 * @param float $start
53
-	 */
54
-	public function __construct($id, $description, $start) {
55
-		$this->id = $id;
56
-		$this->description = $description;
57
-		$this->start = $start;
58
-	}
49
+    /**
50
+     * @param string $id
51
+     * @param string $description
52
+     * @param float $start
53
+     */
54
+    public function __construct($id, $description, $start) {
55
+        $this->id = $id;
56
+        $this->description = $description;
57
+        $this->start = $start;
58
+    }
59 59
 
60
-	/**
61
-	 * @param float $time
62
-	 */
63
-	public function end($time) {
64
-		$this->end = $time;
65
-	}
60
+    /**
61
+     * @param float $time
62
+     */
63
+    public function end($time) {
64
+        $this->end = $time;
65
+    }
66 66
 
67
-	/**
68
-	 * @return float
69
-	 */
70
-	public function getStart() {
71
-		return $this->start;
72
-	}
67
+    /**
68
+     * @return float
69
+     */
70
+    public function getStart() {
71
+        return $this->start;
72
+    }
73 73
 
74
-	/**
75
-	 * @return string
76
-	 */
77
-	public function getId() {
78
-		return $this->id;
79
-	}
74
+    /**
75
+     * @return string
76
+     */
77
+    public function getId() {
78
+        return $this->id;
79
+    }
80 80
 
81
-	/**
82
-	 * @return string
83
-	 */
84
-	public function getDescription() {
85
-		return $this->description;
86
-	}
81
+    /**
82
+     * @return string
83
+     */
84
+    public function getDescription() {
85
+        return $this->description;
86
+    }
87 87
 
88
-	/**
89
-	 * @return float
90
-	 */
91
-	public function getEnd() {
92
-		return $this->end;
93
-	}
88
+    /**
89
+     * @return float
90
+     */
91
+    public function getEnd() {
92
+        return $this->end;
93
+    }
94 94
 
95
-	/**
96
-	 * @return float
97
-	 */
98
-	public function getDuration() {
99
-		if (!$this->end) {
100
-			$this->end = microtime(true);
101
-		}
102
-		return $this->end - $this->start;
103
-	}
95
+    /**
96
+     * @return float
97
+     */
98
+    public function getDuration() {
99
+        if (!$this->end) {
100
+            $this->end = microtime(true);
101
+        }
102
+        return $this->end - $this->start;
103
+    }
104 104
 }
Please login to merge, or discard this patch.
lib/private/Diagnostics/EventLogger.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -26,31 +26,31 @@
 block discarded – undo
26 26
 use OCP\Diagnostics\IEventLogger;
27 27
 
28 28
 class EventLogger implements IEventLogger {
29
-	/**
30
-	 * @var \OC\Diagnostics\Event[]
31
-	 */
32
-	private $events = array();
29
+    /**
30
+     * @var \OC\Diagnostics\Event[]
31
+     */
32
+    private $events = array();
33 33
 
34
-	public function start($id, $description) {
35
-		$this->events[$id] = new Event($id, $description, microtime(true));
36
-	}
34
+    public function start($id, $description) {
35
+        $this->events[$id] = new Event($id, $description, microtime(true));
36
+    }
37 37
 
38
-	public function end($id) {
39
-		if (isset($this->events[$id])) {
40
-			$timing = $this->events[$id];
41
-			$timing->end(microtime(true));
42
-		}
43
-	}
38
+    public function end($id) {
39
+        if (isset($this->events[$id])) {
40
+            $timing = $this->events[$id];
41
+            $timing->end(microtime(true));
42
+        }
43
+    }
44 44
 
45
-	public function log($id, $description, $start, $end) {
46
-		$this->events[$id] = new Event($id, $description, $start);
47
-		$this->events[$id]->end($end);
48
-	}
45
+    public function log($id, $description, $start, $end) {
46
+        $this->events[$id] = new Event($id, $description, $start);
47
+        $this->events[$id]->end($end);
48
+    }
49 49
 
50
-	/**
51
-	 * @return \OCP\Diagnostics\IEvent[]
52
-	 */
53
-	public function getEvents() {
54
-		return $this->events;
55
-	}
50
+    /**
51
+     * @return \OCP\Diagnostics\IEvent[]
52
+     */
53
+    public function getEvents() {
54
+        return $this->events;
55
+    }
56 56
 }
Please login to merge, or discard this patch.
lib/private/Diagnostics/NullEventLogger.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -29,30 +29,30 @@
 block discarded – undo
29 29
  * Dummy event logger that doesn't actually log anything
30 30
  */
31 31
 class NullEventLogger implements IEventLogger {
32
-	/**
33
-	 * Mark the start of an event
34
-	 *
35
-	 * @param $id
36
-	 * @param $description
37
-	 */
38
-	public function start($id, $description) {
39
-	}
32
+    /**
33
+     * Mark the start of an event
34
+     *
35
+     * @param $id
36
+     * @param $description
37
+     */
38
+    public function start($id, $description) {
39
+    }
40 40
 
41
-	/**
42
-	 * Mark the end of an event
43
-	 *
44
-	 * @param $id
45
-	 */
46
-	public function end($id) {
47
-	}
41
+    /**
42
+     * Mark the end of an event
43
+     *
44
+     * @param $id
45
+     */
46
+    public function end($id) {
47
+    }
48 48
 
49
-	public function log($id, $description, $start, $end) {
50
-	}
49
+    public function log($id, $description, $start, $end) {
50
+    }
51 51
 
52
-	/**
53
-	 * @return \OCP\Diagnostics\IEvent[]
54
-	 */
55
-	public function getEvents() {
56
-		return array();
57
-	}
52
+    /**
53
+     * @return \OCP\Diagnostics\IEvent[]
54
+     */
55
+    public function getEvents() {
56
+        return array();
57
+    }
58 58
 }
Please login to merge, or discard this patch.