public function getShortcodes()
    {
        $shortcodes = array_map(function ($replacement) {
            return "[{$replacement}]";
        }, $this->replacements);

        return collect(array_combine($shortcodes, $this->replacements));
    }
public function getShortcodes()
    {
        $shortcodes = array_map(function ($replacement) {
            return "[{$replacement}]";
        }, $this->replacements);

        return collect(array_combine($shortcodes, $this->replacements));
    }
public function getShortcodes ( ) { $ shortcodes = array_map ( function ( $ replacement ) { return "[{$replacement}]" ; } , $ this -> replacements ) ; return collect ( array_combine ( $ shortcodes , $ this -> replacements ) ) ; }
Get the replacements shortcodes.

@return \Illuminate\Support\Collection
Get the replacements shortcodes .