Completed
Push — master ( 72fe28...14dc45 )
by Vítězslav
34:29
created

bootstrap.php ➔ _()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 21 and the first side effect is on line 9.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
/**
3
 * FlexiPeeHP - nastavení testů.
4
 *
5
 * @author     Vítězslav Dvořák <[email protected]>
6
 * @copyright  2015 Spoje.Net
7
 */
8
if (file_exists('../vendor/autoload.php')) {
9
    include_once '../vendor/autoload.php';
10
} else {
11
    if (file_exists('vendor/autoload.php')) { //For Test Generator
12
        include_once 'vendor/autoload.php';
13
    }
14
}
15
16
require_once 'objTest.php';
17
18
/**
19
 * Write logs as:
20
 */
21
define('LOG_NAME', 'FlexiPeeHPtest');
22
23
$testServer = 'official';
24
switch ($testServer) {
25
    case 'official':
26
////
27
//// Config for official test server
28
////
29
30
        /*
31
         * URL Flexibee API
32
         */
33
        define('FLEXIBEE_URL', 'https://demo.flexibee.eu');
34
        /*
35
         * Uživatel FlexiBee API
36
         */
37
        define('FLEXIBEE_LOGIN', 'winstrom');
38
        /*
39
         * Heslo FlexiBee API
40
         */
41
        define('FLEXIBEE_PASSWORD', 'winstrom');
42
        /*
43
         * Společnost v FlexiBee
44
         */
45
        define('FLEXIBEE_COMPANY', 'demo');
46
47
48
        break;
49
    case 'spoje.net':
50
//
51
// Config for Spoje.Net
52
//
53
54
        /*
55
         * URL Flexibee API
56
         */
57
        define('FLEXIBEE_URL', 'https://flexibee-dev.spoje.net:5434');
58
        /*
59
         * Uživatel FlexiBee API
60
         */
61
        define('FLEXIBEE_LOGIN', 'test');
62
        /*
63
         * Heslo FlexiBee API
64
         */
65
        define('FLEXIBEE_PASSWORD', 'testing');
66
        /*
67
         * Společnost v FlexiBee
68
         */
69
        define('FLEXIBEE_COMPANY', 'test');
70
71
72
        break;
73
74
    default:
75
//
76
// Config for localhost
77
//
78
79
        /*
80
         * URL Flexibee API
81
         */
82
        define('FLEXIBEE_URL', 'https://localhost:5434');
83
        /*
84
         * Uživatel FlexiBee API
85
         */
86
        define('FLEXIBEE_LOGIN', 'admin');
87
        /*
88
         * Heslo FlexiBee API
89
         */
90
        define('FLEXIBEE_PASSWORD', 'admin123');
91
        /*
92
         * Společnost v FlexiBee
93
         */
94
        define('FLEXIBEE_COMPANY', 'spoje_net_s_r_o_');
95
96
        break;
97
}
98
99
100