mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-21 20:03:08 +02:00
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:
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user