Either:

    $paths = array_map(function ($path) {
        return $path . '/templates/';
    }, $paths);

Or:

    $new_paths = array();
    foreach ($paths as $path)
    {
        $new_paths[] = $path . '/templates/';
    }

More verbose, but easier to read imo.