From 4827dbce711262e90238bb3b6c0a35b1ce3d6877 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sun, 7 Jan 2024 13:59:02 +0100
Subject: [PATCH] fix(deps): update dependency friendsofphp/php-cs-fixer to
<3.46.1 (main) (#2868)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[friendsofphp/php-cs-fixer](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer)
| `<3.45.1` -> `<3.46.1` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
PHP-CS-Fixer/PHP-CS-Fixer (friendsofphp/php-cs-fixer)
###
[`v3.46.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3460)
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.45.0...v3.46.0)
- chore: fix internal typehints in Tokens
([#7656](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7656))
- chore: reduce PHPStan baseline
([#7643](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7643))
- docs: Show class with unit tests and BC promise info
([#7667](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7667))
- feat: change default ruleset to `@PER-CS` (only behind
PHP_CS_FIXER_FUTURE_MODE=1)
([#7650](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7650))
- feat: Support new/instanceof/use trait in
`fully_qualified_strict_types`
([#7653](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7653))
- fix: FQCN parse phpdoc using full grammar regex
([#7649](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7649))
- fix: Handle FQCN properly with `leading_backslash_in_global_namespace`
option enabled
([#7654](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7654))
- fix: PhpdocToParamTypeFixerTest - support for arrow functions
([#7647](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7647))
- fix: PHP_CS_FIXER_FUTURE_MODE - proper boolean validation
([#7651](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7651))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime).
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo
---
legacy/application/auth/adapters/FreeIpa.php | 2 +-
legacy/application/check.php | 3 ++-
legacy/application/common/FileDataHelper.php | 4 ++--
legacy/application/models/RabbitMq.php | 11 +++++++----
legacy/application/models/Scheduler.php | 6 ++----
legacy/tools/composer.json | 2 +-
6 files changed, 15 insertions(+), 13 deletions(-)
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"
}
}