Code Style fixes

This commit is contained in:
Lucas Bartholemy 2024-04-26 18:05:41 +02:00
parent 17547f812b
commit 89c6517e4d
3 changed files with 4 additions and 4 deletions

View File

@ -114,12 +114,12 @@ class Events extends BaseObject
try {
if ($follow->getTarget() === null) {
if ($integrityController->showFix('Deleting follow ' . $follow->id . ' of non target ' . $follow->object_model. ' #' . $follow->object_id . '!')) {
if ($integrityController->showFix('Deleting follow ' . $follow->id . ' of non target ' . $follow->object_model . ' #' . $follow->object_id . '!')) {
$follow->delete();
}
}
} catch (Exception $e) {
if ($integrityController->showFix('Deleting follow ' . $follow->id . ' of non target ' . $follow->object_model. ' #' . $follow->object_id . '!')) {
if ($integrityController->showFix('Deleting follow ' . $follow->id . ' of non target ' . $follow->object_model . ' #' . $follow->object_id . '!')) {
$follow->delete();
}
}

View File

@ -33,7 +33,8 @@ class m240419_095931_fix_user_profile_country_code extends Migration
foreach ($profiles->column() as $wrongCountryCode) {
Profile::updateAll(
['country' => $this->getCodeByCountry($wrongCountryCode)],
['country' => $wrongCountryCode]);
['country' => $wrongCountryCode],
);
}
}

View File

@ -22,7 +22,6 @@ use Yii;
*/
class CountrySelect extends Select
{
/**
* @inheritdoc
*/