@@ 337-340 (lines=4) @@ | ||
334 | */ |
|
335 | public static function scheme($agentName = null, $scheme = null) |
|
336 | { |
|
337 | if (($agentName === null || is_string($agentName)) && $scheme === null) { |
|
338 | return $agentName === null ? self::$scheme : |
|
339 | (isset(self::$scheme[$agentName]) ? self::$scheme[$agentName] : null); |
|
340 | } |
|
341 | if (is_array($agentName)) { |
|
342 | foreach ($agentName as $name => $value) { |
|
343 | self::scheme($name, $value); |
|
@@ 366-369 (lines=4) @@ | ||
363 | */ |
|
364 | public static function config($agentName = null, $config = null) |
|
365 | { |
|
366 | if (($agentName === null || is_string($agentName)) && $config === null) { |
|
367 | return $agentName === null ? self::$agentsConfig : |
|
368 | (isset(self::$agentsConfig[$agentName]) ? self::$agentsConfig[$agentName] : []); |
|
369 | } |
|
370 | if (is_array($agentName)) { |
|
371 | foreach ($agentName as $name => $value) { |
|
372 | self::config($name, $value); |