AlkantarClanX12

Your IP : 216.73.216.59


Current Path : /www/capitalgmcbuickregina_830/public/wp-content/plugins/acorn8/vendor/roots/support/
Upload File :
Current File : /www/capitalgmcbuickregina_830/public/wp-content/plugins/acorn8/vendor/roots/support/helpers.php

<?php

namespace Roots;

/**
 * Gets the value of an environment variable.
 *
 * @param  string $key
 * @param  mixed  $default
 * @return mixed
 *
 * @copyright Taylor Otwell
 * @license   https://github.com/laravel/framework/blob/v5.6.25/LICENSE.md MIT
 * @link      https://github.com/laravel/framework/blob/v5.6.25/src/Illuminate/Support/helpers.php#L597-L632 Original
 */
function env($key, $default = null)
{
    $value = getenv($key);
    if ($value === false) {
        return value($default);
    }

    switch (strtolower($value)) {
        case 'true':
        case '(true)':
            return true;

        case 'false':
        case '(false)':
            return false;

        case 'empty':
        case '(empty)':
            return '';

        case 'null':
        case '(null)':
            return;
    }

    if (($valueLength = strlen($value)) > 1 && $value[0] === '"' && $value[($valueLength - 1)] === '"') {
        return substr($value, 1, -1);
    }

    return $value;
}

/**
 * Return the default value of the given value.
 *
 * @param  mixed $value
 * @return mixed
 *
 * @copyright Taylor Otwell
 * @license   https://github.com/laravel/framework/blob/v5.6.25/LICENSE.md MIT
 * @link      https://github.com/laravel/framework/blob/v5.6.25/src/Illuminate/Support/helpers.php#L1143-L1152 Original
 */
function value($value)
{
    return $value instanceof Closure ? $value() : $value;
}

/**
 * Bind single callback to multiple filters
 *
 * @param  iterable $filters  List of filters
 * @param  callable $callback
 * @param  integer  $priority
 * @param  integer  $args
 * @return void
 */
function add_filters(iterable $filters, $callback, $priority = 10, $args = 2)
{
    $count = count($filters);
    array_map(
        '\add_filter',
        (array) $filters,
        array_fill(0, $count, $callback),
        array_fill(0, $count, $priority),
        array_fill(0, $count, $args)
    );
}

/**
 * Remove single callback from multiple filters
 *
 * @param  iterable $filters  List of filters
 * @param  callable $callback
 * @param  integer  $priority
 * @return void
 */
function remove_filters(iterable $filters, $callback, $priority = 10)
{
    $count = count($filters);
    array_map(
        '\remove_filter',
        (array) $filters,
        array_fill(0, $count, $callback),
        array_fill(0, $count, $priority)
    );
}

/**
 * Alias of add_filters
 *
 * @see add_filters
 * @param  iterable $actions  List of actions
 * @param  callable $callback
 * @param  integer  $priority
 * @param  integer  $args
 * @return void
 */
function add_actions(iterable $actions, $callback, $priority = 10, $args = 2)
{
    add_filters($actions, $callback, $priority, $args);
}

/**
 * Alias of remove_filters
 *
 * @see remove_filters
 * @param  iterable $actions  List of actions
 * @param  callable $callback
 * @param  integer  $priority
 * @return void
 */
function remove_actions(iterable $actions, $callback, $priority = 10)
{
    remove_filters($actions, $callback, $priority);
}

/**
 * Helper function for prettying up errors
 *
 * @param string $message
 * @param string $subtitle
 * @param string $title
 * @param string $footer
 */
function wp_die($message, $subtitle = '', $title = '', $footer = '')
{
    $title = $title ?: __('WordPress &rsaquo; Error', 'roots');
    $footer = $footer ?: '<a href="https://discourse.roots.io/">Roots Discourse</a>';
    $message = "<h1>{$title}<br><small>{$subtitle}</small></h1><p>{$message}</p><p>{$footer}</p>";
    \wp_die($message, $title);
}

Home - Capital GMC Buick Regina

No data

Welcome to Capital GMC BUICK – REGINA

Thank you for choosing Capital GMC Buick | Regina, your premier certified Buick and GMC dealership proudly serving drivers in Regina and the surrounding communities. Whether you’re searching for a brand-new Buick or GMC vehicle or a meticulously inspected pre-owned model, we have a diverse selection to match your needs and lifestyle.

Beyond our impressive inventory, we offer a seamless and stress-free financing experience through our well-connected finance centre, where our team of experts is dedicated to securing the best loan or lease options for you, quickly, transparently, and hassle-free.

But our commitment to you doesn’t stop at the sale. Our state-of-the-art service centre is staffed with skilled Buick and GMC technicians who use the latest equipment and genuine OEM parts to keep your vehicle running at its best. From routine maintenance to complex repairs, we’ve got you covered.

Experience top-tier customer service, quality vehicles, and expert care, all in one place. Visit Capital GMC Buick | Regina today or call us at 306-205-8072 with any questions. We’re here to help!

Ask a Question