Quellcode durchsuchen

Add typehints

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v14.0.0beta1
Julius Härtl vor 6 Jahren
Ursprung
Commit
39f44e1452
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden

+ 0
- 1
apps/theming/lib/Controller/ThemingController.php Datei anzeigen

@@ -135,7 +135,6 @@ class ThemingController extends Controller {
* @param string $setting
* @param string $value
* @return DataResponse
* @throws NotFoundException
* @throws NotPermittedException
*/
public function updateStylesheet($setting, $value) {

+ 3
- 2
apps/theming/lib/ImageManager.php Datei anzeigen

@@ -25,6 +25,7 @@
namespace OCA\Theming;

use OCP\Files\SimpleFS\ISimpleFile;
use OCP\Files\SimpleFS\ISimpleFolder;
use OCP\IConfig;
use OCP\Files\IAppData;
use OCP\Files\NotFoundException;
@@ -132,7 +133,7 @@ class ImageManager {
* @return \OCP\Files\SimpleFS\ISimpleFile
* @throws NotPermittedException
*/
public function getCachedImage($filename): ISimpleFile {
public function getCachedImage(string $filename): ISimpleFile {
$currentFolder = $this->getCacheFolder();
return $currentFolder->getFile($filename);
}
@@ -146,7 +147,7 @@ class ImageManager {
* @throws NotFoundException
* @throws NotPermittedException
*/
public function setCachedImage($filename, $data): ISimpleFile {
public function setCachedImage(string $filename, string $data): ISimpleFile {
$currentFolder = $this->getCacheFolder();
if ($currentFolder->fileExists($filename)) {
$file = $currentFolder->getFile($filename);

+ 1
- 0
apps/theming/lib/ThemingDefaults.php Datei anzeigen

@@ -36,6 +36,7 @@ namespace OCA\Theming;

use OCP\App\AppPathNotFoundException;
use OCP\App\IAppManager;
use OCP\Files\NotFoundException;
use OCP\ICacheFactory;
use OCP\IConfig;
use OCP\IL10N;

Laden…
Abbrechen
Speichern