@@ -106,7 +106,7 @@ class Elementor_EmojiOneArea_Control extends \Elementor\Base_Data_Control {
106106 * @access public
107107 * @return string Control type.
108108 */
109- public function get_type() {
109+ public function get_type(): string {
110110 return 'emojionearea';
111111 }
112112
@@ -119,7 +119,7 @@ class Elementor_EmojiOneArea_Control extends \Elementor\Base_Data_Control {
119119 * @since 1.0.0
120120 * @access public
121121 */
122- public function enqueue() {
122+ public function enqueue(): void {
123123 // Styles
124124 wp_register_style( 'emojionearea', 'https://cdnjs.cloudflare.com/ajax/libs/emojionearea/3.4.2/emojionearea.css', [], '3.4.2' );
125125 wp_enqueue_style( 'emojionearea' );
@@ -140,7 +140,7 @@ class Elementor_EmojiOneArea_Control extends \Elementor\Base_Data_Control {
140140 * @access protected
141141 * @return array Control default settings.
142142 */
143- protected function get_default_settings() {
143+ protected function get_default_settings(): array {
144144 return [
145145 'label_block' => true,
146146 'rows' => 3,
@@ -158,7 +158,7 @@ class Elementor_EmojiOneArea_Control extends \Elementor\Base_Data_Control {
158158 * @since 1.0.0
159159 * @access public
160160 */
161- public function content_template() {
161+ public function content_template(): void {
162162 $control_uid = $this->get_control_uid();
163163 ?>
164164 <div class =" elementor-control-field" >
@@ -245,7 +245,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
245245 * @access public
246246 * @return string Widget name.
247247 */
248- public function get_name() {
248+ public function get_name(): string {
249249 return 'test';
250250 }
251251
@@ -258,7 +258,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
258258 * @access public
259259 * @return string Widget title.
260260 */
261- public function get_title() {
261+ public function get_title(): string {
262262 return esc_html__( 'Test', 'elementor-emojionearea-control' );
263263 }
264264
@@ -271,7 +271,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
271271 * @access public
272272 * @return string Widget icon.
273273 */
274- public function get_icon() {
274+ public function get_icon(): string {
275275 return 'eicon-code';
276276 }
277277
@@ -284,7 +284,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
284284 * @access public
285285 * @return array Widget categories.
286286 */
287- public function get_categories() {
287+ public function get_categories(): array {
288288 return [ 'general' ];
289289 }
290290
@@ -297,7 +297,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
297297 * @access public
298298 * @return array Widget keywords.
299299 */
300- public function get_keywords() {
300+ public function get_keywords(): array {
301301 return [ 'test', 'emoji' ];
302302 }
303303
@@ -310,7 +310,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
310310 * @access public
311311 * @return string Widget help URL.
312312 */
313- public function get_custom_help_url() {
313+ public function get_custom_help_url(): string {
314314 return 'https://developers.elementor.com/docs/widgets/';
315315 }
316316
@@ -322,7 +322,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
322322 * @since 1.0.0
323323 * @access protected
324324 */
325- protected function register_controls() {
325+ protected function register_controls(): void {
326326
327327 $this->start_controls_section(
328328 'content_section',
@@ -353,7 +353,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
353353 * @since 1.0.0
354354 * @access protected
355355 */
356- protected function render() {
356+ protected function render(): void {
357357 $settings = $this->get_settings_for_display();
358358
359359 if ( empty( $settings['content'] ) ) {
0 commit comments