Skip to content

Commit

Permalink
Improve mageworx code structure, DEV-362
Browse files Browse the repository at this point in the history
  • Loading branch information
RanaMuhammadIrshad committed Feb 2, 2024
1 parent 9cfdc16 commit 134ca75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/StoreUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Magento\Store\Model\Store;
use MageWorx\SeoBase\Helper\StoreUrl as MageworxStoreUrl;

if (class_exists('MageWorx\SeoBase\Helper\StoreUrl\MageworxStoreUrl')) {
if (class_exists('MageWorx\SeoBase\Helper\StoreUrl')) {

Check warning on line 11 in Helper/StoreUrl.php

View workflow job for this annotation

GitHub Actions / M2 Coding Standard

Use ::class notation instead.

Check warning on line 11 in Helper/StoreUrl.php

View workflow job for this annotation

GitHub Actions / M2 Coding Standard

Use ::class notation instead.

class StoreUrl extends MageworxStoreUrl
{
Expand Down
3 changes: 3 additions & 0 deletions Test/Integration/CheckDefaultStoreCodeHiddenInUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use Magento\TestFramework\Helper\Bootstrap;
use Magento\TestFramework\TestCase\AbstractController;

if (class_exists('Magento\TestFramework\TestCase\AbstractController')) {

class CheckDefaultStoreCodeHiddenInUrlTest extends AbstractController

Check warning on line 16 in Test/Integration/CheckDefaultStoreCodeHiddenInUrlTest.php

View workflow job for this annotation

GitHub Actions / M2 Coding Standard

Line indented incorrectly; expected 4 spaces, found 0

Check warning on line 16 in Test/Integration/CheckDefaultStoreCodeHiddenInUrlTest.php

View workflow job for this annotation

GitHub Actions / M2 Coding Standard

Line indented incorrectly; expected 4 spaces, found 0
{

Check warning on line 17 in Test/Integration/CheckDefaultStoreCodeHiddenInUrlTest.php

View workflow job for this annotation

GitHub Actions / M2 Coding Standard

Line indented incorrectly; expected at least 4 spaces, found 0

Check warning on line 17 in Test/Integration/CheckDefaultStoreCodeHiddenInUrlTest.php

View workflow job for this annotation

GitHub Actions / M2 Coding Standard

Line indented incorrectly; expected at least 4 spaces, found 0
/**
Expand Down Expand Up @@ -65,3 +67,4 @@ public function testStoreCodeIsShownInDefaultStoreUrl(): void
$this->assertStringNotContainsString('default', $store->getBaseUrl());
}
}
}

0 comments on commit 134ca75

Please sign in to comment.