| @@ -22,14 +22,14 @@ | ||
| 22 | 22 | try { |
| 23 | 23 | $steps = $params['steps'] ?? array(); |
| 24 | 24 | |
| 25 | 25 | if ( empty( $steps ) ) { |
| 26 | - throw new Exception( __( 'Steps invalid', 'learnpress' ) ); | |
| 26 | + throw new Exception( __( 'Invalid steps', 'learnpress' ) ); | |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | $step = $params['step'] ?? ''; |
| 30 | 30 | if ( empty( $step ) ) { |
| 31 | - throw new Exception( __( 'Step invalid', 'learnpress' ) ); | |
| 31 | + throw new Exception( __( 'Invalid step', 'learnpress' ) ); | |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | $data = $params['data'] ?? array(); |
| 35 | 35 | |
| @@ -74,7 +74,7 @@ | ||
| 74 | 74 | if ( is_callable( $step_function ) ) { |
| 75 | 75 | return call_user_func( $step_function, $data ); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - throw new Exception( __( 'Not found function', 'learnpress' ) . $step_function ); | |
| 78 | + throw new Exception( __( 'Function not found', 'learnpress' ) . $step_function ); | |
| 79 | 79 | } |
| 80 | 80 | } |