Skip to content

Commit

Permalink
Remove dump functions from this package (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych committed Feb 7, 2021
1 parent 2a2414f commit 6b73887
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/functions.php
Expand Up @@ -3,7 +3,6 @@
declare(strict_types=1);

use Yiisoft\Files\FileHelper;
use Yiisoft\VarDumper\VarDumper;

function shouldRebuildConfigs(): bool
{
Expand All @@ -18,22 +17,3 @@ function shouldRebuildConfigs(): bool
$buildTime = FileHelper::lastModifiedTime($buildDirectory);
return $buildTime < $sourceTime;
}

if (!function_exists('d')) {
function d(...$variables)
{
foreach ($variables as $variable) {
VarDumper::dump($variable, 10, PHP_SAPI !== 'cli');
}
}
}

if (!function_exists('dd')) {
function dd(...$variables)
{
foreach ($variables as $variable) {
VarDumper::dump($variable, 10, PHP_SAPI !== 'cli');
}
die();
}
}

0 comments on commit 6b73887

Please sign in to comment.