Apply fixes from StyleCI (#12)

This commit is contained in:
Pig Fang 2019-03-03 00:38:44 +08:00 committed by GitHub
parent 995c653fec
commit 63b352d670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,8 +288,9 @@ class SkinlibController extends Controller
@$users->get($t->uploader)->setScore($score_diff, 'plus');
$t->public = !$t->public;
$t->public = ! $t->public;
$t->save();
return json([
'errno' => 0,
'msg' => trans('skinlib.privacy.success', ['privacy' => (! $t->public ? trans('general.private') : trans('general.public'))]),