path, array() ); if ( empty( $base_radius ) ) { return; } $declarations->add_declaration( "{$this->css_var}-top-left", $this->get_top_left( $base_radius ) ); $declarations->add_declaration( "{$this->css_var}-top-right", $this->get_top_right( $base_radius ) ); $declarations->add_declaration( "{$this->css_var}-bottom-right", $this->get_bottom_right( $base_radius ) ); $declarations->add_declaration( "{$this->css_var}-bottom-left", $this->get_bottom_left( $base_radius ) ); } public function get_top_left( $value ) { return is_array( $value ) ? $value['topLeft'] : $value; } public function get_top_right( $value ) { return is_array( $value ) ? $value['topRight'] : $value; } public function get_bottom_left( $value ) { return is_array( $value ) ? $value['bottomLeft'] : $value; } public function get_bottom_right( $value ) { return is_array( $value ) ? $value['bottomRight'] : $value; } }