Fix formatting

- include/auth.php
- include/oauth.php
- include/user.php
- mod/removeme.php
- src/Worker/Queue.php
This commit is contained in:
Hypolite Petovan 2017-11-26 14:18:45 -05:00
parent 2236f60cfa
commit 90a8ae2cb8
5 changed files with 73 additions and 174 deletions

View file

@ -4,21 +4,21 @@ use Friendica\App;
use Friendica\Core\System;
use Friendica\Model\User;
function removeme_post(App $a) {
if (! local_user()) {
function removeme_post(App $a)
{
if (!local_user()) {
return;
}
if (x($_SESSION,'submanage') && intval($_SESSION['submanage'])) {
if (x($_SESSION, 'submanage') && intval($_SESSION['submanage'])) {
return;
}
if ((! x($_POST,'qxz_password')) || (! strlen(trim($_POST['qxz_password'])))) {
if ((!x($_POST, 'qxz_password')) || (!strlen(trim($_POST['qxz_password'])))) {
return;
}
if ((! x($_POST,'verify')) || (! strlen(trim($_POST['verify'])))) {
if ((!x($_POST, 'verify')) || (!strlen(trim($_POST['verify'])))) {
return;
}
@ -32,12 +32,11 @@ function removeme_post(App $a) {
User::remove($a->user['uid']);
// NOTREACHED
}
}
function removeme_content(App $a) {
if (! local_user()) {
function removeme_content(App $a)
{
if (!local_user()) {
goaway(System::baseUrl());
}
@ -59,5 +58,4 @@ function removeme_content(App $a) {
));
return $o;
}