@@ -75,13 +75,13 @@ public static function register($mode = 0)
75
75
$ trace = debug_backtrace (true );
76
76
$ group = 'other ' ;
77
77
78
- $ i = count ($ trace );
78
+ $ i = \ count ($ trace );
79
79
while (1 < $ i && (!isset ($ trace [--$ i ]['class ' ]) || ('ReflectionMethod ' === $ trace [$ i ]['class ' ] || 0 === strpos ($ trace [$ i ]['class ' ], 'PHPUnit_ ' )))) {
80
80
// No-op
81
81
}
82
82
83
83
if (isset ($ trace [$ i ]['object ' ]) || isset ($ trace [$ i ]['class ' ])) {
84
- $ class = isset ($ trace [$ i ]['object ' ]) ? get_class ($ trace [$ i ]['object ' ]) : $ trace [$ i ]['class ' ];
84
+ $ class = isset ($ trace [$ i ]['object ' ]) ? \ get_class ($ trace [$ i ]['object ' ]) : $ trace [$ i ]['class ' ];
85
85
$ method = $ trace [$ i ]['function ' ];
86
86
87
87
if (0 !== error_reporting ()) {
@@ -90,7 +90,7 @@ public static function register($mode = 0)
90
90
|| 0 === strpos ($ method , 'provideLegacy ' )
91
91
|| 0 === strpos ($ method , 'getLegacy ' )
92
92
|| strpos ($ class , '\Legacy ' )
93
- || in_array ('legacy ' , \PHPUnit_Util_Test::getGroups ($ class , $ method ), true )
93
+ || \ in_array ('legacy ' , \PHPUnit_Util_Test::getGroups ($ class , $ method ), true )
94
94
) {
95
95
$ group = 'legacy ' ;
96
96
} else {
@@ -101,7 +101,7 @@ public static function register($mode = 0)
101
101
$ e = new \Exception ($ msg );
102
102
$ r = new \ReflectionProperty ($ e , 'trace ' );
103
103
$ r ->setAccessible (true );
104
- $ r ->setValue ($ e , array_slice ($ trace , 1 , $ i ));
104
+ $ r ->setValue ($ e , \ array_slice ($ trace , 1 , $ i ));
105
105
106
106
echo "\n" .ucfirst ($ group ).' deprecation triggered by ' .$ class .':: ' .$ method .': ' ;
107
107
echo "\n" .$ msg ;
@@ -193,12 +193,12 @@ public static function register($mode = 0)
193
193
194
194
// reset deprecations array
195
195
foreach ($ deprecations as $ group => $ arrayOrInt ) {
196
- $ deprecations [$ group ] = is_int ($ arrayOrInt ) ? 0 : array ();
196
+ $ deprecations [$ group ] = \ is_int ($ arrayOrInt ) ? 0 : array ();
197
197
}
198
198
199
199
register_shutdown_function (function () use (&$ deprecations , $ isFailing , $ displayDeprecations , $ mode ) {
200
200
foreach ($ deprecations as $ group => $ arrayOrInt ) {
201
- if (0 < (is_int ($ arrayOrInt ) ? $ arrayOrInt : count ($ arrayOrInt ))) {
201
+ if (0 < (\ is_int ($ arrayOrInt ) ? $ arrayOrInt : \ count ($ arrayOrInt ))) {
202
202
echo "Shutdown-time deprecations: \n" ;
203
203
break ;
204
204
}
@@ -222,7 +222,7 @@ public static function register($mode = 0)
222
222
*/
223
223
private static function hasColorSupport ()
224
224
{
225
- if (!defined ('STDOUT ' )) {
225
+ if (!\ defined ('STDOUT ' )) {
226
226
return false ;
227
227
}
228
228
@@ -231,18 +231,18 @@ private static function hasColorSupport()
231
231
}
232
232
233
233
if (DIRECTORY_SEPARATOR === '\\' ) {
234
- return (function_exists ('sapi_windows_vt100_support ' )
234
+ return (\ function_exists ('sapi_windows_vt100_support ' )
235
235
&& sapi_windows_vt100_support (STDOUT ))
236
236
|| false !== getenv ('ANSICON ' )
237
237
|| 'ON ' === getenv ('ConEmuANSI ' )
238
238
|| 'xterm ' === getenv ('TERM ' );
239
239
}
240
240
241
- if (function_exists ('stream_isatty ' )) {
241
+ if (\ function_exists ('stream_isatty ' )) {
242
242
return stream_isatty (STDOUT );
243
243
}
244
244
245
- if (function_exists ('posix_isatty ' )) {
245
+ if (\ function_exists ('posix_isatty ' )) {
246
246
return posix_isatty (STDOUT );
247
247
}
248
248
0 commit comments