mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Code Style fixes
This commit is contained in:
parent
17547f812b
commit
89c6517e4d
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,6 @@ use Yii;
|
||||
*/
|
||||
class CountrySelect extends Select
|
||||
{
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user