protected function validateRenderTags($allPosition = true): void
    {
        if ($allPosition && !empty($this->contents)) {
            $keys = array_keys($this->contents);

            throw new MissingTagPositionException($this->contents[$keys[0]][0]);
        }
    }
protected function validateRenderTags($allPosition = true): void
    {
        if ($allPosition && !empty($this->contents)) {
            $keys = array_keys($this->contents);

            throw new MissingTagPositionException($this->contents[$keys[0]][0]);
        }
    }
protected function validateRenderTags ( $ allPosition = true ) : void { if ( $ allPosition && ! empty ( $ this -> contents ) ) { $ keys = array_keys ( $ this -> contents ) ; throw new MissingTagPositionException ( $ this -> contents [ $ keys [ 0 ] ] [ 0 ] ) ; } }
Validate the renderTags method.

@param bool $allPosition Check if all asset position must be rendered

@throws MissingTagPositionException When the tag positions are not injected in the template
Validate the renderTags method .