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 688
Zeile 66... Zeile 66...
66
     *
66
     *
67
     * This function takes an array by reference and will modify it
67
     * This function takes an array by reference and will modify it
68
     *
68
     *
69
     * @param \ResourceBundle $rb       The ResourceBundle that will be flattened
69
     * @param \ResourceBundle $rb       The ResourceBundle that will be flattened
70
     * @param array           $messages Used internally for recursive calls
70
     * @param array           $messages Used internally for recursive calls
71
     * @param string          $path     Current path being parsed, used internally for recursive calls
71
     * @param string|null     $path     Current path being parsed, used internally for recursive calls
72
     */
72
     */
73
    protected function flatten(\ResourceBundle $rb, array &$messages = [], string $path = null): array
73
    protected function flatten(\ResourceBundle $rb, array &$messages = [], string $path = null): array
74
    {
74
    {
75
        foreach ($rb as $key => $value) {
75
        foreach ($rb as $key => $value) {
76
            $nodePath = $path ? $path.'.'.$key : $key;
76
            $nodePath = $path ? $path.'.'.$key : $key;