style: apply K&R + tab formatting across the codebase (make cs-fix)

Mechanical, behaviour-preserving reformat produced by 'make cs-fix' under
the new build/phpcs.xml.dist ruleset: K&R braces, tab indentation, and the
other whitespace normalisations. No logic changes.
This commit is contained in:
Divarion_D
2026-09-13 14:14:23 +03:00
parent 5843f18bb7
commit 758a9cab0b
513 changed files with 35922 additions and 36029 deletions
@@ -18,23 +18,23 @@ use XcVm\Domain\Stream\StreamConfigRepository;
*/
class CreatedChannelMassController extends BaseAdminController {
public function index() {
$this->requirePermission();
public function index() {
$this->requirePermission();
global $rServers;
global $rServers;
$rCategories = CategoryService::getAllByType('live');
$rTranscodeProfiles = StreamConfigRepository::getTranscodeProfiles();
$rServerTree = array(
array('id' => 'source', 'parent' => '#', 'text' => "<strong class='btn btn-success waves-effect waves-light btn-xs'>Active</strong>", 'icon' => 'mdi mdi-play', 'state' => array('opened' => true)),
array('id' => 'offline', 'parent' => '#', 'text' => "<strong class='btn btn-secondary waves-effect waves-light btn-xs'>Offline</strong>", 'icon' => 'mdi mdi-stop', 'state' => array('opened' => true))
);
$rCategories = CategoryService::getAllByType('live');
$rTranscodeProfiles = StreamConfigRepository::getTranscodeProfiles();
$rServerTree = [
['id' => 'source', 'parent' => '#', 'text' => "<strong class='btn btn-success waves-effect waves-light btn-xs'>Active</strong>", 'icon' => 'mdi mdi-play', 'state' => ['opened' => true]],
['id' => 'offline', 'parent' => '#', 'text' => "<strong class='btn btn-secondary waves-effect waves-light btn-xs'>Offline</strong>", 'icon' => 'mdi mdi-stop', 'state' => ['opened' => true]]
];
foreach ($rServers as $rServer) {
$rServerTree[] = array('id' => intval($rServer['id']), 'parent' => 'offline', 'text' => htmlspecialchars($rServer['server_name']), 'icon' => 'mdi mdi-server-network', 'state' => array('opened' => true));
}
foreach ($rServers as $rServer) {
$rServerTree[] = ['id' => intval($rServer['id']), 'parent' => 'offline', 'text' => htmlspecialchars($rServer['server_name']), 'icon' => 'mdi mdi-server-network', 'state' => ['opened' => true]];
}
$this->setTitle('Mass Edit Channels');
$this->render('created_channel_mass', compact('rCategories', 'rTranscodeProfiles', 'rServerTree'));
}
$this->setTitle('Mass Edit Channels');
$this->render('created_channel_mass', compact('rCategories', 'rTranscodeProfiles', 'rServerTree'));
}
}