fix minor cody style issues (codacy)

main
msquare 7 years ago
parent deae2a1721
commit 15c50ab315

@ -252,13 +252,13 @@ function admin_active()
}
}
$uc = DB::selectOne('SELECT count(*) FROM `User` WHERE `Tshirt`=1');
$uc = array_shift($uc);
$shirtCount = DB::selectOne('SELECT count(*) FROM `User` WHERE `Tshirt`=1');
$shirtCount = array_shift($shirtCount);
$shirt_statistics[] = [
'size' => '<b>' . _('Sum') . '</b>',
'needed' => '<b>' . User_arrived_count() . '</b>',
'given' => '<b>' . (int)$uc . '</b>'
'given' => '<b>' . (int)$shirtCount . '</b>'
];
return page_with_title(admin_active_title(), [

@ -13,14 +13,14 @@ class RoomModelTest extends TestCase
require_once __DIR__ . '/../../../includes/engelsystem.php';
}
public function create_Room()
public function createRoom()
{
$this->room_id = Room_create('test', false, true, '');
}
public function test_Room()
public function testRoom()
{
$this->create_Room();
$this->createRoom();
$room = Room($this->room_id);

Loading…
Cancel
Save