@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | */ |
11 | 11 | // ------------------------------------------------------------------------ |
12 | 12 | |
13 | -if (!function_exists('kernel')) { |
|
13 | +if ( ! function_exists('kernel')) { |
|
14 | 14 | /** |
15 | 15 | * kernel |
16 | 16 | * |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | // ------------------------------------------------------------------------ |
34 | 34 | |
35 | 35 | |
36 | -if (!function_exists('services')) { |
|
36 | +if ( ! function_exists('services')) { |
|
37 | 37 | /** |
38 | 38 | * services |
39 | 39 | * |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | if (count($args)) { |
49 | 49 | if (kernel()->services->has($args[0])) { |
50 | - if(isset($args[1]) and is_array($args[1])) { |
|
50 | + if (isset($args[1]) and is_array($args[1])) { |
|
51 | 51 | return kernel()->services->get($args[0], $args[1]); |
52 | 52 | } |
53 | 53 | return kernel()->services->get($args[0]); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | // ------------------------------------------------------------------------ |
64 | 64 | |
65 | -if (!function_exists('profiler')) { |
|
65 | +if ( ! function_exists('profiler')) { |
|
66 | 66 | /** |
67 | 67 | * profiler |
68 | 68 | * |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | } |
77 | 77 | } |
78 | 78 | |
79 | -if (!function_exists('globals')) { |
|
79 | +if ( ! function_exists('globals')) { |
|
80 | 80 | /** |
81 | 81 | * globals |
82 | 82 | * |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | // ------------------------------------------------------------------------ |
112 | 112 | |
113 | -if (!function_exists('env')) { |
|
113 | +if ( ! function_exists('env')) { |
|
114 | 114 | /** |
115 | 115 | * env |
116 | 116 | * |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | // ------------------------------------------------------------------------ |
146 | 146 | |
147 | -if (!function_exists('language')) { |
|
147 | +if ( ! function_exists('language')) { |
|
148 | 148 | /** |
149 | 149 | * language |
150 | 150 | * |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | if (count($args)) { |
160 | 160 | if (services()->has('language')) { |
161 | - $language =& kernel()->services->get('language'); |
|
161 | + $language = & kernel()->services->get('language'); |
|
162 | 162 | |
163 | 163 | return call_user_func_array([&$language, 'getLine'], $args); |
164 | 164 | } |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | |
173 | 173 | // ------------------------------------------------------------------------ |
174 | 174 | |
175 | -if (!function_exists('logger')) { |
|
175 | +if ( ! function_exists('logger')) { |
|
176 | 176 | /** |
177 | 177 | * logger |
178 | 178 | * |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | |
187 | 187 | if (count($args)) { |
188 | 188 | if (services()->has('logger')) { |
189 | - $logger =& services('logger'); |
|
189 | + $logger = & services('logger'); |
|
190 | 190 | |
191 | 191 | return call_user_func_array([&$logger, 'log'], $args); |
192 | 192 | } |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | // ------------------------------------------------------------------------ |
202 | 202 | |
203 | -if (!function_exists('shutdown')) { |
|
203 | +if ( ! function_exists('shutdown')) { |
|
204 | 204 | /** |
205 | 205 | * shutdown |
206 | 206 | * |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | // ------------------------------------------------------------------------ |
218 | 218 | |
219 | -if (!function_exists('input')) { |
|
219 | +if ( ! function_exists('input')) { |
|
220 | 220 | /** |
221 | 221 | * input |
222 | 222 | * |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | |
233 | 233 | // ------------------------------------------------------------------------ |
234 | 234 | |
235 | -if (!function_exists('output')) { |
|
235 | +if ( ! function_exists('output')) { |
|
236 | 236 | /** |
237 | 237 | * output |
238 | 238 | * |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | |
249 | 249 | // ------------------------------------------------------------------------ |
250 | 250 | |
251 | -if (!function_exists('server_request')) { |
|
251 | +if ( ! function_exists('server_request')) { |
|
252 | 252 | /** |
253 | 253 | * server_request |
254 | 254 | * |
@@ -259,13 +259,13 @@ discard block |
||
259 | 259 | function server_request() |
260 | 260 | { |
261 | 261 | if (function_exists('o2system')) { |
262 | - if (!services()->has('serverRequest')) { |
|
262 | + if ( ! services()->has('serverRequest')) { |
|
263 | 263 | services()->load(new \O2System\Kernel\Http\Message\ServerRequest(), 'serverRequest'); |
264 | 264 | } |
265 | 265 | |
266 | 266 | return services('serverRequest'); |
267 | 267 | } else { |
268 | - if (!services()->has('serverRequest')) { |
|
268 | + if ( ! services()->has('serverRequest')) { |
|
269 | 269 | services()->load(new \O2System\Kernel\Http\Message\ServerRequest(), 'serverRequest'); |
270 | 270 | } |
271 | 271 |