parent::tearDown();
}
- /**
- * @return MockObject|IStorage
- */
- private function getMockStorage() {
+ private function getMockStorage(): MockObject&IStorage {
$storage = $this->getMockBuilder(IStorage::class)
->disableOriginalConstructor()
->getMock();
return $storage;
}
- /**
- * @param string $string
- */
- private function getStream($string) {
+ private function getStream(string $string) {
$stream = fopen('php://temp', 'r+');
fwrite($stream, $string);
fseek($stream, 0);
}
}
+ /** @param string $user */
private static function setUpTrash($user): void {
$view = new View('/' . $user);
if (!$view->is_dir('files_trashbin')) {
* @param string $sourcePath
* @param string $owner
* @param string $targetPath
- * @param $user
+ * @param string $user
* @param int $timestamp
*/
- private static function copyFilesToUser($sourcePath, $owner, $targetPath, $user, $timestamp) {
+ private static function copyFilesToUser($sourcePath, $owner, $targetPath, $user, $timestamp): void {
self::setUpTrash($owner);
$targetFilename = basename($targetPath);