Change record status: 
Introduced in branch: 
master
Introduced in version: 
master
Description: 

When you have a condition that aims to change the value of a variable without additional logic, get rid of if else elseif code, just define early variable and change it via conditions

The issue has been caught here

Before:

if ($a = 'hello') {
 $text = 'Welcome to site';
}
else {
 $text = 'Register please';
}

After:

$text = 'Register please';
if ($a = 'hello') {
 $text = 'Welcome to site';
}
Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done