home/mip/mip/vendor/laravelcollective/html/src/helpers.php 0000644 00000003516 15152066307 0017763 0 ustar 00 <?php
if (! function_exists('link_to')) {
/**
* Generate a HTML link.
*
* @param string $url
* @param string $title
* @param array $attributes
* @param bool $secure
* @param bool $escape
*
* @return \Illuminate\Support\HtmlString
*/
function link_to($url, $title = null, $attributes = [], $secure = null, $escape = true)
{
return app('html')->link($url, $title, $attributes, $secure, $escape);
}
}
if (! function_exists('link_to_asset')) {
/**
* Generate a HTML link to an asset.
*
* @param string $url
* @param string $title
* @param array $attributes
* @param bool $secure
*
* @return \Illuminate\Support\HtmlString
*/
function link_to_asset($url, $title = null, $attributes = [], $secure = null)
{
return app('html')->linkAsset($url, $title, $attributes, $secure);
}
}
if (! function_exists('link_to_route')) {
/**
* Generate a HTML link to a named route.
*
* @param string $name
* @param string $title
* @param array $parameters
* @param array $attributes
*
* @return \Illuminate\Support\HtmlString
*/
function link_to_route($name, $title = null, $parameters = [], $attributes = [])
{
return app('html')->linkRoute($name, $title, $parameters, $attributes);
}
}
if (! function_exists('link_to_action')) {
/**
* Generate a HTML link to a controller action.
*
* @param string $action
* @param string $title
* @param array $parameters
* @param array $attributes
*
* @return \Illuminate\Support\HtmlString
*/
function link_to_action($action, $title = null, $parameters = [], $attributes = [])
{
return app('html')->linkAction($action, $title, $parameters, $attributes);
}
}
home/mip/mip/vendor/mockery/mockery/library/helpers.php 0000664 00000002120 15152066531 0017305 0 ustar 00 <?php
/**
* Mockery
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://github.com/padraic/mockery/blob/master/LICENSE
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to padraic@php.net so we can send you a copy immediately.
*
* @category Mockery
* @package Mockery
* @copyright Copyright (c) 2016 Dave Marshall
* @license http://github.com/padraic/mockery/blob/master/LICENSE New BSD License
*/
if (!function_exists("mock")) {
function mock()
{
return call_user_func_array(array('Mockery', 'mock'), func_get_args());
}
}
if (!function_exists("spy")) {
function spy()
{
return call_user_func_array(array('Mockery', 'spy'), func_get_args());
}
}
if (!function_exists("namedMock")) {
function namedMock()
{
return call_user_func_array(array('Mockery', 'namedMock'), func_get_args());
}
}
home/mip/mip/vendor/biscolab/laravel-recaptcha/src/helpers.php 0000755 00000006061 15152100364 0020444 0 ustar 00 <?php
/**
* Copyright (c) 2017 - present
* LaravelGoogleRecaptcha - helpers.php
* author: Roberto Belotti - roby.belotti@gmail.com
* web : robertobelotti.com, github.com/biscolab
* Initial version created on: 12/9/2018
* MIT license: https://github.com/biscolab/laravel-recaptcha/blob/master/LICENSE
*/
use Biscolab\ReCaptcha\Facades\ReCaptcha;
if (!function_exists('recaptcha')) {
/**
* @return Biscolab\ReCaptcha\ReCaptchaBuilder|\Biscolab\ReCaptcha\ReCaptchaBuilderV2|\Biscolab\ReCaptcha\ReCaptchaBuilderInvisible|\Biscolab\ReCaptcha\ReCaptchaBuilderV3
*/
function recaptcha(): \Biscolab\ReCaptcha\ReCaptchaBuilder
{
return app('recaptcha');
}
}
/**
* call ReCaptcha::htmlScriptTagJsApi()
* Write script HTML tag in you HTML code
* Insert before </head> tag
*
* @param $config ['form_id'] required if you are using invisible ReCaptcha
*/
if (!function_exists('htmlScriptTagJsApi')) {
/**
* @param array|null $config
*
* @return string
*/
function htmlScriptTagJsApi(?array $config = []): string
{
return ReCaptcha::htmlScriptTagJsApi($config);
}
}
/**
* call ReCaptcha::htmlFormButton()
* Write HTML <button> tag in your HTML code
* Insert before </form> tag
*
* Warning! Using only with ReCAPTCHA INVISIBLE
*
* @param $buttonInnerHTML What you want to write on the submit button
*/
if (!function_exists('htmlFormButton')) {
/**
* @param null|string $button_label
* @param array|null $properties
*
* @return string
*/
function htmlFormButton(?string $button_label = 'Submit', ?array $properties = []): string
{
return ReCaptcha::htmlFormButton($button_label, $properties);
}
}
/**
* call ReCaptcha::htmlFormSnippet()
* Write ReCAPTCHA HTML tag in your FORM
* Insert before </form> tag
*
* Warning! Using only with ReCAPTCHA v2
*/
if (!function_exists('htmlFormSnippet')) {
/**
* @param null|array $attributes
* @return string
*/
function htmlFormSnippet(?array $attributes = []): string
{
return ReCaptcha::htmlFormSnippet($attributes);
}
}
/**
* call ReCaptcha::getFormId()
* return the form ID
* Warning! Using only with ReCAPTCHA invisible
*/
if (!function_exists('getFormId')) {
/**
* @return string
*/
function getFormId(): string
{
return ReCaptcha::getFormId();
}
}
/**
* return ReCaptchaBuilder::DEFAULT_RECAPTCHA_RULE_NAME value ("recaptcha")
* Use V2 (checkbox and invisible)
*/
if (!function_exists('recaptchaRuleName')) {
/**
* @return string
*/
function recaptchaRuleName(): string
{
return \Biscolab\ReCaptcha\ReCaptchaBuilder::DEFAULT_RECAPTCHA_RULE_NAME;
}
}
/**
* return ReCaptchaBuilder::DEFAULT_RECAPTCHA_FIELD_NAME value "g-recaptcha-response"
* Use V2 (checkbox and invisible)
*/
if (!function_exists('recaptchaFieldName')) {
/**
* @return string
*/
function recaptchaFieldName(): string
{
return \Biscolab\ReCaptcha\ReCaptchaBuilder::DEFAULT_RECAPTCHA_FIELD_NAME;
}
}