Skip to content

Commit

Permalink
Add the VIP feature flag, and fix all the phpcs errors in the setting…
Browse files Browse the repository at this point in the history
…s files
  • Loading branch information
ingeniumed committed Jun 24, 2024
1 parent b7d70af commit 3c16b23
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 103 deletions.
4 changes: 2 additions & 2 deletions edit_flow.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,11 @@ function get_module_by( $key, $value ) {
$module = false;
foreach ( $this->modules as $mod_name => $mod_data ) {

if ( $key == 'name' && $value == $mod_name ) {
if ( 'name' === $key && $value === $mod_name ) {
$module = $this->modules->$mod_name;
} else {
foreach ( $mod_data as $mod_data_key => $mod_data_value ) {
if ( $mod_data_key == $key && $mod_data_value == $value ) {
if ( $mod_data_key === $key && $mod_data_value === $value ) {
$module = $this->modules->$mod_name;
}
}
Expand Down
Loading

0 comments on commit 3c16b23

Please sign in to comment.