PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 2.0.1
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v2.0.1
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/Utils/Plan.php +7 -15 3.0.82.0.1 View file →
@@ -2,21 +2,13 @@
2 2
3 3 namespace Templately\Utils;
4 4
5 5 class Plan extends Base {
6 - const ALL = 1;
7 - const STARTER = 2;
8 - const PRO = 3;
6 + const ALL = 1;
7 + const STARTER = 2;
8 + const PRO = 3;
9 9
10 - /**
11 - * Get the plan ID.
12 - *
13 - * @since 2.0.0
14 - * @param string $plan
15 - *
16 - * @return int
17 - */
18 - public static function get( $plan = 'all' ) {
19 - $plan = strtoupper( $plan );
20 - return $plan === 'STARTER' ? self::STARTER : ( $plan === 'PRO' ? self::PRO : self::ALL );
21 - }
10 + public static function get( $plan = 'all' ) : int {
11 + $plan = strtoupper( $plan );
12 + return $plan === 'STARTER' ? self::STARTER : ( $plan === 'PRO' ? self::PRO : self::ALL );
13 + }
22 14 }