PluginProbe
Elementor Website Builder – more than just a page builder / 3.26.4
Elementor Website Builder – more than just a page builder v3.26.4
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | modules/elementor-counter/module.php +5 -5 4.2.13.26.4 View file →
@@ -38,9 +38,9 @@
38 38 * @param self::EDITOR_COUNTER_KEY $key
39 39 *
40 40 * @return int | null
41 41 */
42 - public function get_count( $key ): ?int {
42 + public function get_count( $key ) : ?int {
43 43 return $this->is_key_allowed( $key )
44 44 ? (int) $this->wordpress_adapter->get_option( $key, 0 )
45 45 : null;
46 46 }
@@ -46,11 +46,11 @@
46 46 }
47 47
48 48 /**
49 49 * @param self::EDITOR_COUNTER_KEY $key
50 - * @param int $count
50 + * @param int $count
51 51 */
52 - public function set_count( $key, $count = 0 ): void {
52 + public function set_count( $key, $count = 0 ) : void {
53 53 if ( ! $this->is_key_allowed( $key ) || ! is_int( $count ) ) {
54 54 return;
55 55 }
56 56
@@ -59,9 +59,9 @@
59 59
60 60 /**
61 61 * @param self::EDITOR_COUNTER_KEY $key
62 62 */
63 - public function increment( $key ): void {
63 + public function increment( $key ) : void {
64 64 if ( ! $this->is_key_allowed( $key ) ) {
65 65 return;
66 66 }
67 67
@@ -69,8 +69,8 @@
69 69
70 70 $this->set_count( $key, $count + 1 );
71 71 }
72 72
73 - public function is_key_allowed( $key ): bool {
73 + public function is_key_allowed( $key ) : bool {
74 74 return in_array( $key, [ self::EDITOR_COUNTER_KEY ] );
75 75 }
76 76 }