Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 621
Zeile 87... Zeile 87...
87
     * @param  array  $segments
87
     * @param  array  $segments
88
     * @return array
88
     * @return array
89
     */
89
     */
90
    private function stripConditions($segments)
90
    private function stripConditions($segments)
91
    {
91
    {
92
        return collect($segments)->map(function ($part) {
92
        return collect($segments)
93
            return preg_replace('/^[\{\[]([^\[\]\{\}]*)[\}\]]/', '', $part);
93
            ->map(fn ($part) => preg_replace('/^[\{\[]([^\[\]\{\}]*)[\}\]]/', '', $part))
94
        })->all();
94
            ->all();
95
    }
95
    }
Zeile 96... Zeile 96...
96
 
96
 
97
    /**
97
    /**
98
     * Get the index to use for pluralization.
98
     * Get the index to use for pluralization.