mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Codestyle
ignore tests added to styleci.yml
This commit is contained in:
@@ -685,6 +685,7 @@ class Cart
|
||||
if ($this->session->has($this->instance)) {
|
||||
return $this->session->get($this->instance);
|
||||
}
|
||||
|
||||
return new Collection();
|
||||
}
|
||||
|
||||
@@ -728,6 +729,7 @@ class Cart
|
||||
if (!is_array($item)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return is_array(head($item)) || head($item) instanceof Buyable;
|
||||
}
|
||||
|
||||
|
||||
@@ -374,8 +374,9 @@ class CartItem implements Arrayable, Jsonable
|
||||
|
||||
case 'model':
|
||||
if (isset($this->associatedModel)) {
|
||||
return with(new $this->associatedModel)->find($this->id);
|
||||
return with(new $this->associatedModel())->find($this->id);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
default:
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
preset: laravel
|
||||
|
||||
finder:
|
||||
exclude:
|
||||
- "tests"
|
||||
Reference in New Issue
Block a user