PluginProbe
Elementor Website Builder – more than just a page builder / 3.27.4
Elementor Website Builder – more than just a page builder v3.27.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/checklist/steps-manager.php +10 -10 4.1.23.27.4 View file →
@@ -40,9 +40,9 @@
40 40 * Gets formatted and ordered array of step ( step data, is_marked_completed and is_completed )
41 41 *
42 42 * @return array
43 43 */
44 - public function get_steps_for_frontend(): array {
44 + public function get_steps_for_frontend() : array {
45 45 $formatted_steps = [];
46 46
47 47 foreach ( self::$step_ids as $step_id ) {
48 48 $instance = $this->step_instances[ $step_id ];
@@ -60,9 +60,9 @@
60 60
61 61 return $formatted_steps;
62 62 }
63 63
64 - public function update_step( string $step_id, array $data ): void {
64 + public function update_step( string $step_id, array $data ) : void {
65 65 $step = $this->get_step_by_id( $step_id );
66 66
67 67 if ( ! $step ) {
68 68 return;
@@ -77,9 +77,9 @@
77 77 * @param string $step_id
78 78 *
79 79 * @return void
80 80 */
81 - public function mark_step_as_completed( string $step_id ): void {
81 + public function mark_step_as_completed( string $step_id ) : void {
82 82 $this->update_step( $step_id, [ Step_Base::MARKED_AS_COMPLETED_KEY => true ] );
83 83 }
84 84
85 85 /**
@@ -88,9 +88,9 @@
88 88 * @param string $step_id
89 89 *
90 90 * @return void
91 91 */
92 - public function unmark_step_as_completed( string $step_id ): void {
92 + public function unmark_step_as_completed( string $step_id ) : void {
93 93 $this->update_step( $step_id, [ Step_Base::MARKED_AS_COMPLETED_KEY => false ] );
94 94 }
95 95
96 96 /**
@@ -99,9 +99,9 @@
99 99 * @param $step_id
100 100 *
101 101 * @return void
102 102 */
103 - public function maybe_set_step_as_immutable_completed( string $step_id ): void {
103 + public function maybe_set_step_as_immutable_completed( string $step_id ) : void {
104 104 $step = $this->get_step_by_id( $step_id );
105 105
106 106 if ( ! $step ) {
107 107 return;
@@ -109,9 +109,9 @@
109 109
110 110 $step->maybe_immutably_mark_as_completed();
111 111 }
112 112
113 - public function get_step_by_id( string $step_id ): ?Step_Base {
113 + public function get_step_by_id( string $step_id ) : ?Step_Base {
114 114 return $this->step_instances[ $step_id ] ?? null;
115 115 }
116 116
117 117 /**
@@ -116,9 +116,9 @@
116 116
117 117 /**
118 118 * @return array
119 119 */
120 - public function get_step_config( $step_id ): array {
120 + public function get_step_config( $step_id ) : array {
121 121 $step_instance = $this->step_instances[ $step_id ];
122 122
123 123 return $step_instance
124 124 ? [
@@ -140,9 +140,9 @@
140 140 * Getting the step instances array based on source's order
141 141 *
142 142 * @return void
143 143 */
144 - private function register_steps(): void {
144 + private function register_steps() : void {
145 145 foreach ( self::$step_ids as $step_id ) {
146 146 $step_instance = $this->get_step_instance( $step_id );
147 147
148 148 if ( $step_instance && ! isset( $this->step_instances[ $step_id ] ) ) {
@@ -155,9 +155,9 @@
155 155 * Returns the steps config from source
156 156 *
157 157 * @return array
158 158 */
159 - public static function get_step_ids(): array {
159 + public static function get_step_ids() : array {
160 160 return self::$step_ids;
161 161 }
162 162
163 163 /**
@@ -166,9 +166,9 @@
166 166 * @param $step_data
167 167 *
168 168 * @return Step_Base|null
169 169 */
170 - private function get_step_instance( string $step_id ): ?Step_Base {
170 + private function get_step_instance( string $step_id ) : ?Step_Base {
171 171 $class_name = '\\Elementor\\Modules\\Checklist\\Steps\\' . $step_id;
172 172
173 173 if ( ! class_exists( $class_name ) ) {
174 174 return null;