Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 46d1e4c

Browse files
authored
Merge pull request #20 from grayloon/analysis-GDxl2O
Apply fixes from StyleCI
2 parents 429a012 + 36c7580 commit 46d1e4c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Models/MagentoProduct.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public function productImage($key)
8787
{
8888
$attribute = $this->customAttributes->where('attribute_type', 'image')->first();
8989

90-
if ($attribute && Storage::exists('public/product/'. $attribute->value)) {
91-
return 'product/'. $attribute->value;
90+
if ($attribute && Storage::exists('public/product/'.$attribute->value)) {
91+
return 'product/'.$attribute->value;
9292
}
9393

9494
return null;

tests/Models/MagentoProductModelTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ public function test_custom_attribute_value_helper_returns_value_of_custom_attri
114114
$this->assertEquals('bar', $product->customAttributeValue('foo'));
115115
}
116116

117-
118117
public function test_custom_attribute_value_helper_returns_null_of_invalid_custom_attribute()
119118
{
120119
$product = factory(MagentoProduct::class)->create();

0 commit comments

Comments
 (0)