Code Duplication    Length = 13-14 lines in 6 locations

src/Intraface/functions.php 6 locations

@@ 3-16 (lines=14) @@
1
<?php
2
// amountToOutput
3
if (!function_exists('amountToOutput')) {
4
    /**
5
     * This function is dynamically redefinable.
6
     * @see $GLOBALS['_global_function_callback_e']
7
     */
8
    function amountToOutput($args)
9
    {
10
        $args = func_get_args();
11
        return call_user_func_array($GLOBALS['_global_function_callback_amountToOutput'], $args);
12
    }
13
    if (!isset($GLOBALS['_global_function_callback_amountToOutput'])) {
14
        $GLOBALS['_global_function_callback_amountToOutput'] = null;
15
    }
16
}
17
18
$GLOBALS['_global_function_callback_amountToOutput'] = 'intraface_AmountToOutput';
19
@@ 30-43 (lines=14) @@
27
}
28
29
// amountToForm
30
if (!function_exists('amountToForm')) {
31
    /**
32
     * This function is dynamically redefinable.
33
     * @see $GLOBALS['_global_function_callback_e']
34
     */
35
    function amountToForm($args)
36
    {
37
        $args = func_get_args();
38
        return call_user_func_array($GLOBALS['_global_function_callback_amountToForm'], $args);
39
    }
40
    if (!isset($GLOBALS['_global_function_callback_amountToForm'])) {
41
        $GLOBALS['_global_function_callback_amountToForm'] = null;
42
    }
43
}
44
45
$GLOBALS['_global_function_callback_amountToForm'] = 'intraface_AmountToForm';
46
@@ 57-69 (lines=13) @@
54
}
55
56
// autoop()
57
if (!function_exists('autoop')) {
58
    /**
59
     * This function is dynamically redefinable.
60
     * @see $GLOBALS['_global_function_callback_email']
61
     */
62
    function autoop($args)
63
    {
64
        $args = func_get_args();
65
        return call_user_func_array($GLOBALS['_global_function_callback_autoop'], $args);
66
    }
67
    if (!isset($GLOBALS['_global_function_callback_autoop'])) {
68
        $GLOBALS['_global_function_callback_autoop'] = null;
69
    }
70
}
71
72
function intraface_autoop($text)
@@ 85-97 (lines=13) @@
82
$GLOBALS['_global_function_callback_autoop'] = 'intraface_autoop';
83
84
// autoop()
85
if (!function_exists('autohtml')) {
86
    /**
87
     * This function is dynamically redefinable.
88
     * @see $GLOBALS['_global_function_callback_email']
89
     */
90
    function autohtml($args)
91
    {
92
        $args = func_get_args();
93
        return call_user_func_array($GLOBALS['_global_function_callback_autohtml'], $args);
94
    }
95
    if (!isset($GLOBALS['_global_function_callback_autohtml'])) {
96
        $GLOBALS['_global_function_callback_autohtml'] = null;
97
    }
98
}
99
100
function intraface_autohtml($text)
@@ 114-127 (lines=14) @@
111
$GLOBALS['_global_function_callback_autohtml'] = 'intraface_autohtml';
112
113
// Dynamic global functions
114
if (!function_exists('safeToDb')) {
115
    /**
116
     * This function is dynamically redefinable.
117
     * @see $GLOBALS['_global_function_callback_e']
118
     */
119
    function safeToDb($args)
120
    {
121
        $args = func_get_args();
122
        return call_user_func_array($GLOBALS['_global_function_callback_safetodb'], $args);
123
    }
124
    if (!isset($GLOBALS['_global_function_callback_safetodb'])) {
125
        $GLOBALS['_global_function_callback_safetodb'] = null;
126
    }
127
}
128
$GLOBALS['_global_function_callback_safetodb'] = 'intraface_safetodb';
129
130
/**
@@ 153-166 (lines=14) @@
150
}
151
152
//Dynamic global functions
153
if (!function_exists('filesize_readable')) {
154
    /**
155
     * This function is dynamically redefinable.
156
     * @see $GLOBALS['_global_function_callback_e']
157
     */
158
    function filesize_readable($args)
159
    {
160
        $args = func_get_args();
161
        return call_user_func_array($GLOBALS['_global_function_callback_filesize_readable'], $args);
162
    }
163
    if (!isset($GLOBALS['_global_function_callback_filesize_readable'])) {
164
        $GLOBALS['_global_function_callback_filesize_readable'] = null;
165
    }
166
}
167
$GLOBALS['_global_function_callback_filesize_readable'] = 'intraface_filesize_readable';
168
169
/*