function b() { return b::instance(); }
<?php $a = \b::instance($d, null, !$d instanceof \E);
public function test_instance() { $this->assertInstanceOf('\\bolt\\base', b::instance()); }
/** * paths */ public function path($name, $value = null) { if (is_array($name)) { array_walk($name, function ($val, $key) { $this->path($key, $val); }); return $this; } else { if ($value === null) { return array_key_exists($name, $this->_paths) ? $this->_paths[$name] : false; } } if (is_array($value)) { $this->_paths[$name] = array_map(function ($value) { return b::instance()->path($value); }, $value); } else { $this->_paths[$name] = b::instance()->path($value); } return $this; }