This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
$this->tablePrefix = $dbTablePrefix;
}
+ /**
+ * @param string $userName
+ */
abstract public function setupDatabase($userName);
}
}
/**
- * @param IDbConnection $connection
+ * @param IDBConnection $connection
* @throws \OC\DatabaseSetupException
*/
private function createDBUser($connection) {
*
* all return: http://localhost
*
- * @param string $shareWith
+ * @param string $remote
* @return string
*/
protected static function fixRemoteURL($remote) {
* split user and remote from federated cloud id
*
* @param string $id
- * @return array
+ * @return string[]
* @throws HintException
*/
public static function splitUserRemote($id) {
return $id ? $id : false;
}
+ /**
+ * @param string $itemType
+ * @param string $itemSource
+ * @param integer $shareType
+ * @param string $shareWith
+ * @param string $uidOwner
+ * @param integer $permissions
+ * @param string|null $itemSourceName
+ * @param null|\DateTime $expirationDate
+ */
private static function checkReshare($itemType, $itemSource, $shareType, $shareWith, $uidOwner, $permissions, $itemSourceName, $expirationDate) {
$backend = self::getBackend($itemType);
protected static $initTemplateEngineFirstRun = true;
+ /**
+ * @param string $app
+ * @param string $name
+ */
public function __construct( $app, $name, $renderAs = "", $registerCall = true ) {
// Read the selected theme from the config file
self::initTemplateEngine($renderAs);
parent::__construct($template, $requestToken, $l10n, $themeDefaults);
}
+ /**
+ * @param string $renderAs
+ */
public static function initTemplateEngine($renderAs) {
if (self::$initTemplateEngineFirstRun){
* Checking all the possible locations.
* @param string $theme
* @param string $app
- * @return array
+ * @return string[]
*/
protected function findTemplate($theme, $app, $name) {
// Check if it is a app template or not.
use OC\Hooks\BasicEmitter;
use OC\IntegrityCheck\Checker;
-use OC\IntegrityCheck\Storage;
use OC_App;
use OC_Installer;
use OC_Util;
* @param string $installedVersion previous version from which to upgrade from
*
* @throws \Exception
- * @return bool true if the operation succeeded, false otherwise
+ * @return boolean|null true if the operation succeeded, false otherwise
*/
private function doUpgrade($currentVersion, $installedVersion) {
// Stop update if the update is over several major versions
* Sets user display name for session
*
* @param string $uid
- * @param null $displayName
+ * @param string $displayName
* @return bool Whether the display name could get set
*/
public static function setDisplayName($uid, $displayName = null) {