src/MessageGroupProcessing/MessageGroupReviewStore.php
Method changeState
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function changeState( MessageGroup $group, string $code, string $newState, User $user ): bool {
$currentState = $this->getState( $group, $code );
if ( $currentState === $newState ) {
return false;
}