mirror of
https://e.coding.net/circlecloud/MinecraftAccount.git
synced 2025-11-25 21:36:08 +00:00
16
ThinkPHP/Library/Vendor/Boris/DumpInspector.php
vendored
Normal file
16
ThinkPHP/Library/Vendor/Boris/DumpInspector.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/* vim: set shiftwidth=2 expandtab softtabstop=2: */
|
||||
|
||||
namespace Boris;
|
||||
|
||||
/**
|
||||
* Passes values through var_dump() to inspect them.
|
||||
*/
|
||||
class DumpInspector implements Inspector {
|
||||
public function inspect($variable) {
|
||||
ob_start();
|
||||
var_dump($variable);
|
||||
return sprintf(" → %s", trim(ob_get_clean()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user