Skip to content

Commit

Permalink
Update helpers1.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit authored Nov 4, 2023
1 parent 1ff64d9 commit 098f371
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions common/helpers1.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

use CSlant\TelegramGitNotifier\Helpers\ConfigHelper;

if (!function_exists('tgn_singularity')) {
/**
* The reverse of pluralizing, returns the singular form of a word in a string.
Expand Down Expand Up @@ -113,7 +111,7 @@ function tgn_convert_action_name(string $action): string
*/
function config(string $string): mixed
{
return (new ConfigHelper())->execConfig($string);
return (new CSlant\TelegramGitNotifier\Helpers\ConfigHelper())->execConfig($string);
}
}

Expand All @@ -128,7 +126,7 @@ function config(string $string): mixed
*/
function view(string $partialPath, array $data = []): null|string
{
$content = (new ConfigHelper())->getTemplateData($partialPath, $data);
$content = (new CSlant\TelegramGitNotifier\Helpers\ConfigHelper())->getTemplateData($partialPath, $data);
return $content ?: null;
}
}

0 comments on commit 098f371

Please sign in to comment.