Skip to content

Commit 60c4e26

Browse files
authored
Merge pull request #4 from firtadokei/dev
Update codeigniter vite file
2 parents 96df30c + 07b1bc7 commit 60c4e26

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/CodeigniterVite.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CodeigniterVite
1212

1313
public function __construct()
1414
{
15-
static::$manifest = is_file(FCPATH . 'manifest.json') ? FCPATH . 'manifest.json' : null;
15+
self::$manifest = is_file(FCPATH . 'manifest.json') ? FCPATH . 'manifest.json' : null;
1616
}
1717

1818
/**
@@ -30,14 +30,14 @@ public static function tags()
3030
# React HMR fix.
3131
if (!empty($result))
3232
{
33-
$result = static::getReactTag() . "$result";
33+
$result = self::getReactTag() . "$result";
3434
}
3535

3636
# If vite isn't running, then return the compiled resources.
37-
if (empty($result) && static::$manifest)
37+
if (empty($result) && self::$manifest)
3838
{
3939
# Get the manifest content.
40-
$manifest = file_get_contents(static::$manifest);
40+
$manifest = file_get_contents(self::$manifest);
4141
# You look much pretty as an php object =).
4242
$manifest = json_decode($manifest);
4343

@@ -93,7 +93,7 @@ public static function check(): bool
9393
{
9494
$result = true;
9595
}
96-
elseif (!empty(static::$manifest))
96+
elseif (!empty(self::$manifest))
9797
{
9898
$result = true;
9999
}

0 commit comments

Comments
 (0)