Skip to content

Commit

Permalink
update file
Browse files Browse the repository at this point in the history
  • Loading branch information
juancristobalgd1 authored May 23, 2024
1 parent 205fe25 commit d3818df
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ function endSection(): void
function partials(string $partial_name, array $data = [])
{
$partialsPath = config('paths.partialsPath'); // Make sure we have our paths set up!

$partial_file = $partialsPath . DIRECTORY_SEPARATOR . $partial_name . '.php';
$partials = app()->view->file($partial_file, $data);

return $partials;
}
}
Expand Down Expand Up @@ -201,21 +201,6 @@ function show(mixed $data = null, bool $return = false): string
}
}

if (!function_exists('cVar')) {

/**
* Copies the value of an original variable, removes the original variable,
* and returns the copied value.
*/
function cVar(mixed $var): mixed
{
$result = $var;

unset($var);
return $result;
}
}

if (!function_exists('tap')) {
/**
* Do some operation after value get.
Expand Down

0 comments on commit d3818df

Please sign in to comment.