Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Clockwork/Support/Laravel/helpers.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php

if (! function_exists('clock')) {
// Log a message to Clockwork, returns Clockwork instance when called with no arguments, first argument otherwise
/**
* Log a message to Clockwork, returns Clockwork instance when called with no arguments, first argument otherwise
* @param mixed ...$arguments
* @return ($arguments is empty ? \Clockwork\Clockwork : mixed)
*/
function clock(...$arguments)
{
if (empty($arguments)) {
Expand Down
6 changes: 5 additions & 1 deletion Clockwork/Support/Vanilla/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
use Clockwork\Support\Vanilla\Clockwork;

if (! function_exists('clock')) {
// Log a message to Clockwork, returns Clockwork instance when called with no arguments, first argument otherwise
/**
* Log a message to Clockwork, returns Clockwork instance when called with no arguments, first argument otherwise
* @param mixed ...$arguments
* @return ($arguments is empty ? \Clockwork\Clockwork : mixed)
*/
function clock(...$arguments)
{
if (empty($arguments)) {
Expand Down