Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arodu committed Mar 3, 2024
1 parent c5f8da9 commit 46babd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/View/Helper/CakeLteHelper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

declare(strict_types=1);

namespace CakeLte\View\Helper;
Expand All @@ -10,6 +9,7 @@
use Cake\View\Helper;
use CakeLte\Style\Header;
use CakeLte\Style\Sidebar;
use Composer\Json\JsonFile;
use Exception;

/**
Expand Down Expand Up @@ -117,7 +117,7 @@ public function getMenuClass(): string
public function version(): string
{
return Cache::remember('cakelte_version', function () {
$lockFile = new \Composer\Json\JsonFile(ROOT . DIRECTORY_SEPARATOR . 'composer.lock');
$lockFile = new JsonFile(ROOT . DIRECTORY_SEPARATOR . 'composer.lock');

Check failure on line 120 in src/View/Helper/CakeLteHelper.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Constant ROOT not found.

Check failure on line 120 in src/View/Helper/CakeLteHelper.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Instantiated class Composer\Json\JsonFile not found.

Check failure on line 120 in src/View/Helper/CakeLteHelper.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Constant ROOT not found.

Check failure on line 120 in src/View/Helper/CakeLteHelper.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Instantiated class Composer\Json\JsonFile not found.
if ($lockFile->exists()) {

Check failure on line 121 in src/View/Helper/CakeLteHelper.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Call to method exists() on an unknown class Composer\Json\JsonFile.

Check failure on line 121 in src/View/Helper/CakeLteHelper.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Call to method exists() on an unknown class Composer\Json\JsonFile.
$lockContent = $lockFile->read();

Check failure on line 122 in src/View/Helper/CakeLteHelper.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Call to method read() on an unknown class Composer\Json\JsonFile.

Check failure on line 122 in src/View/Helper/CakeLteHelper.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Call to method read() on an unknown class Composer\Json\JsonFile.
foreach ($lockContent['packages'] as $package) {
Expand Down

0 comments on commit 46babd3

Please sign in to comment.