Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
199 lars 1
<?php
2
 
3
use Clockwork\Support\Vanilla\Clockwork;
4
 
5
if (! function_exists('clock')) {
6
	// Log a message to Clockwork, returns Clockwork instance when called with no arguments, first argument otherwise
7
	function clock(...$arguments)
8
	{
9
		if (empty($arguments)) {
10
			return Clockwork::instance();
11
		}
12
 
13
		foreach ($arguments as $argument) {
14
			Clockwork::debug($argument);
15
		}
16
 
17
		return reset($arguments);
18
	}
19
}