Completed
Push — master ( ed2248...76a385 )
by joanhey
05:39
created

default/app/tests/bootstrap.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * KumbiaPHP web & app Framework
4
 *
5
 * LICENSE
6
 *
7
 * This source file is subject to the new BSD license that is bundled
8
 * with this package in the file LICENSE.txt.
9
 * It is also available through the world-wide-web at this URL:
10
 * http://wiki.kumbiaphp.com/Licencia
11
 * If you did not receive a copy of the license and are unable to
12
 * obtain it through the world-wide-web, please send an email
13
 * to [email protected] so we can send you a copy immediately.
14
 *
15
 * @category   Kumbia
16
 * @package    Session
17
 * @copyright  Copyright (c) 2005 - 2018 Kumbia Team (http://www.kumbiaphp.com)
18
 * @license    http://wiki.kumbiaphp.com/Licencia     New BSD License
19
 */
20
21
if (session_status() !== PHP_SESSION_ACTIVE) {
22
    session_start();
23
}
24
//ob_start();
25
// Versión de KumbiaPHP
26
function kumbia_version() {
0 ignored issues
show
The function kumbia_version() has been defined more than once; this definition is ignored, only the first definition in core/kumbia/bootstrap.php (L32-34) is considered.

This check looks for functions that have already been defined in other files.

Some Codebases, like WordPress, make a practice of defining functions multiple times. This may lead to problems with the detection of function parameters and types. If you really need to do this, you can mark the duplicate definition with the @ignore annotation.

/**
 * @ignore
 */
function getUser() {

}

function getUser($id, $realm) {

}

See also the PhpDoc documentation for @ignore.

Loading history...
27
    return 'RC 1.0';
28
}
29
require_once 'KumbiaTestTrait.php';
30
31
//default in any server
32
http_response_code(200);
33
34
defined('PRODUCTION') || define('PRODUCTION', false);
35
defined('APP_CHARSET') || define('APP_CHARSET', 'utf-8');
36
37
defined('CORE_PATH') || define('CORE_PATH', dirname(dirname(dirname(__DIR__))) . '/core/');
38
defined('APP_PATH') || define('APP_PATH', dirname(__DIR__) . '/');
39
defined('PUBLIC_PATH') || define('PUBLIC_PATH', 'http://127.0.0.1/');
40
41
require_once CORE_PATH.'kumbia/autoload.php';
42
require_once APP_PATH.'../../vendor/autoload.php';
43
44
require CORE_PATH . 'kumbia/config.php';
45
require CORE_PATH . 'kumbia/router.php';
46
//spl_autoload_register('kumbia_autoload_helper', true, true);
47
48
//function handle_exception($e) {
49
//    KumbiaException::handleException($e);
50
//}
51
// Inicializar el ExceptionHandler
52
//set_exception_handler('handle_exception');