Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tests/stubs/doctrine_dbal_driver_exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ interface Exception extends Throwable
*
* @return string|null
*/
public function getSQLState()
{
}
public function getSQLState();
}
16 changes: 4 additions & 12 deletions tests/stubs/doctrine_dbal_schema_constraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,18 @@
interface Constraint
{
/** @return string */
public function getName()
{
}
public function getName();

/** @return string */
public function getQuotedName(AbstractPlatform $platform)
{
}
public function getQuotedName(AbstractPlatform $platform);

/**
* Returns the names of the referencing table columns
* the constraint is associated with.
*
* @return string[]
*/
public function getColumns()
{
}
public function getColumns();

/**
* Returns the quoted representation of the column names
Expand All @@ -43,7 +37,5 @@ public function getColumns()
*
* @return string[]
*/
public function getQuotedColumns(AbstractPlatform $platform)
{
}
public function getQuotedColumns(AbstractPlatform $platform);
}
56 changes: 28 additions & 28 deletions tests/stubs/oc.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,78 +75,78 @@ class OC {
* the app path list is empty or contains an invalid path
*/
public static function initPaths(): void
{
}
{
}

public static function checkConfig(): void
{
}
{
}

public static function checkInstalled(\OC\SystemConfig $systemConfig): void
{
}
{
}

public static function checkMaintenanceMode(\OC\SystemConfig $systemConfig): void
{
}
{
}

public static function initSession(): void
{
}
{
}

/**
* @return bool true if the session expiry should only be done by gc instead of an explicit timeout
*/
public static function hasSessionRelaxedExpiry(): bool
{
}
{
}

/**
* Try to set some values to the required Nextcloud default
*/
public static function setRequiredIniValues(): void
{
}
{
}

public static function init(): void
{
}
{
}

/**
* register hooks for the cleanup of cache and bruteforce protection
*/
public static function registerCleanupHooks(\OC\SystemConfig $systemConfig): void
{
}
{
}

/**
* register hooks for sharing
*/
public static function registerShareHooks(\OC\SystemConfig $systemConfig): void
{
}
{
}

/**
* Handle the request
*/
public static function handleRequest(): void
{
}
{
}

/**
* Check login: apache auth, auth token, basic auth
*/
public static function handleLogin(OCP\IRequest $request): bool
{
}
{
}

protected static function handleAuthHeaders(): void
{
}
{
}

protected static function tryAppAPILogin(OCP\IRequest $request): bool
{
}
{
}
}

OC::init();
8 changes: 4 additions & 4 deletions tests/stubs/oc_appframework_bootstrap_aregistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
*/
abstract class ARegistration {
public function __construct(string $appId)
{
}
{
}

/**
* @return string
*/
public function getAppId(): string
{
}
{
}
}
20 changes: 10 additions & 10 deletions tests/stubs/oc_appframework_bootstrap_coordinator.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ public function __construct(
}

public function runInitialRegistration(): void
{
}
{
}

public function runLazyRegistration(string $appId): void
{
}
{
}

public function getRegistrationContext(): ?RegistrationContext
{
}
{
}

public function bootApp(string $appId): void
{
}
{
}

public function isBootable(string $appId)
{
}
{
}
}
Loading
Loading