@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $active_step = 0; |
| 119 | 119 | |
| 120 | 120 | foreach ( $step_keys as $index => $step_key ) { |
| 121 | - $completed_step = isset( self::$checklist['completed_steps'][ $step_key ] ); |
|
| 121 | + $completed_step = isset( self::$checklist['completed_steps'][$step_key] ); |
|
| 122 | 122 | |
| 123 | 123 | if ( false === $completed_step ) { |
| 124 | 124 | switch ( $step_key ) { |
@@ -132,15 +132,15 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | if ( $completed_step ) { |
| 135 | - self::$checklist['completed_steps'][ $step_key ] = true; |
|
| 135 | + self::$checklist['completed_steps'][$step_key] = true; |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | // Count completed steps from start until gap found. |
| 139 | 139 | if ( $completed_step && $index === $active_step ) { |
| 140 | - $active_step++; |
|
| 140 | + $active_step ++; |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - self::$steps['steps'][ $index ]['completed'] = $completed_step; |
|
| 143 | + self::$steps['steps'][$index]['completed'] = $completed_step; |
|
| 144 | 144 | }//end foreach |
| 145 | 145 | |
| 146 | 146 | self::$checklist['active_step'] = $active_step; |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | self::$checklist['done'] = true; |
| 150 | 150 | self::$checklist['active_step_key'] = 'completed'; |
| 151 | 151 | } else { |
| 152 | - self::$checklist['active_step_key'] = $step_keys[ $active_step ]; |
|
| 152 | + self::$checklist['active_step_key'] = $step_keys[$active_step]; |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | self::save_checklist(); |
@@ -199,8 +199,8 @@ discard block |
||
| 199 | 199 | */ |
| 200 | 200 | private static function fill_step_completed_data( $steps, $steps_keys ) { |
| 201 | 201 | return array_map( |
| 202 | - function ( $step, $step_key ) { |
|
| 203 | - $step['completed'] = isset( self::$checklist['completed_steps'][ $step_key ] ); |
|
| 202 | + function( $step, $step_key ) { |
|
| 203 | + $step['completed'] = isset( self::$checklist['completed_steps'][$step_key] ); |
|
| 204 | 204 | return $step; |
| 205 | 205 | }, |
| 206 | 206 | $steps, |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | 'target' => '#frm_style_sidebar .frm-style-card > div', |
| 235 | 235 | 'left-position' => 'end', |
| 236 | 236 | 'offset' => array( |
| 237 | - 'top' => -22, |
|
| 237 | + 'top' => - 22, |
|
| 238 | 238 | 'left' => 16, |
| 239 | 239 | ), |
| 240 | 240 | ); |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | break; |
| 251 | 251 | }//end switch |
| 252 | 252 | |
| 253 | - return array_merge( self::$steps['steps'][ self::$checklist['active_step'] ], $spotlight_data ); |
|
| 253 | + return array_merge( self::$steps['steps'][self::$checklist['active_step']], $spotlight_data ); |
|
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | /** |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | } |
| 378 | 378 | |
| 379 | 379 | self::$checklist = self::get_checklist(); |
| 380 | - self::$checklist['completed_steps'][ $step_key ] = true; |
|
| 380 | + self::$checklist['completed_steps'][$step_key] = true; |
|
| 381 | 381 | self::save_checklist(); |
| 382 | 382 | |
| 383 | 383 | wp_send_json_success(); |
@@ -591,7 +591,7 @@ discard block |
||
| 591 | 591 | $steps = self::get_steps(); |
| 592 | 592 | |
| 593 | 593 | foreach ( $steps as $key => $step ) { |
| 594 | - $usage_data[ 'completed_step_' . $key ] = empty( $option['completed_steps'][ $key ] ) ? 0 : 1; |
|
| 594 | + $usage_data['completed_step_' . $key] = empty( $option['completed_steps'][$key] ) ? 0 : 1; |
|
| 595 | 595 | } |
| 596 | 596 | |
| 597 | 597 | $usage_data['done'] = empty( $option['done'] ) ? 0 : 1; |