Completed
Push — master ( a67720...be1982 )
by Daniel
19:40 queued 14s
created
lib/public/Lock/LockedException.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@
 block discarded – undo
60 60
 		if ($readablePath) {
61 61
 			$message = "\"$path\"(\"$readablePath\") is locked";
62 62
 		} else {
63
-			$message = '"' . $path . '" is locked';
63
+			$message = '"'.$path.'" is locked';
64 64
 		}
65 65
 		$this->existingLock = $existingLock;
66 66
 		if ($existingLock) {
67
-			$message .= ', existing lock on file: ' . $existingLock;
67
+			$message .= ', existing lock on file: '.$existingLock;
68 68
 		}
69 69
 		parent::__construct($message, 0, $previous);
70 70
 		$this->path = $path;
Please login to merge, or discard this patch.
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -14,52 +14,52 @@
 block discarded – undo
14 14
  * @since 8.1.0
15 15
  */
16 16
 class LockedException extends \Exception {
17
-	/**
18
-	 * Locked path
19
-	 *
20
-	 * @var string
21
-	 */
22
-	private $path;
17
+    /**
18
+     * Locked path
19
+     *
20
+     * @var string
21
+     */
22
+    private $path;
23 23
 
24
-	/** @var string|null */
25
-	private $existingLock;
24
+    /** @var string|null */
25
+    private $existingLock;
26 26
 
27
-	/**
28
-	 * LockedException constructor.
29
-	 *
30
-	 * @param string $path locked path
31
-	 * @param \Exception|null $previous previous exception for cascading
32
-	 * @param string $existingLock since 14.0.0
33
-	 * @param string $readablePath since 20.0.0
34
-	 * @since 8.1.0
35
-	 */
36
-	public function __construct(string $path, ?\Exception $previous = null, ?string $existingLock = null, ?string $readablePath = null) {
37
-		if ($readablePath) {
38
-			$message = "\"$path\"(\"$readablePath\") is locked";
39
-		} else {
40
-			$message = '"' . $path . '" is locked';
41
-		}
42
-		$this->existingLock = $existingLock;
43
-		if ($existingLock) {
44
-			$message .= ', existing lock on file: ' . $existingLock;
45
-		}
46
-		parent::__construct($message, 0, $previous);
47
-		$this->path = $path;
48
-	}
27
+    /**
28
+     * LockedException constructor.
29
+     *
30
+     * @param string $path locked path
31
+     * @param \Exception|null $previous previous exception for cascading
32
+     * @param string $existingLock since 14.0.0
33
+     * @param string $readablePath since 20.0.0
34
+     * @since 8.1.0
35
+     */
36
+    public function __construct(string $path, ?\Exception $previous = null, ?string $existingLock = null, ?string $readablePath = null) {
37
+        if ($readablePath) {
38
+            $message = "\"$path\"(\"$readablePath\") is locked";
39
+        } else {
40
+            $message = '"' . $path . '" is locked';
41
+        }
42
+        $this->existingLock = $existingLock;
43
+        if ($existingLock) {
44
+            $message .= ', existing lock on file: ' . $existingLock;
45
+        }
46
+        parent::__construct($message, 0, $previous);
47
+        $this->path = $path;
48
+    }
49 49
 
50
-	/**
51
-	 * @return string
52
-	 * @since 8.1.0
53
-	 */
54
-	public function getPath(): string {
55
-		return $this->path;
56
-	}
50
+    /**
51
+     * @return string
52
+     * @since 8.1.0
53
+     */
54
+    public function getPath(): string {
55
+        return $this->path;
56
+    }
57 57
 
58
-	/**
59
-	 * @return string
60
-	 * @since 19.0.0
61
-	 */
62
-	public function getExistingLock(): ?string {
63
-		return $this->existingLock;
64
-	}
58
+    /**
59
+     * @return string
60
+     * @since 19.0.0
61
+     */
62
+    public function getExistingLock(): ?string {
63
+        return $this->existingLock;
64
+    }
65 65
 }
Please login to merge, or discard this patch.
apps/sharebymail/lib/AppInfo/Application.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,16 +35,16 @@
 block discarded – undo
35 35
 use OCP\AppFramework\Bootstrap\IRegistrationContext;
36 36
 
37 37
 class Application extends App implements IBootstrap {
38
-	public const APP_ID = 'sharebymail';
38
+    public const APP_ID = 'sharebymail';
39 39
 
40
-	public function __construct() {
41
-		parent::__construct(self::APP_ID);
42
-	}
40
+    public function __construct() {
41
+        parent::__construct(self::APP_ID);
42
+    }
43 43
 
44
-	public function register(IRegistrationContext $context): void {
45
-		$context->registerCapability(Capabilities::class);
46
-	}
44
+    public function register(IRegistrationContext $context): void {
45
+        $context->registerCapability(Capabilities::class);
46
+    }
47 47
 
48
-	public function boot(IBootContext $context): void {
49
-	}
48
+    public function boot(IBootContext $context): void {
49
+    }
50 50
 }
Please login to merge, or discard this patch.
lib/public/Notification/IDeferrableApp.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -32,17 +32,17 @@
 block discarded – undo
32 32
  * @since 20.0.0
33 33
  */
34 34
 interface IDeferrableApp extends IApp {
35
-	/**
36
-	 * Start deferring notifications until `flush()` is called
37
-	 *
38
-	 * @since 20.0.0
39
-	 */
40
-	public function defer(): void;
35
+    /**
36
+     * Start deferring notifications until `flush()` is called
37
+     *
38
+     * @since 20.0.0
39
+     */
40
+    public function defer(): void;
41 41
 
42
-	/**
43
-	 * Send all deferred notifications that have been stored since `defer()` was called
44
-	 *
45
-	 * @since 20.0.0
46
-	 */
47
-	public function flush(): void;
42
+    /**
43
+     * Send all deferred notifications that have been stored since `defer()` was called
44
+     *
45
+     * @since 20.0.0
46
+     */
47
+    public function flush(): void;
48 48
 }
Please login to merge, or discard this patch.
apps/federation/lib/Migration/Version1010Date20200630191302.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -33,51 +33,51 @@
 block discarded – undo
33 33
 
34 34
 class Version1010Date20200630191302 extends SimpleMigrationStep {
35 35
 
36
-	/**
37
-	 * @param IOutput $output
38
-	 * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
39
-	 * @param array $options
40
-	 * @return null|ISchemaWrapper
41
-	 */
42
-	public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
43
-		/** @var ISchemaWrapper $schema */
44
-		$schema = $schemaClosure();
36
+    /**
37
+     * @param IOutput $output
38
+     * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
39
+     * @param array $options
40
+     * @return null|ISchemaWrapper
41
+     */
42
+    public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
43
+        /** @var ISchemaWrapper $schema */
44
+        $schema = $schemaClosure();
45 45
 
46
-		if (!$schema->hasTable('trusted_servers')) {
47
-			$table = $schema->createTable('trusted_servers');
48
-			$table->addColumn('id', Types::INTEGER, [
49
-				'autoincrement' => true,
50
-				'notnull' => true,
51
-				'length' => 4,
52
-			]);
53
-			$table->addColumn('url', Types::STRING, [
54
-				'notnull' => true,
55
-				'length' => 512,
56
-			]);
57
-			$table->addColumn('url_hash', Types::STRING, [
58
-				'notnull' => true,
59
-				'default' => '',
60
-			]);
61
-			$table->addColumn('token', Types::STRING, [
62
-				'notnull' => false,
63
-				'length' => 128,
64
-			]);
65
-			$table->addColumn('shared_secret', Types::STRING, [
66
-				'notnull' => false,
67
-				'length' => 256,
68
-			]);
69
-			$table->addColumn('status', Types::INTEGER, [
70
-				'notnull' => true,
71
-				'length' => 4,
72
-				'default' => 2,
73
-			]);
74
-			$table->addColumn('sync_token', Types::STRING, [
75
-				'notnull' => false,
76
-				'length' => 512,
77
-			]);
78
-			$table->setPrimaryKey(['id']);
79
-			$table->addUniqueIndex(['url_hash'], 'url_hash');
80
-		}
81
-		return $schema;
82
-	}
46
+        if (!$schema->hasTable('trusted_servers')) {
47
+            $table = $schema->createTable('trusted_servers');
48
+            $table->addColumn('id', Types::INTEGER, [
49
+                'autoincrement' => true,
50
+                'notnull' => true,
51
+                'length' => 4,
52
+            ]);
53
+            $table->addColumn('url', Types::STRING, [
54
+                'notnull' => true,
55
+                'length' => 512,
56
+            ]);
57
+            $table->addColumn('url_hash', Types::STRING, [
58
+                'notnull' => true,
59
+                'default' => '',
60
+            ]);
61
+            $table->addColumn('token', Types::STRING, [
62
+                'notnull' => false,
63
+                'length' => 128,
64
+            ]);
65
+            $table->addColumn('shared_secret', Types::STRING, [
66
+                'notnull' => false,
67
+                'length' => 256,
68
+            ]);
69
+            $table->addColumn('status', Types::INTEGER, [
70
+                'notnull' => true,
71
+                'length' => 4,
72
+                'default' => 2,
73
+            ]);
74
+            $table->addColumn('sync_token', Types::STRING, [
75
+                'notnull' => false,
76
+                'length' => 512,
77
+            ]);
78
+            $table->setPrimaryKey(['id']);
79
+            $table->addUniqueIndex(['url_hash'], 'url_hash');
80
+        }
81
+        return $schema;
82
+    }
83 83
 }
Please login to merge, or discard this patch.
apps/contactsinteraction/lib/AppInfo/Application.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,16 +33,16 @@
 block discarded – undo
33 33
 use OCP\Contacts\Events\ContactInteractedWithEvent;
34 34
 
35 35
 class Application extends App implements IBootstrap {
36
-	public const APP_ID = 'contactsinteraction';
36
+    public const APP_ID = 'contactsinteraction';
37 37
 
38
-	public function __construct() {
39
-		parent::__construct(self::APP_ID);
40
-	}
38
+    public function __construct() {
39
+        parent::__construct(self::APP_ID);
40
+    }
41 41
 
42
-	public function register(IRegistrationContext $context): void {
43
-		$context->registerEventListener(ContactInteractedWithEvent::class, ContactInteractionListener::class);
44
-	}
42
+    public function register(IRegistrationContext $context): void {
43
+        $context->registerEventListener(ContactInteractedWithEvent::class, ContactInteractionListener::class);
44
+    }
45 45
 
46
-	public function boot(IBootContext $context): void {
47
-	}
46
+    public function boot(IBootContext $context): void {
47
+    }
48 48
 }
Please login to merge, or discard this patch.
apps/cloud_federation_api/lib/AppInfo/Application.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,16 +33,16 @@
 block discarded – undo
33 33
 use OCP\AppFramework\Bootstrap\IRegistrationContext;
34 34
 
35 35
 class Application extends App implements IBootstrap {
36
-	public const APP_ID = 'cloud_federation_api';
36
+    public const APP_ID = 'cloud_federation_api';
37 37
 
38
-	public function __construct() {
39
-		parent::__construct(self::APP_ID);
40
-	}
38
+    public function __construct() {
39
+        parent::__construct(self::APP_ID);
40
+    }
41 41
 
42
-	public function register(IRegistrationContext $context): void {
43
-		$context->registerCapability(Capabilities::class);
44
-	}
42
+    public function register(IRegistrationContext $context): void {
43
+        $context->registerCapability(Capabilities::class);
44
+    }
45 45
 
46
-	public function boot(IBootContext $context): void {
47
-	}
46
+    public function boot(IBootContext $context): void {
47
+    }
48 48
 }
Please login to merge, or discard this patch.
lib/private/ServerContainer.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 		if (isset($this->namespaces[$namespace])) {
105 105
 			if (!isset($this->hasNoAppContainer[$namespace])) {
106
-				$applicationClassName = 'OCA\\' . $sensitiveNamespace . '\\AppInfo\\Application';
106
+				$applicationClassName = 'OCA\\'.$sensitiveNamespace.'\\AppInfo\\Application';
107 107
 				if (class_exists($applicationClassName)) {
108 108
 					$app = new $applicationClassName();
109 109
 					if (isset($this->appContainers[$namespace])) {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 		}
160 160
 
161 161
 		try {
162
-			[,$namespace,] = explode('\\', $id);
162
+			[,$namespace, ] = explode('\\', $id);
163 163
 			return $this->getAppContainer(strtolower($namespace), $namespace);
164 164
 		} catch (QueryException $e) {
165 165
 			return null;
Please login to merge, or discard this patch.
Indentation   +151 added lines, -151 removed lines patch added patch discarded remove patch
@@ -39,155 +39,155 @@
 block discarded – undo
39 39
  * @package OC
40 40
  */
41 41
 class ServerContainer extends SimpleContainer {
42
-	/** @var DIContainer[] */
43
-	protected $appContainers;
44
-
45
-	/** @var string[] */
46
-	protected $hasNoAppContainer;
47
-
48
-	/** @var string[] */
49
-	protected $namespaces;
50
-
51
-	/**
52
-	 * ServerContainer constructor.
53
-	 */
54
-	public function __construct() {
55
-		parent::__construct();
56
-		$this->appContainers = [];
57
-		$this->namespaces = [];
58
-		$this->hasNoAppContainer = [];
59
-	}
60
-
61
-	/**
62
-	 * @param string $appName
63
-	 * @param string $appNamespace
64
-	 */
65
-	public function registerNamespace(string $appName, string $appNamespace): void {
66
-		// Cut of OCA\ and lowercase
67
-		$appNamespace = strtolower(substr($appNamespace, strrpos($appNamespace, '\\') + 1));
68
-		$this->namespaces[$appNamespace] = $appName;
69
-	}
70
-
71
-	/**
72
-	 * @param string $appName
73
-	 * @param DIContainer $container
74
-	 */
75
-	public function registerAppContainer(string $appName, DIContainer $container): void {
76
-		$this->appContainers[strtolower(App::buildAppNamespace($appName, ''))] = $container;
77
-	}
78
-
79
-	/**
80
-	 * @param string $appName
81
-	 * @return DIContainer
82
-	 * @throws QueryException
83
-	 */
84
-	public function getRegisteredAppContainer(string $appName): DIContainer {
85
-		if (isset($this->appContainers[strtolower(App::buildAppNamespace($appName, ''))])) {
86
-			return $this->appContainers[strtolower(App::buildAppNamespace($appName, ''))];
87
-		}
88
-
89
-		throw new QueryException();
90
-	}
91
-
92
-	/**
93
-	 * @param string $namespace
94
-	 * @param string $sensitiveNamespace
95
-	 * @return DIContainer
96
-	 * @throws QueryException
97
-	 */
98
-	protected function getAppContainer(string $namespace, string $sensitiveNamespace): DIContainer {
99
-		if (isset($this->appContainers[$namespace])) {
100
-			return $this->appContainers[$namespace];
101
-		}
102
-
103
-		if (isset($this->namespaces[$namespace])) {
104
-			if (!isset($this->hasNoAppContainer[$namespace])) {
105
-				$applicationClassName = 'OCA\\' . $sensitiveNamespace . '\\AppInfo\\Application';
106
-				if (class_exists($applicationClassName)) {
107
-					$app = new $applicationClassName();
108
-					if (isset($this->appContainers[$namespace])) {
109
-						$this->appContainers[$namespace]->offsetSet($applicationClassName, $app);
110
-						return $this->appContainers[$namespace];
111
-					}
112
-				}
113
-				$this->hasNoAppContainer[$namespace] = true;
114
-			}
115
-
116
-			return new DIContainer($this->namespaces[$namespace]);
117
-		}
118
-		throw new QueryException();
119
-	}
120
-
121
-	public function has($id, bool $noRecursion = false): bool {
122
-		if (!$noRecursion && ($appContainer = $this->getAppContainerForService($id)) !== null) {
123
-			return $appContainer->has($id);
124
-		}
125
-
126
-		return parent::has($id);
127
-	}
128
-
129
-	/**
130
-	 * @template T
131
-	 * @param class-string<T>|string $name
132
-	 * @return T|mixed
133
-	 * @psalm-template S as class-string<T>|string
134
-	 * @psalm-param S $name
135
-	 * @psalm-return (S is class-string<T> ? T : mixed)
136
-	 * @throws QueryException
137
-	 * @deprecated 20.0.0 use \Psr\Container\ContainerInterface::get
138
-	 */
139
-	public function query(string $name, bool $autoload = true) {
140
-		$name = $this->sanitizeName($name);
141
-
142
-		if (str_starts_with($name, 'OCA\\')) {
143
-			// Skip server container query for app namespace classes
144
-			try {
145
-				return parent::query($name, false);
146
-			} catch (QueryException $e) {
147
-				// Continue with general autoloading then
148
-			}
149
-		}
150
-
151
-		// In case the service starts with OCA\ we try to find the service in
152
-		// the apps container first.
153
-		if (($appContainer = $this->getAppContainerForService($name)) !== null) {
154
-			try {
155
-				return $appContainer->queryNoFallback($name);
156
-			} catch (QueryException $e) {
157
-				// Didn't find the service or the respective app container
158
-				// In this case the service won't be part of the core container,
159
-				// so we can throw directly
160
-				throw $e;
161
-			}
162
-		} elseif (str_starts_with($name, 'OC\\Settings\\') && substr_count($name, '\\') >= 3) {
163
-			$segments = explode('\\', $name);
164
-			try {
165
-				$appContainer = $this->getAppContainer(strtolower($segments[1]), $segments[1]);
166
-				return $appContainer->queryNoFallback($name);
167
-			} catch (QueryException $e) {
168
-				// Didn't find the service or the respective app container,
169
-				// ignore it and fall back to the core container.
170
-			}
171
-		}
172
-
173
-		return parent::query($name, $autoload);
174
-	}
175
-
176
-	/**
177
-	 * @internal
178
-	 * @param string $id
179
-	 * @return DIContainer|null
180
-	 */
181
-	public function getAppContainerForService(string $id): ?DIContainer {
182
-		if (!str_starts_with($id, 'OCA\\') || substr_count($id, '\\') < 2) {
183
-			return null;
184
-		}
185
-
186
-		try {
187
-			[,$namespace,] = explode('\\', $id);
188
-			return $this->getAppContainer(strtolower($namespace), $namespace);
189
-		} catch (QueryException $e) {
190
-			return null;
191
-		}
192
-	}
42
+    /** @var DIContainer[] */
43
+    protected $appContainers;
44
+
45
+    /** @var string[] */
46
+    protected $hasNoAppContainer;
47
+
48
+    /** @var string[] */
49
+    protected $namespaces;
50
+
51
+    /**
52
+     * ServerContainer constructor.
53
+     */
54
+    public function __construct() {
55
+        parent::__construct();
56
+        $this->appContainers = [];
57
+        $this->namespaces = [];
58
+        $this->hasNoAppContainer = [];
59
+    }
60
+
61
+    /**
62
+     * @param string $appName
63
+     * @param string $appNamespace
64
+     */
65
+    public function registerNamespace(string $appName, string $appNamespace): void {
66
+        // Cut of OCA\ and lowercase
67
+        $appNamespace = strtolower(substr($appNamespace, strrpos($appNamespace, '\\') + 1));
68
+        $this->namespaces[$appNamespace] = $appName;
69
+    }
70
+
71
+    /**
72
+     * @param string $appName
73
+     * @param DIContainer $container
74
+     */
75
+    public function registerAppContainer(string $appName, DIContainer $container): void {
76
+        $this->appContainers[strtolower(App::buildAppNamespace($appName, ''))] = $container;
77
+    }
78
+
79
+    /**
80
+     * @param string $appName
81
+     * @return DIContainer
82
+     * @throws QueryException
83
+     */
84
+    public function getRegisteredAppContainer(string $appName): DIContainer {
85
+        if (isset($this->appContainers[strtolower(App::buildAppNamespace($appName, ''))])) {
86
+            return $this->appContainers[strtolower(App::buildAppNamespace($appName, ''))];
87
+        }
88
+
89
+        throw new QueryException();
90
+    }
91
+
92
+    /**
93
+     * @param string $namespace
94
+     * @param string $sensitiveNamespace
95
+     * @return DIContainer
96
+     * @throws QueryException
97
+     */
98
+    protected function getAppContainer(string $namespace, string $sensitiveNamespace): DIContainer {
99
+        if (isset($this->appContainers[$namespace])) {
100
+            return $this->appContainers[$namespace];
101
+        }
102
+
103
+        if (isset($this->namespaces[$namespace])) {
104
+            if (!isset($this->hasNoAppContainer[$namespace])) {
105
+                $applicationClassName = 'OCA\\' . $sensitiveNamespace . '\\AppInfo\\Application';
106
+                if (class_exists($applicationClassName)) {
107
+                    $app = new $applicationClassName();
108
+                    if (isset($this->appContainers[$namespace])) {
109
+                        $this->appContainers[$namespace]->offsetSet($applicationClassName, $app);
110
+                        return $this->appContainers[$namespace];
111
+                    }
112
+                }
113
+                $this->hasNoAppContainer[$namespace] = true;
114
+            }
115
+
116
+            return new DIContainer($this->namespaces[$namespace]);
117
+        }
118
+        throw new QueryException();
119
+    }
120
+
121
+    public function has($id, bool $noRecursion = false): bool {
122
+        if (!$noRecursion && ($appContainer = $this->getAppContainerForService($id)) !== null) {
123
+            return $appContainer->has($id);
124
+        }
125
+
126
+        return parent::has($id);
127
+    }
128
+
129
+    /**
130
+     * @template T
131
+     * @param class-string<T>|string $name
132
+     * @return T|mixed
133
+     * @psalm-template S as class-string<T>|string
134
+     * @psalm-param S $name
135
+     * @psalm-return (S is class-string<T> ? T : mixed)
136
+     * @throws QueryException
137
+     * @deprecated 20.0.0 use \Psr\Container\ContainerInterface::get
138
+     */
139
+    public function query(string $name, bool $autoload = true) {
140
+        $name = $this->sanitizeName($name);
141
+
142
+        if (str_starts_with($name, 'OCA\\')) {
143
+            // Skip server container query for app namespace classes
144
+            try {
145
+                return parent::query($name, false);
146
+            } catch (QueryException $e) {
147
+                // Continue with general autoloading then
148
+            }
149
+        }
150
+
151
+        // In case the service starts with OCA\ we try to find the service in
152
+        // the apps container first.
153
+        if (($appContainer = $this->getAppContainerForService($name)) !== null) {
154
+            try {
155
+                return $appContainer->queryNoFallback($name);
156
+            } catch (QueryException $e) {
157
+                // Didn't find the service or the respective app container
158
+                // In this case the service won't be part of the core container,
159
+                // so we can throw directly
160
+                throw $e;
161
+            }
162
+        } elseif (str_starts_with($name, 'OC\\Settings\\') && substr_count($name, '\\') >= 3) {
163
+            $segments = explode('\\', $name);
164
+            try {
165
+                $appContainer = $this->getAppContainer(strtolower($segments[1]), $segments[1]);
166
+                return $appContainer->queryNoFallback($name);
167
+            } catch (QueryException $e) {
168
+                // Didn't find the service or the respective app container,
169
+                // ignore it and fall back to the core container.
170
+            }
171
+        }
172
+
173
+        return parent::query($name, $autoload);
174
+    }
175
+
176
+    /**
177
+     * @internal
178
+     * @param string $id
179
+     * @return DIContainer|null
180
+     */
181
+    public function getAppContainerForService(string $id): ?DIContainer {
182
+        if (!str_starts_with($id, 'OCA\\') || substr_count($id, '\\') < 2) {
183
+            return null;
184
+        }
185
+
186
+        try {
187
+            [,$namespace,] = explode('\\', $id);
188
+            return $this->getAppContainer(strtolower($namespace), $namespace);
189
+        } catch (QueryException $e) {
190
+            return null;
191
+        }
192
+    }
193 193
 }
Please login to merge, or discard this patch.
lib/public/User/Backend/ICustomLogout.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
  * SSO providers that also have a SSO logout url
33 33
  */
34 34
 interface ICustomLogout {
35
-	/**
36
-	 * @since 20.0.0
37
-	 *
38
-	 * The url to redirect to for logout
39
-	 *
40
-	 * @return string
41
-	 */
42
-	public function getLogoutUrl(): string;
35
+    /**
36
+     * @since 20.0.0
37
+     *
38
+     * The url to redirect to for logout
39
+     *
40
+     * @return string
41
+     */
42
+    public function getLogoutUrl(): string;
43 43
 }
Please login to merge, or discard this patch.
apps/user_status/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\\UserStatus\\' => array($baseDir . '/../lib'),
9
+    'OCA\\UserStatus\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.