diff --git a/legacy/application/auth/adapters/FreeIpa.php b/legacy/application/auth/adapters/FreeIpa.php index 239592134..611264763 100644 --- a/legacy/application/auth/adapters/FreeIpa.php +++ b/legacy/application/auth/adapters/FreeIpa.php @@ -118,7 +118,7 @@ class LibreTime_Auth_Adaptor_FreeIpa implements Zend_Auth_Adapter_Interface */ public function getResultRowObject() { - $o = new \stdClass(); + $o = new stdClass(); $o->id = $this->user->getId(); $o->username = $this->user->getLogin(); $o->password = $this->user->getPassword(); diff --git a/legacy/application/check.php b/legacy/application/check.php index d5a9c66cf..d49c6f610 100644 --- a/legacy/application/check.php +++ b/legacy/application/check.php @@ -1,5 +1,6 @@ analyze($analyzeFile); } else { $getFileInfo = []; @@ -199,7 +199,7 @@ class FileDataHelper $fullpath = $fp . $dbAudioPath; if (class_exists('getID3')) { - $getID3 = new \getID3(); + $getID3 = new getID3(); $getFileInfo = $getID3->analyze($fullpath); } else { $getFileInfo = []; diff --git a/legacy/application/models/RabbitMq.php b/legacy/application/models/RabbitMq.php index ea021e005..3c2ea47f5 100644 --- a/legacy/application/models/RabbitMq.php +++ b/legacy/application/models/RabbitMq.php @@ -1,5 +1,8 @@ exchange_declare($exchange, $exchangeType, false, true, $autoDeleteExchange); - $msg = new \PhpAmqpLib\Message\AMQPMessage($data, ['content_type' => 'text/plain']); + $msg = new AMQPMessage($data, ['content_type' => 'text/plain']); $channel->basic_publish($msg, $exchange); $channel->close(); @@ -97,7 +100,7 @@ class Application_Model_RabbitMq ) { $config = Config::getConfig(); - $conn = new \PhpAmqpLib\Connection\AMQPStreamConnection( + $conn = new AMQPStreamConnection( $config['rabbitmq']['host'], $config['rabbitmq']['port'], $config['rabbitmq']['user'], @@ -144,7 +147,7 @@ class Application_Model_RabbitMq // the way it is just so I don't accidentally break anything when I add the Analyzer code in. -- Albert, March 13, 2014 $channel->exchange_declare($exchange, $exchangeType, false, true, $autoDeleteExchange); - $msg = new \PhpAmqpLib\Message\AMQPMessage($jsonData, ['content_type' => 'text/plain']); + $msg = new AMQPMessage($jsonData, ['content_type' => 'text/plain']); $channel->basic_publish($msg, $exchange); $channel->close(); diff --git a/legacy/application/models/Scheduler.php b/legacy/application/models/Scheduler.php index e7415acc3..8acf411cc 100644 --- a/legacy/application/models/Scheduler.php +++ b/legacy/application/models/Scheduler.php @@ -614,10 +614,8 @@ final class Application_Model_Scheduler /** * Enter description here ... * - * @param $scheduleItems - * cc_schedule items, where the items get inserted after - * @param $filesToInsert - * array of schedule item info, what gets inserted into cc_schedule + * @param $scheduleItems cc_schedule items, where the items get inserted after + * @param $filesToInsert array of schedule item info, what gets inserted into cc_schedule * @param mixed $mediaItems * @param mixed $moveAction * @param mixed $adjustSched diff --git a/legacy/tools/composer.json b/legacy/tools/composer.json index 453dc0ba2..1716b97b0 100644 --- a/legacy/tools/composer.json +++ b/legacy/tools/composer.json @@ -1,6 +1,6 @@ { "require": { "php": "^7.4", - "friendsofphp/php-cs-fixer": "<3.45.1" + "friendsofphp/php-cs-fixer": "<3.46.1" } }