Passed
Push — master ( 1dce30...f6efd5 )
by Joas
15:03 queued 13s
created
apps/contactsinteraction/composer/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\ContactsInteraction\\' => array($baseDir . '/../lib'),
9
+    'OCA\\ContactsInteraction\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.
apps/contactsinteraction/composer/composer/ClassLoader.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -370,18 +370,18 @@  discard block
 block discarded – undo
370 370
     private function findFileWithExtension($class, $ext)
371 371
     {
372 372
         // PSR-4 lookup
373
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
373
+        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext;
374 374
 
375 375
         $first = $class[0];
376 376
         if (isset($this->prefixLengthsPsr4[$first])) {
377 377
             $subPath = $class;
378 378
             while (false !== $lastPos = strrpos($subPath, '\\')) {
379 379
                 $subPath = substr($subPath, 0, $lastPos);
380
-                $search = $subPath . '\\';
380
+                $search = $subPath.'\\';
381 381
                 if (isset($this->prefixDirsPsr4[$search])) {
382
-                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
382
+                    $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1);
383 383
                     foreach ($this->prefixDirsPsr4[$search] as $dir) {
384
-                        if (file_exists($file = $dir . $pathEnd)) {
384
+                        if (file_exists($file = $dir.$pathEnd)) {
385 385
                             return $file;
386 386
                         }
387 387
                     }
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
         // PSR-4 fallback dirs
393 393
         foreach ($this->fallbackDirsPsr4 as $dir) {
394
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
394
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) {
395 395
                 return $file;
396 396
             }
397 397
         }
@@ -403,14 +403,14 @@  discard block
 block discarded – undo
403 403
                 . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
404 404
         } else {
405 405
             // PEAR-like class name
406
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
406
+            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext;
407 407
         }
408 408
 
409 409
         if (isset($this->prefixesPsr0[$first])) {
410 410
             foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
411 411
                 if (0 === strpos($class, $prefix)) {
412 412
                     foreach ($dirs as $dir) {
413
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
413
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
414 414
                             return $file;
415 415
                         }
416 416
                     }
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 
421 421
         // PSR-0 fallback dirs
422 422
         foreach ($this->fallbackDirsPsr0 as $dir) {
423
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
423
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
424 424
                 return $file;
425 425
             }
426 426
         }
Please login to merge, or discard this patch.
lib/public/Contacts/Events/ContactInteractedWithEvent.php 1 patch
Indentation   +92 added lines, -92 removed lines patch added patch discarded remove patch
@@ -40,97 +40,97 @@
 block discarded – undo
40 40
  */
41 41
 class ContactInteractedWithEvent extends Event {
42 42
 
43
-	/** @var IUser */
44
-	private $actor;
45
-
46
-	/** @var string|null */
47
-	private $uid;
48
-
49
-	/** @var string|null */
50
-	private $email;
51
-
52
-	/** @var string|null */
53
-	private $federatedCloudId;
54
-
55
-	/**
56
-	 * @param IUser $actor the user who started the interaction
57
-	 *
58
-	 * @since 19.0.0
59
-	 */
60
-	public function __construct(IUser $actor) {
61
-		parent::__construct();
62
-		$this->actor = $actor;
63
-	}
64
-
65
-	/**
66
-	 * @return IUser
67
-	 * @since 19.0.0
68
-	 */
69
-	public function getActor(): IUser {
70
-		return $this->actor;
71
-	}
72
-
73
-	/**
74
-	 * @return string|null
75
-	 * @since 19.0.0
76
-	 */
77
-	public function getUid(): ?string {
78
-		return $this->uid;
79
-	}
80
-
81
-	/**
82
-	 * Set the uid of the person interacted with, if known
83
-	 *
84
-	 * @param string $uid
85
-	 *
86
-	 * @return self
87
-	 * @since 19.0.0
88
-	 */
89
-	public function setUid(string $uid): self {
90
-		$this->uid = $uid;
91
-		return $this;
92
-	}
93
-
94
-	/**
95
-	 * @return string|null
96
-	 * @since 19.0.0
97
-	 */
98
-	public function getEmail(): ?string {
99
-		return $this->email;
100
-	}
101
-
102
-	/**
103
-	 * Set the email of the person interacted with, if known
104
-	 *
105
-	 * @param string $email
106
-	 *
107
-	 * @return self
108
-	 * @since 19.0.0
109
-	 */
110
-	public function setEmail(string $email): self {
111
-		$this->email = $email;
112
-		return $this;
113
-	}
114
-
115
-	/**
116
-	 * @return string|null
117
-	 * @since 19.0.0
118
-	 */
119
-	public function getFederatedCloudId(): ?string {
120
-		return $this->federatedCloudId;
121
-	}
122
-
123
-	/**
124
-	 * Set the federated cloud of the person interacted with, if known
125
-	 *
126
-	 * @param string $federatedCloudId
127
-	 *
128
-	 * @return self
129
-	 * @since 19.0.0
130
-	 */
131
-	public function setFederatedCloudId(string $federatedCloudId): self {
132
-		$this->federatedCloudId = $federatedCloudId;
133
-		return $this;
134
-	}
43
+    /** @var IUser */
44
+    private $actor;
45
+
46
+    /** @var string|null */
47
+    private $uid;
48
+
49
+    /** @var string|null */
50
+    private $email;
51
+
52
+    /** @var string|null */
53
+    private $federatedCloudId;
54
+
55
+    /**
56
+     * @param IUser $actor the user who started the interaction
57
+     *
58
+     * @since 19.0.0
59
+     */
60
+    public function __construct(IUser $actor) {
61
+        parent::__construct();
62
+        $this->actor = $actor;
63
+    }
64
+
65
+    /**
66
+     * @return IUser
67
+     * @since 19.0.0
68
+     */
69
+    public function getActor(): IUser {
70
+        return $this->actor;
71
+    }
72
+
73
+    /**
74
+     * @return string|null
75
+     * @since 19.0.0
76
+     */
77
+    public function getUid(): ?string {
78
+        return $this->uid;
79
+    }
80
+
81
+    /**
82
+     * Set the uid of the person interacted with, if known
83
+     *
84
+     * @param string $uid
85
+     *
86
+     * @return self
87
+     * @since 19.0.0
88
+     */
89
+    public function setUid(string $uid): self {
90
+        $this->uid = $uid;
91
+        return $this;
92
+    }
93
+
94
+    /**
95
+     * @return string|null
96
+     * @since 19.0.0
97
+     */
98
+    public function getEmail(): ?string {
99
+        return $this->email;
100
+    }
101
+
102
+    /**
103
+     * Set the email of the person interacted with, if known
104
+     *
105
+     * @param string $email
106
+     *
107
+     * @return self
108
+     * @since 19.0.0
109
+     */
110
+    public function setEmail(string $email): self {
111
+        $this->email = $email;
112
+        return $this;
113
+    }
114
+
115
+    /**
116
+     * @return string|null
117
+     * @since 19.0.0
118
+     */
119
+    public function getFederatedCloudId(): ?string {
120
+        return $this->federatedCloudId;
121
+    }
122
+
123
+    /**
124
+     * Set the federated cloud of the person interacted with, if known
125
+     *
126
+     * @param string $federatedCloudId
127
+     *
128
+     * @return self
129
+     * @since 19.0.0
130
+     */
131
+    public function setFederatedCloudId(string $federatedCloudId): self {
132
+        $this->federatedCloudId = $federatedCloudId;
133
+        return $this;
134
+    }
135 135
 
136 136
 }
Please login to merge, or discard this patch.
apps/files/ajax/list.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 $l = \OC::$server->getL10N('files');
34 34
 
35 35
 // Load the files
36
-$dir = isset($_GET['dir']) ? (string)$_GET['dir'] : '';
36
+$dir = isset($_GET['dir']) ? (string) $_GET['dir'] : '';
37 37
 $dir = \OC\Files\Filesystem::normalizePath($dir);
38 38
 
39 39
 try {
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
 	}
45 45
 
46 46
 	$data = [];
47
-	$baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php') . '?dir=';
47
+	$baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php').'?dir=';
48 48
 
49 49
 	$permissions = $dirInfo->getPermissions();
50 50
 
51
-	$sortAttribute = isset($_GET['sort']) ? (string)$_GET['sort'] : 'name';
51
+	$sortAttribute = isset($_GET['sort']) ? (string) $_GET['sort'] : 'name';
52 52
 	$sortDirection = isset($_GET['sortdirection']) ? ($_GET['sortdirection'] === 'desc') : false;
53 53
 	$mimetypeFilters = isset($_GET['mimetypes']) ? json_decode($_GET['mimetypes']) : '';
54 54
 
Please login to merge, or discard this patch.
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -37,72 +37,72 @@
 block discarded – undo
37 37
 $dir = \OC\Files\Filesystem::normalizePath($dir);
38 38
 
39 39
 try {
40
-	$dirInfo = \OC\Files\Filesystem::getFileInfo($dir);
41
-	if (!$dirInfo || $dirInfo->getType() !== 'dir') {
42
-		http_response_code(404);
43
-		exit();
44
-	}
40
+    $dirInfo = \OC\Files\Filesystem::getFileInfo($dir);
41
+    if (!$dirInfo || $dirInfo->getType() !== 'dir') {
42
+        http_response_code(404);
43
+        exit();
44
+    }
45 45
 
46
-	$data = [];
47
-	$baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php') . '?dir=';
46
+    $data = [];
47
+    $baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php') . '?dir=';
48 48
 
49
-	$permissions = $dirInfo->getPermissions();
49
+    $permissions = $dirInfo->getPermissions();
50 50
 
51
-	$sortAttribute = isset($_GET['sort']) ? (string)$_GET['sort'] : 'name';
52
-	$sortDirection = isset($_GET['sortdirection']) ? ($_GET['sortdirection'] === 'desc') : false;
53
-	$mimetypeFilters = isset($_GET['mimetypes']) ? json_decode($_GET['mimetypes']) : '';
51
+    $sortAttribute = isset($_GET['sort']) ? (string)$_GET['sort'] : 'name';
52
+    $sortDirection = isset($_GET['sortdirection']) ? ($_GET['sortdirection'] === 'desc') : false;
53
+    $mimetypeFilters = isset($_GET['mimetypes']) ? json_decode($_GET['mimetypes']) : '';
54 54
 
55
-	$files = [];
56
-	// Clean up duplicates from array
57
-	if (is_array($mimetypeFilters) && count($mimetypeFilters)) {
58
-		$mimetypeFilters = array_unique($mimetypeFilters);
55
+    $files = [];
56
+    // Clean up duplicates from array
57
+    if (is_array($mimetypeFilters) && count($mimetypeFilters)) {
58
+        $mimetypeFilters = array_unique($mimetypeFilters);
59 59
 
60
-		if (!in_array('httpd/unix-directory', $mimetypeFilters)) {
61
-			// append folder filter to be able to browse folders
62
-			$mimetypeFilters[] = 'httpd/unix-directory';
63
-		}
60
+        if (!in_array('httpd/unix-directory', $mimetypeFilters)) {
61
+            // append folder filter to be able to browse folders
62
+            $mimetypeFilters[] = 'httpd/unix-directory';
63
+        }
64 64
 
65
-		// create filelist with mimetype filter - as getFiles only supports on
66
-		// mimetype filter at once we will filter this folder for each
67
-		// mimetypeFilter
68
-		foreach ($mimetypeFilters as $mimetypeFilter) {
69
-			$files = array_merge($files, \OCA\Files\Helper::getFiles($dir, $sortAttribute, $sortDirection, $mimetypeFilter));
70
-		}
65
+        // create filelist with mimetype filter - as getFiles only supports on
66
+        // mimetype filter at once we will filter this folder for each
67
+        // mimetypeFilter
68
+        foreach ($mimetypeFilters as $mimetypeFilter) {
69
+            $files = array_merge($files, \OCA\Files\Helper::getFiles($dir, $sortAttribute, $sortDirection, $mimetypeFilter));
70
+        }
71 71
 
72
-		// sort the files accordingly
73
-		$files = \OCA\Files\Helper::sortFiles($files, $sortAttribute, $sortDirection);
74
-	} else {
75
-		// create file list without mimetype filter
76
-		$files = \OCA\Files\Helper::getFiles($dir, $sortAttribute, $sortDirection);
77
-	}
72
+        // sort the files accordingly
73
+        $files = \OCA\Files\Helper::sortFiles($files, $sortAttribute, $sortDirection);
74
+    } else {
75
+        // create file list without mimetype filter
76
+        $files = \OCA\Files\Helper::getFiles($dir, $sortAttribute, $sortDirection);
77
+    }
78 78
 
79
-	$data['directory'] = $dir;
80
-	$data['files'] = \OCA\Files\Helper::formatFileInfos($files);
81
-	$data['permissions'] = $permissions;
79
+    $data['directory'] = $dir;
80
+    $data['files'] = \OCA\Files\Helper::formatFileInfos($files);
81
+    $data['permissions'] = $permissions;
82 82
 
83
-	\OC_JSON::success(['data' => $data]);
83
+    \OC_JSON::success(['data' => $data]);
84 84
 } catch (\OCP\Files\StorageNotAvailableException $e) {
85
-	\OC::$server->getLogger()->logException($e, ['app' => 'files']);
86
-	\OC_JSON::error([
87
-		'data' => [
88
-			'exception' => StorageNotAvailableException::class,
89
-			'message' => $l->t('Storage is temporarily not available')
90
-		]
91
-	]);
85
+    \OC::$server->getLogger()->logException($e, ['app' => 'files']);
86
+    \OC_JSON::error([
87
+        'data' => [
88
+            'exception' => StorageNotAvailableException::class,
89
+            'message' => $l->t('Storage is temporarily not available')
90
+        ]
91
+    ]);
92 92
 } catch (\OCP\Files\StorageInvalidException $e) {
93
-	\OC::$server->getLogger()->logException($e, ['app' => 'files']);
94
-	\OC_JSON::error([
95
-		'data' => [
96
-			'exception' => StorageInvalidException::class,
97
-			'message' => $l->t('Storage invalid')
98
-		]
99
-	]);
93
+    \OC::$server->getLogger()->logException($e, ['app' => 'files']);
94
+    \OC_JSON::error([
95
+        'data' => [
96
+            'exception' => StorageInvalidException::class,
97
+            'message' => $l->t('Storage invalid')
98
+        ]
99
+    ]);
100 100
 } catch (\Exception $e) {
101
-	\OC::$server->getLogger()->logException($e, ['app' => 'files']);
102
-	\OC_JSON::error([
103
-		'data' => [
104
-			'exception' => \Exception::class,
105
-			'message' => $l->t('Unknown error')
106
-		]
107
-	]);
101
+    \OC::$server->getLogger()->logException($e, ['app' => 'files']);
102
+    \OC_JSON::error([
103
+        'data' => [
104
+            'exception' => \Exception::class,
105
+            'message' => $l->t('Unknown error')
106
+        ]
107
+    ]);
108 108
 }
Please login to merge, or discard this patch.
apps/files_sharing/public.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,15 +28,15 @@
 block discarded – undo
28 28
 $route = isset($_GET['download']) ? 'files_sharing.sharecontroller.downloadShare' : 'files_sharing.sharecontroller.showShare';
29 29
 
30 30
 if ($token !== '') {
31
-	$protocol = \OC::$server->getRequest()->getHttpProtocol();
32
-	if ($protocol == 'HTTP/1.0') {
33
-		http_response_code(302);
34
-	} else {
35
-		http_response_code(307);
36
-	}
37
-	header('Location: ' . $urlGenerator->linkToRoute($route, ['token' => $token]));
31
+    $protocol = \OC::$server->getRequest()->getHttpProtocol();
32
+    if ($protocol == 'HTTP/1.0') {
33
+        http_response_code(302);
34
+    } else {
35
+        http_response_code(307);
36
+    }
37
+    header('Location: ' . $urlGenerator->linkToRoute($route, ['token' => $token]));
38 38
 } else {
39
-	http_response_code(404);
40
-	$tmpl = new OCP\Template('', '404', 'guest');
41
-	print_unescaped($tmpl->fetchPage());
39
+    http_response_code(404);
40
+    $tmpl = new OCP\Template('', '404', 'guest');
41
+    print_unescaped($tmpl->fetchPage());
42 42
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 	} else {
35 35
 		http_response_code(307);
36 36
 	}
37
-	header('Location: ' . $urlGenerator->linkToRoute($route, ['token' => $token]));
37
+	header('Location: '.$urlGenerator->linkToRoute($route, ['token' => $token]));
38 38
 } else {
39 39
 	http_response_code(404);
40 40
 	$tmpl = new OCP\Template('', '404', 'guest');
Please login to merge, or discard this patch.
config/config.sample.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
  *
235 235
  * Defaults to ``60*60*24*15`` seconds (15 days)
236 236
  */
237
-'remember_login_cookie_lifetime' => 60*60*24*15,
237
+'remember_login_cookie_lifetime' => 60 * 60 * 24 * 15,
238 238
 
239 239
 /**
240 240
  * The lifetime of a session after inactivity.
@@ -1184,7 +1184,7 @@  discard block
 block discarded – undo
1184 1184
  * https://github.com/phpredis/phpredis/commit/c5994f2a42b8a348af92d3acb4edff1328ad8ce1
1185 1185
  */
1186 1186
 'redis.cluster' => [
1187
-	'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
1187
+	'seeds' => [// provide some/all of the cluster servers to bootstrap discovery, port required
1188 1188
 		'localhost:7000',
1189 1189
 		'localhost:7001',
1190 1190
 	],
@@ -1249,7 +1249,7 @@  discard block
 block discarded – undo
1249 1249
  *
1250 1250
  * Defaults to ``60*60*24`` (1 day)
1251 1251
  */
1252
-'cache_chunk_gc_ttl' => 60*60*24,
1252
+'cache_chunk_gc_ttl' => 60 * 60 * 24,
1253 1253
 
1254 1254
 /**
1255 1255
  * Using Object Store with Nextcloud
@@ -1682,7 +1682,7 @@  discard block
 block discarded – undo
1682 1682
  * Defaults to ``60*60`` seconds (1 hour) or the php
1683 1683
  *             max_execution_time, whichever is higher.
1684 1684
  */
1685
-'filelocking.ttl' => 60*60,
1685
+'filelocking.ttl' => 60 * 60,
1686 1686
 
1687 1687
 /**
1688 1688
  * Memory caching backend for file locking
Please login to merge, or discard this patch.
Indentation   +159 added lines, -159 removed lines patch added patch discarded remove patch
@@ -41,17 +41,17 @@  discard block
 block discarded – undo
41 41
  */
42 42
 'instanceid' => '',
43 43
 
44
- /**
45
-  * The salt used to hash all passwords, auto-generated by the Nextcloud
46
-  * installer. (There are also per-user salts.) If you lose this salt you lose
47
-  * all your passwords. This example is for documentation only, and you should
48
-  * never use it.
49
-  *
50
-  * @deprecated This salt is deprecated and only used for legacy-compatibility,
51
-  * developers should *NOT* use this value for anything nowadays.
52
-  *
53
-  * 'passwordsalt' => 'd3c944a9af095aa08f',
54
- */
44
+    /**
45
+     * The salt used to hash all passwords, auto-generated by the Nextcloud
46
+     * installer. (There are also per-user salts.) If you lose this salt you lose
47
+     * all your passwords. This example is for documentation only, and you should
48
+     * never use it.
49
+     *
50
+     * @deprecated This salt is deprecated and only used for legacy-compatibility,
51
+     * developers should *NOT* use this value for anything nowadays.
52
+     *
53
+     * 'passwordsalt' => 'd3c944a9af095aa08f',
54
+     */
55 55
 'passwordsalt' => '',
56 56
 
57 57
 /**
@@ -69,12 +69,12 @@  discard block
 block discarded – undo
69 69
  *   Using TLS certificates where commonName=<IP address> is deprecated
70 70
  */
71 71
 'trusted_domains' =>
72
-   [
72
+    [
73 73
     'demo.example.org',
74 74
     'otherdomain.example.org',
75 75
     '10.111.112.113',
76 76
     '[2001:db8::1]'
77
-  ],
77
+    ],
78 78
 
79 79
 
80 80
 /**
@@ -795,10 +795,10 @@  discard block
 block discarded – undo
795 795
  *  - www.edri.org
796 796
  */
797 797
 'connectivity_check_domains' => [
798
-	'www.nextcloud.com',
799
-	'www.startpage.com',
800
-	'www.eff.org',
801
-	'www.edri.org'
798
+    'www.nextcloud.com',
799
+    'www.startpage.com',
800
+    'www.eff.org',
801
+    'www.edri.org'
802 802
 ],
803 803
 
804 804
 /**
@@ -948,9 +948,9 @@  discard block
 block discarded – undo
948 948
  * Defaults to an empty array.
949 949
  */
950 950
 'log.condition' => [
951
-	'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
952
-	'users' => ['sample-user'],
953
-	'apps' => ['files'],
951
+    'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
952
+    'users' => ['sample-user'],
953
+    'apps' => ['files'],
954 954
 ],
955 955
 
956 956
 /**
@@ -1012,18 +1012,18 @@  discard block
 block discarded – undo
1012 1012
  *  - iOS client app id: ``1125420102``
1013 1013
  */
1014 1014
 'customclient_desktop' =>
1015
-	'https://nextcloud.com/install/#install-clients',
1015
+    'https://nextcloud.com/install/#install-clients',
1016 1016
 'customclient_android' =>
1017
-	'https://play.google.com/store/apps/details?id=com.nextcloud.client',
1017
+    'https://play.google.com/store/apps/details?id=com.nextcloud.client',
1018 1018
 'customclient_ios' =>
1019
-	'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8',
1019
+    'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8',
1020 1020
 'customclient_ios_appid' =>
1021
-		'1125420102',
1021
+        '1125420102',
1022 1022
 /**
1023
- * Apps
1024
- *
1025
- * Options for the Apps folder, Apps store, and App code checker.
1026
- */
1023
+         * Apps
1024
+         *
1025
+         * Options for the Apps folder, Apps store, and App code checker.
1026
+         */
1027 1027
 
1028 1028
 /**
1029 1029
  * When enabled, admins may install apps from the Nextcloud app store.
@@ -1055,11 +1055,11 @@  discard block
 block discarded – undo
1055 1055
  * indicates if a Web server can write files to that folder.
1056 1056
  */
1057 1057
 'apps_paths' => [
1058
-	[
1059
-		'path'=> '/var/www/nextcloud/apps',
1060
-		'url' => '/apps',
1061
-		'writable' => true,
1062
-	],
1058
+    [
1059
+        'path'=> '/var/www/nextcloud/apps',
1060
+        'url' => '/apps',
1061
+        'writable' => true,
1062
+    ],
1063 1063
 ],
1064 1064
 
1065 1065
 /**
@@ -1135,8 +1135,8 @@  discard block
 block discarded – undo
1135 1135
  * Defaults to ``''`` (empty string)
1136 1136
  */
1137 1137
 'preview_office_cl_parameters' =>
1138
-	' --headless --nologo --nofirststartwizard --invisible --norestore '.
1139
-	'--convert-to png --outdir ',
1138
+    ' --headless --nologo --nofirststartwizard --invisible --norestore '.
1139
+    '--convert-to png --outdir ',
1140 1140
 
1141 1141
 /**
1142 1142
  * Set the URL of the Imaginary service to send image previews to.
@@ -1181,16 +1181,16 @@  discard block
 block discarded – undo
1181 1181
  *  - OC\Preview\Krita
1182 1182
  */
1183 1183
 'enabledPreviewProviders' => [
1184
-	'OC\Preview\PNG',
1185
-	'OC\Preview\JPEG',
1186
-	'OC\Preview\GIF',
1187
-	'OC\Preview\BMP',
1188
-	'OC\Preview\XBitmap',
1189
-	'OC\Preview\MP3',
1190
-	'OC\Preview\TXT',
1191
-	'OC\Preview\MarkDown',
1192
-	'OC\Preview\OpenDocument',
1193
-	'OC\Preview\Krita',
1184
+    'OC\Preview\PNG',
1185
+    'OC\Preview\JPEG',
1186
+    'OC\Preview\GIF',
1187
+    'OC\Preview\BMP',
1188
+    'OC\Preview\XBitmap',
1189
+    'OC\Preview\MP3',
1190
+    'OC\Preview\TXT',
1191
+    'OC\Preview\MarkDown',
1192
+    'OC\Preview\OpenDocument',
1193
+    'OC\Preview\Krita',
1194 1194
 ],
1195 1195
 
1196 1196
 /**
@@ -1280,11 +1280,11 @@  discard block
 block discarded – undo
1280 1280
 
1281 1281
 /**
1282 1282
  * Extra SSL options to be used for configuration.
1283
-  *
1283
+ *
1284 1284
  * Defaults to an empty array.
1285 1285
  */
1286 1286
 'openssl' => [
1287
-	'config' => '/absolute/location/of/openssl.cnf',
1287
+    'config' => '/absolute/location/of/openssl.cnf',
1288 1288
 ],
1289 1289
 
1290 1290
 /**
@@ -1335,20 +1335,20 @@  discard block
 block discarded – undo
1335 1335
  * See https://redis.io/topics/encryption for more information.
1336 1336
  */
1337 1337
 'redis' => [
1338
-	'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
1339
-	'port' => 6379,
1340
-	'timeout' => 0.0,
1341
-	'read_timeout' => 0.0,
1342
-	'user' =>  '', // Optional, if not defined no password will be used.
1343
-	'password' => '', // Optional, if not defined no password will be used.
1344
-	'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
1345
-	// If redis in-transit encryption is enabled, provide certificates
1346
-	// SSL context https://www.php.net/manual/en/context.ssl.php
1347
-	'ssl_context' => [
1348
-		'local_cert' => '/certs/redis.crt',
1349
-		'local_pk' => '/certs/redis.key',
1350
-		'cafile' => '/certs/ca.crt'
1351
-	]
1338
+    'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
1339
+    'port' => 6379,
1340
+    'timeout' => 0.0,
1341
+    'read_timeout' => 0.0,
1342
+    'user' =>  '', // Optional, if not defined no password will be used.
1343
+    'password' => '', // Optional, if not defined no password will be used.
1344
+    'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
1345
+    // If redis in-transit encryption is enabled, provide certificates
1346
+    // SSL context https://www.php.net/manual/en/context.ssl.php
1347
+    'ssl_context' => [
1348
+        'local_cert' => '/certs/redis.crt',
1349
+        'local_pk' => '/certs/redis.key',
1350
+        'cafile' => '/certs/ca.crt'
1351
+    ]
1352 1352
 ],
1353 1353
 
1354 1354
 /**
@@ -1377,22 +1377,22 @@  discard block
 block discarded – undo
1377 1377
  * https://github.com/phpredis/phpredis/commit/c5994f2a42b8a348af92d3acb4edff1328ad8ce1
1378 1378
  */
1379 1379
 'redis.cluster' => [
1380
-	'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
1381
-		'localhost:7000',
1382
-		'localhost:7001',
1383
-	],
1384
-	'timeout' => 0.0,
1385
-	'read_timeout' => 0.0,
1386
-	'failover_mode' => \RedisCluster::FAILOVER_ERROR,
1387
-	'user' =>  '', // Optional, if not defined no password will be used.
1388
-	'password' => '', // Optional, if not defined no password will be used.
1389
-	// If redis in-transit encryption is enabled, provide certificates
1390
-	// SSL context https://www.php.net/manual/en/context.ssl.php
1391
-	'ssl_context' => [
1392
-		'local_cert' => '/certs/redis.crt',
1393
-		'local_pk' => '/certs/redis.key',
1394
-		'cafile' => '/certs/ca.crt'
1395
-	]
1380
+    'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
1381
+        'localhost:7000',
1382
+        'localhost:7001',
1383
+    ],
1384
+    'timeout' => 0.0,
1385
+    'read_timeout' => 0.0,
1386
+    'failover_mode' => \RedisCluster::FAILOVER_ERROR,
1387
+    'user' =>  '', // Optional, if not defined no password will be used.
1388
+    'password' => '', // Optional, if not defined no password will be used.
1389
+    // If redis in-transit encryption is enabled, provide certificates
1390
+    // SSL context https://www.php.net/manual/en/context.ssl.php
1391
+    'ssl_context' => [
1392
+        'local_cert' => '/certs/redis.crt',
1393
+        'local_pk' => '/certs/redis.key',
1394
+        'cafile' => '/certs/ca.crt'
1395
+    ]
1396 1396
 ],
1397 1397
 
1398 1398
 
@@ -1400,36 +1400,36 @@  discard block
 block discarded – undo
1400 1400
  * Server details for one or more memcached servers to use for memory caching.
1401 1401
  */
1402 1402
 'memcached_servers' => [
1403
-	// hostname, port and optional weight
1404
-	// or path and port 0 for unix socket. Also see:
1405
-	// https://www.php.net/manual/en/memcached.addservers.php
1406
-	// https://www.php.net/manual/en/memcached.addserver.php
1407
-	['localhost', 11211],
1408
-	//array('other.host.local', 11211),
1403
+    // hostname, port and optional weight
1404
+    // or path and port 0 for unix socket. Also see:
1405
+    // https://www.php.net/manual/en/memcached.addservers.php
1406
+    // https://www.php.net/manual/en/memcached.addserver.php
1407
+    ['localhost', 11211],
1408
+    //array('other.host.local', 11211),
1409 1409
 ],
1410 1410
 
1411 1411
 /**
1412 1412
  * Connection options for memcached
1413 1413
  */
1414 1414
 'memcached_options' => [
1415
-	// Set timeouts to 50ms
1416
-	\Memcached::OPT_CONNECT_TIMEOUT => 50,
1417
-	\Memcached::OPT_RETRY_TIMEOUT =>   50,
1418
-	\Memcached::OPT_SEND_TIMEOUT =>    50,
1419
-	\Memcached::OPT_RECV_TIMEOUT =>    50,
1420
-	\Memcached::OPT_POLL_TIMEOUT =>    50,
1415
+    // Set timeouts to 50ms
1416
+    \Memcached::OPT_CONNECT_TIMEOUT => 50,
1417
+    \Memcached::OPT_RETRY_TIMEOUT =>   50,
1418
+    \Memcached::OPT_SEND_TIMEOUT =>    50,
1419
+    \Memcached::OPT_RECV_TIMEOUT =>    50,
1420
+    \Memcached::OPT_POLL_TIMEOUT =>    50,
1421 1421
 
1422
-	// Enable compression
1423
-	\Memcached::OPT_COMPRESSION =>          true,
1422
+    // Enable compression
1423
+    \Memcached::OPT_COMPRESSION =>          true,
1424 1424
 
1425
-	// Turn on consistent hashing
1426
-	\Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
1425
+    // Turn on consistent hashing
1426
+    \Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
1427 1427
 
1428
-	// Enable Binary Protocol
1429
-	\Memcached::OPT_BINARY_PROTOCOL =>      true,
1428
+    // Enable Binary Protocol
1429
+    \Memcached::OPT_BINARY_PROTOCOL =>      true,
1430 1430
 
1431
-	// Binary serializer vill be enabled if the igbinary PECL module is available
1432
-	//\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
1431
+    // Binary serializer vill be enabled if the igbinary PECL module is available
1432
+    //\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
1433 1433
 ],
1434 1434
 
1435 1435
 
@@ -1475,63 +1475,63 @@  discard block
 block discarded – undo
1475 1475
  * One way to test is applying for a trystack account at http://trystack.org/
1476 1476
  */
1477 1477
 'objectstore' => [
1478
-	'class' => 'OC\\Files\\ObjectStore\\Swift',
1479
-	'arguments' => [
1480
-		// trystack will use your facebook id as the user name
1481
-		'username' => 'facebook100000123456789',
1482
-		// in the trystack dashboard go to user -> settings -> API Password to
1483
-		// generate a password
1484
-		'password' => 'Secr3tPaSSWoRdt7',
1485
-		// must already exist in the objectstore, name can be different
1486
-		'container' => 'nextcloud',
1487
-		// prefix to prepend to the fileid, default is 'oid:urn:'
1488
-		'objectPrefix' => 'oid:urn:',
1489
-		// create the container if it does not exist. default is false
1490
-		'autocreate' => true,
1491
-		// required, dev-/trystack defaults to 'RegionOne'
1492
-		'region' => 'RegionOne',
1493
-		// The Identity / Keystone endpoint
1494
-		'url' => 'http://8.21.28.222:5000/v2.0',
1495
-		// uploadPartSize: size of the uploaded chunks, defaults to 524288000
1496
-		'uploadPartSize' => 524288000,
1497
-		// required on dev-/trystack
1498
-		'tenantName' => 'facebook100000123456789',
1499
-		// dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
1500
-		// if omitted
1501
-		'serviceName' => 'swift',
1502
-		// The Interface / url Type, optional
1503
-		'urlType' => 'internal'
1504
-	],
1478
+    'class' => 'OC\\Files\\ObjectStore\\Swift',
1479
+    'arguments' => [
1480
+        // trystack will use your facebook id as the user name
1481
+        'username' => 'facebook100000123456789',
1482
+        // in the trystack dashboard go to user -> settings -> API Password to
1483
+        // generate a password
1484
+        'password' => 'Secr3tPaSSWoRdt7',
1485
+        // must already exist in the objectstore, name can be different
1486
+        'container' => 'nextcloud',
1487
+        // prefix to prepend to the fileid, default is 'oid:urn:'
1488
+        'objectPrefix' => 'oid:urn:',
1489
+        // create the container if it does not exist. default is false
1490
+        'autocreate' => true,
1491
+        // required, dev-/trystack defaults to 'RegionOne'
1492
+        'region' => 'RegionOne',
1493
+        // The Identity / Keystone endpoint
1494
+        'url' => 'http://8.21.28.222:5000/v2.0',
1495
+        // uploadPartSize: size of the uploaded chunks, defaults to 524288000
1496
+        'uploadPartSize' => 524288000,
1497
+        // required on dev-/trystack
1498
+        'tenantName' => 'facebook100000123456789',
1499
+        // dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
1500
+        // if omitted
1501
+        'serviceName' => 'swift',
1502
+        // The Interface / url Type, optional
1503
+        'urlType' => 'internal'
1504
+    ],
1505 1505
 ],
1506 1506
 
1507 1507
 /**
1508 1508
  * To use swift V3
1509 1509
  */
1510 1510
 'objectstore' => [
1511
-	'class' => 'OC\\Files\\ObjectStore\\Swift',
1512
-	'arguments' => [
1513
-		'autocreate' => true,
1514
-		'user' => [
1515
-			'name' => 'swift',
1516
-			'password' => 'swift',
1517
-			'domain' => [
1518
-				'name' => 'default',
1519
-			],
1520
-		],
1521
-		'scope' => [
1522
-			'project' => [
1523
-				'name' => 'service',
1524
-				'domain' => [
1525
-					'name' => 'default',
1526
-				],
1527
-			],
1528
-		],
1529
-		'tenantName' => 'service',
1530
-		'serviceName' => 'swift',
1531
-		'region' => 'regionOne',
1532
-		'url' => 'http://yourswifthost:5000/v3',
1533
-		'bucket' => 'nextcloud',
1534
-	],
1511
+    'class' => 'OC\\Files\\ObjectStore\\Swift',
1512
+    'arguments' => [
1513
+        'autocreate' => true,
1514
+        'user' => [
1515
+            'name' => 'swift',
1516
+            'password' => 'swift',
1517
+            'domain' => [
1518
+                'name' => 'default',
1519
+            ],
1520
+        ],
1521
+        'scope' => [
1522
+            'project' => [
1523
+                'name' => 'service',
1524
+                'domain' => [
1525
+                    'name' => 'default',
1526
+                ],
1527
+            ],
1528
+        ],
1529
+        'tenantName' => 'service',
1530
+        'serviceName' => 'swift',
1531
+        'region' => 'regionOne',
1532
+        'url' => 'http://yourswifthost:5000/v3',
1533
+        'bucket' => 'nextcloud',
1534
+    ],
1535 1535
 ],
1536 1536
 
1537 1537
 /**
@@ -1648,11 +1648,11 @@  discard block
 block discarded – undo
1648 1648
  * does not verify the server cert except --ssl-verify-server-cert is passed manually.
1649 1649
  */
1650 1650
 'dbdriveroptions' => [
1651
-	PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
1652
-	PDO::MYSQL_ATTR_SSL_KEY => '/file/path/to/mysql-client-key.pem',
1653
-	PDO::MYSQL_ATTR_SSL_CERT => '/file/path/to/mysql-client-cert.pem',
1654
-	PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false,
1655
-	PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
1651
+    PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
1652
+    PDO::MYSQL_ATTR_SSL_KEY => '/file/path/to/mysql-client-key.pem',
1653
+    PDO::MYSQL_ATTR_SSL_CERT => '/file/path/to/mysql-client-cert.pem',
1654
+    PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false,
1655
+    PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
1656 1656
 ],
1657 1657
 
1658 1658
 /**
@@ -1727,10 +1727,10 @@  discard block
 block discarded – undo
1727 1727
  *  - pgsql (PostgreSQL)
1728 1728
  */
1729 1729
 'supportedDatabases' => [
1730
-	'sqlite',
1731
-	'mysql',
1732
-	'pgsql',
1733
-	'oci',
1730
+    'sqlite',
1731
+    'mysql',
1732
+    'pgsql',
1733
+    'oci',
1734 1734
 ],
1735 1735
 
1736 1736
 /**
@@ -2112,8 +2112,8 @@  discard block
 block discarded – undo
2112 2112
  * WARNING: only use this if you know what you are doing
2113 2113
  */
2114 2114
 'csrf.optout' => [
2115
-	'/^WebDAVFS/', // OS X Finder
2116
-	'/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
2115
+    '/^WebDAVFS/', // OS X Finder
2116
+    '/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
2117 2117
 ],
2118 2118
 
2119 2119
 /**
Please login to merge, or discard this patch.
lib/private/Files/Type/TemplateManager.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -29,40 +29,40 @@
 block discarded – undo
29 29
  * @deprecated 18.0.0
30 30
  */
31 31
 class TemplateManager {
32
-	protected $templates = [];
32
+    protected $templates = [];
33 33
 
34
-	public function registerTemplate($mimetype, $path) {
35
-		$this->templates[$mimetype] = $path;
36
-	}
34
+    public function registerTemplate($mimetype, $path) {
35
+        $this->templates[$mimetype] = $path;
36
+    }
37 37
 
38
-	/**
39
-	 * get the path of the template for a mimetype
40
-	 *
41
-	 * @deprecated 18.0.0
42
-	 * @param string $mimetype
43
-	 * @return string|null
44
-	 */
45
-	public function getTemplatePath($mimetype) {
46
-		if (isset($this->templates[$mimetype])) {
47
-			return $this->templates[$mimetype];
48
-		} else {
49
-			return null;
50
-		}
51
-	}
38
+    /**
39
+     * get the path of the template for a mimetype
40
+     *
41
+     * @deprecated 18.0.0
42
+     * @param string $mimetype
43
+     * @return string|null
44
+     */
45
+    public function getTemplatePath($mimetype) {
46
+        if (isset($this->templates[$mimetype])) {
47
+            return $this->templates[$mimetype];
48
+        } else {
49
+            return null;
50
+        }
51
+    }
52 52
 
53
-	/**
54
-	 * get the template content for a mimetype
55
-	 *
56
-	 * @deprecated 18.0.0
57
-	 * @param string $mimetype
58
-	 * @return string
59
-	 */
60
-	public function getTemplate($mimetype) {
61
-		$path = $this->getTemplatePath($mimetype);
62
-		if ($path) {
63
-			return file_get_contents($path);
64
-		} else {
65
-			return '';
66
-		}
67
-	}
53
+    /**
54
+     * get the template content for a mimetype
55
+     *
56
+     * @deprecated 18.0.0
57
+     * @param string $mimetype
58
+     * @return string
59
+     */
60
+    public function getTemplate($mimetype) {
61
+        $path = $this->getTemplatePath($mimetype);
62
+        if ($path) {
63
+            return file_get_contents($path);
64
+        } else {
65
+            return '';
66
+        }
67
+    }
68 68
 }
Please login to merge, or discard this patch.
lib/private/Route/CachingRouter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 */
52 52
 	public function generate($name, $parameters = [], $absolute = false) {
53 53
 		asort($parameters);
54
-		$key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . sha1(json_encode($parameters)) . (int)$absolute;
54
+		$key = $this->context->getHost().'#'.$this->context->getBaseUrl().$name.sha1(json_encode($parameters)).(int) $absolute;
55 55
 		$cachedKey = $this->cache->get($key);
56 56
 		if ($cachedKey) {
57 57
 			return $cachedKey;
Please login to merge, or discard this patch.
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -27,39 +27,39 @@
 block discarded – undo
27 27
 use Psr\Log\LoggerInterface;
28 28
 
29 29
 class CachingRouter extends Router {
30
-	/**
31
-	 * @var \OCP\ICache
32
-	 */
33
-	protected $cache;
30
+    /**
31
+     * @var \OCP\ICache
32
+     */
33
+    protected $cache;
34 34
 
35
-	/**
36
-	 * @param \OCP\ICache $cache
37
-	 */
38
-	public function __construct($cache, LoggerInterface $logger) {
39
-		$this->cache = $cache;
40
-		parent::__construct($logger);
41
-	}
35
+    /**
36
+     * @param \OCP\ICache $cache
37
+     */
38
+    public function __construct($cache, LoggerInterface $logger) {
39
+        $this->cache = $cache;
40
+        parent::__construct($logger);
41
+    }
42 42
 
43
-	/**
44
-	 * Generate url based on $name and $parameters
45
-	 *
46
-	 * @param string $name Name of the route to use.
47
-	 * @param array $parameters Parameters for the route
48
-	 * @param bool $absolute
49
-	 * @return string
50
-	 */
51
-	public function generate($name, $parameters = [], $absolute = false) {
52
-		asort($parameters);
53
-		$key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . sha1(json_encode($parameters)) . (int)$absolute;
54
-		$cachedKey = $this->cache->get($key);
55
-		if ($cachedKey) {
56
-			return $cachedKey;
57
-		} else {
58
-			$url = parent::generate($name, $parameters, $absolute);
59
-			if ($url) {
60
-				$this->cache->set($key, $url, 3600);
61
-			}
62
-			return $url;
63
-		}
64
-	}
43
+    /**
44
+     * Generate url based on $name and $parameters
45
+     *
46
+     * @param string $name Name of the route to use.
47
+     * @param array $parameters Parameters for the route
48
+     * @param bool $absolute
49
+     * @return string
50
+     */
51
+    public function generate($name, $parameters = [], $absolute = false) {
52
+        asort($parameters);
53
+        $key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . sha1(json_encode($parameters)) . (int)$absolute;
54
+        $cachedKey = $this->cache->get($key);
55
+        if ($cachedKey) {
56
+            return $cachedKey;
57
+        } else {
58
+            $url = parent::generate($name, $parameters, $absolute);
59
+            if ($url) {
60
+                $this->cache->set($key, $url, 3600);
61
+            }
62
+            return $url;
63
+        }
64
+    }
65 65
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/AbstractTrash.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -31,67 +31,67 @@
 block discarded – undo
31 31
 use OCP\Files\FileInfo;
32 32
 
33 33
 abstract class AbstractTrash implements ITrash {
34
-	/** @var ITrashItem */
35
-	protected $data;
34
+    /** @var ITrashItem */
35
+    protected $data;
36 36
 
37
-	/** @var ITrashManager */
38
-	protected $trashManager;
37
+    /** @var ITrashManager */
38
+    protected $trashManager;
39 39
 
40
-	public function __construct(ITrashManager $trashManager, ITrashItem $data) {
41
-		$this->trashManager = $trashManager;
42
-		$this->data = $data;
43
-	}
40
+    public function __construct(ITrashManager $trashManager, ITrashItem $data) {
41
+        $this->trashManager = $trashManager;
42
+        $this->data = $data;
43
+    }
44 44
 
45
-	public function getFilename(): string {
46
-		return $this->data->getName();
47
-	}
45
+    public function getFilename(): string {
46
+        return $this->data->getName();
47
+    }
48 48
 
49
-	public function getDeletionTime(): int {
50
-		return $this->data->getDeletedTime();
51
-	}
49
+    public function getDeletionTime(): int {
50
+        return $this->data->getDeletedTime();
51
+    }
52 52
 
53
-	public function getFileId(): int {
54
-		return $this->data->getId();
55
-	}
53
+    public function getFileId(): int {
54
+        return $this->data->getId();
55
+    }
56 56
 
57
-	public function getFileInfo(): FileInfo {
58
-		return $this->data;
59
-	}
57
+    public function getFileInfo(): FileInfo {
58
+        return $this->data;
59
+    }
60 60
 
61
-	public function getSize(): int {
62
-		return $this->data->getSize();
63
-	}
61
+    public function getSize(): int {
62
+        return $this->data->getSize();
63
+    }
64 64
 
65
-	public function getLastModified(): int {
66
-		return $this->data->getMtime();
67
-	}
65
+    public function getLastModified(): int {
66
+        return $this->data->getMtime();
67
+    }
68 68
 
69
-	public function getContentType(): string {
70
-		return $this->data->getMimetype();
71
-	}
69
+    public function getContentType(): string {
70
+        return $this->data->getMimetype();
71
+    }
72 72
 
73
-	public function getETag(): string {
74
-		return $this->data->getEtag();
75
-	}
73
+    public function getETag(): string {
74
+        return $this->data->getEtag();
75
+    }
76 76
 
77
-	public function getName(): string {
78
-		return $this->data->getName();
79
-	}
77
+    public function getName(): string {
78
+        return $this->data->getName();
79
+    }
80 80
 
81
-	public function getOriginalLocation(): string {
82
-		return $this->data->getOriginalLocation();
83
-	}
81
+    public function getOriginalLocation(): string {
82
+        return $this->data->getOriginalLocation();
83
+    }
84 84
 
85
-	public function getTitle(): string {
86
-		return $this->data->getTitle();
87
-	}
85
+    public function getTitle(): string {
86
+        return $this->data->getTitle();
87
+    }
88 88
 
89
-	public function delete() {
90
-		$this->trashManager->removeItem($this->data);
91
-	}
89
+    public function delete() {
90
+        $this->trashManager->removeItem($this->data);
91
+    }
92 92
 
93
-	public function restore(): bool {
94
-		$this->trashManager->restoreItem($this->data);
95
-		return true;
96
-	}
93
+    public function restore(): bool {
94
+        $this->trashManager->restoreItem($this->data);
95
+        return true;
96
+    }
97 97
 }
Please login to merge, or discard this patch.