@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $active_step = 0; |
| 124 | 124 | |
| 125 | 125 | foreach ( $step_keys as $index => $step_key ) { |
| 126 | - $completed_step = isset( self::$checklist['completed_steps'][ $step_key ] ); |
|
| 126 | + $completed_step = isset( self::$checklist['completed_steps'][$step_key] ); |
|
| 127 | 127 | |
| 128 | 128 | if ( false === $completed_step ) { |
| 129 | 129 | switch ( $step_key ) { |
@@ -136,16 +136,16 @@ discard block |
||
| 136 | 136 | } |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - if ( $completed_step && ! isset( self::$checklist['completed_steps'][ $step_key ] ) ) { |
|
| 140 | - self::$checklist['completed_steps'][ $step_key ] = true; |
|
| 139 | + if ( $completed_step && ! isset( self::$checklist['completed_steps'][$step_key] ) ) { |
|
| 140 | + self::$checklist['completed_steps'][$step_key] = true; |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | // Count completed steps from start until gap found. |
| 144 | 144 | if ( $completed_step && $index === $active_step ) { |
| 145 | - $active_step++; |
|
| 145 | + $active_step ++; |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | - self::$steps['steps'][ $index ]['completed'] = $completed_step; |
|
| 148 | + self::$steps['steps'][$index]['completed'] = $completed_step; |
|
| 149 | 149 | }//end foreach |
| 150 | 150 | |
| 151 | 151 | self::$checklist['active_step'] = $active_step; |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | self::$checklist['done'] = true; |
| 155 | 155 | self::$checklist['active_step_key'] = 'completed'; |
| 156 | 156 | } else { |
| 157 | - self::$checklist['active_step_key'] = $step_keys[ $active_step ]; |
|
| 157 | + self::$checklist['active_step_key'] = $step_keys[$active_step]; |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | self::save_checklist(); |
@@ -208,8 +208,8 @@ discard block |
||
| 208 | 208 | */ |
| 209 | 209 | private static function fill_step_completed_data( $steps, $steps_keys ) { |
| 210 | 210 | return array_map( |
| 211 | - function ( $step, $step_key ) { |
|
| 212 | - $step['completed'] = isset( self::$checklist['completed_steps'][ $step_key ] ); |
|
| 211 | + function( $step, $step_key ) { |
|
| 212 | + $step['completed'] = isset( self::$checklist['completed_steps'][$step_key] ); |
|
| 213 | 213 | return $step; |
| 214 | 214 | }, |
| 215 | 215 | $steps, |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | 'target' => '#frm_style_sidebar .frm-style-card > div', |
| 246 | 246 | 'left-position' => 'end', |
| 247 | 247 | 'offset' => array( |
| 248 | - 'top' => -22, |
|
| 248 | + 'top' => - 22, |
|
| 249 | 249 | 'left' => 16, |
| 250 | 250 | ), |
| 251 | 251 | ); |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | break; |
| 262 | 262 | }//end switch |
| 263 | 263 | |
| 264 | - return array_merge( self::$steps['steps'][ self::$checklist['active_step'] ], $spotlight_data ); |
|
| 264 | + return array_merge( self::$steps['steps'][self::$checklist['active_step']], $spotlight_data ); |
|
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | /** |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | } |
| 355 | 355 | |
| 356 | 356 | self::$checklist = self::get_checklist(); |
| 357 | - self::$checklist['completed_steps'][ $step_key ] = true; |
|
| 357 | + self::$checklist['completed_steps'][$step_key] = true; |
|
| 358 | 358 | self::save_checklist(); |
| 359 | 359 | |
| 360 | 360 | wp_send_json_success(); |