Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
parent
15f7cac660
commit
ae9f2eeee2
5 changed files with 11 additions and 4 deletions
|
@ -63,7 +63,8 @@ class ClientController extends Controller
|
|||
return redirect($response, $request->getHeaderLine('Referer'));
|
||||
}
|
||||
|
||||
return view()->render($response->withHeader('Content-Disposition', 'attachment;filename="xbackbone_uploader_'.$user->username.'.sh"'),
|
||||
return view()->render(
|
||||
$response->withHeader('Content-Disposition', 'attachment;filename="xbackbone_uploader_'.$user->username.'.sh"'),
|
||||
'scripts/xbackbone_uploader.sh.twig',
|
||||
[
|
||||
'username' => $user->username,
|
||||
|
|
|
@ -31,7 +31,8 @@ class UserController extends Controller
|
|||
|
||||
$pages = $this->database->query('SELECT COUNT(*) AS `count` FROM `users`')->fetch()->count / self::PER_PAGE;
|
||||
|
||||
return view()->render($response,
|
||||
return view()->render(
|
||||
$response,
|
||||
'user/index.twig',
|
||||
[
|
||||
'users' => $users,
|
||||
|
|
|
@ -20,7 +20,8 @@ class RememberMiddleware extends Middleware
|
|||
if (!$this->session->get('logged', false) && !empty($request->getCookieParams()['remember'])) {
|
||||
[$selector, $token] = explode(':', $request->getCookieParams()['remember']);
|
||||
|
||||
$user = $this->database->query('SELECT `id`, `username`,`is_admin`, `active`, `remember_token`, `current_disk_quota`, `max_disk_quota`, `copy_raw` FROM `users` WHERE `remember_selector` = ? AND `remember_expire` > ? LIMIT 1',
|
||||
$user = $this->database->query(
|
||||
'SELECT `id`, `username`,`is_admin`, `active`, `remember_token`, `current_disk_quota`, `max_disk_quota`, `copy_raw` FROM `users` WHERE `remember_selector` = ? AND `remember_expire` > ? LIMIT 1',
|
||||
[$selector, date('Y-m-d\TH:i:s', time())]
|
||||
)->fetch();
|
||||
|
||||
|
|
|
@ -95,10 +95,13 @@ if (!function_exists('stringToBytes')) {
|
|||
switch ($last) {
|
||||
case 't':
|
||||
$val *= 1024;
|
||||
// no break
|
||||
case 'g':
|
||||
$val *= 1024;
|
||||
// no break
|
||||
case 'm':
|
||||
$val *= 1024;
|
||||
// no break
|
||||
case 'k':
|
||||
$val *= 1024;
|
||||
}
|
||||
|
|
|
@ -89,7 +89,8 @@ return [
|
|||
sprintf(
|
||||
'DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s;',
|
||||
$config['storage']['account_name'],
|
||||
$config['storage']['account_key'])
|
||||
$config['storage']['account_key']
|
||||
)
|
||||
);
|
||||
|
||||
return new Filesystem(new AzureBlobStorageAdapter($client, $config['storage']['container_name']));
|
||||
|
|
Loading…
Reference in a new issue