PluginProbe
Tutor LMS – eLearning and online course solution / 2.0.10
Tutor LMS – eLearning and online course solution v2.0.10
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 trunk 1.0.0 1.0.0-alpha 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 All 191 releases
← All changes | classes/Custom_Validation.php +8 -21 trunk2.0.10 View file →
@@ -1,32 +1,19 @@
1 1 <?php
2 -/**
3 - * Reuseable custom validation trait
4 - *
5 - * @package Tutor
6 - * @author Themeum <support@themeum.com>
7 - * @link https://themeum.com
8 - * @since 2.0.0
9 - */
10 -
11 2 namespace TUTOR;
12 -
13 3 /**
14 - * Custom Validation Trait
15 - *
16 - * @since 2.0.0
4 + * Custom Valaidation Trait
17 5 */
18 -trait Custom_Validation {
19 -
6 +trait Custom_Validation
7 +{
20 8 /**
21 9 * Check whether order value is asc or desc
22 10 *
23 - * @since 2.0.0
24 - *
25 - * @param string $order sorting order.
11 + * @param string $order
26 12 * @return bool
27 13 */
28 - public function validate_order( $order ) {
29 - return in_array( strtolower( $order ), array( 'asc', 'desc' ), true );
14 + public function validate_order( $order )
15 + {
16 + return in_array( strtolower( $order ), array( 'asc', 'desc' ) );
30 17 }
31 18 }
32 -
19 +?>