minor fixes
This commit is contained in:
@@ -4,11 +4,11 @@ namespace App\Repositories\Shop;
|
||||
|
||||
use App\Models\Shop\Article;
|
||||
use App\Models\Shop\Merchandise;
|
||||
use App\Traits\Model\Basic;
|
||||
use App\Repositories\Botanic\Species;
|
||||
use App\Repositories\Botanic\Varieties;
|
||||
use App\Repositories\Core\Comments;
|
||||
use App\Repositories\Core\Tag;
|
||||
use App\Traits\Model\Basic;
|
||||
use App\Traits\Repository\Imageable;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
@@ -245,7 +245,7 @@ class Articles
|
||||
public static function getArticleNaturesOptionsWithOffers($options = false)
|
||||
{
|
||||
$ids = self::getArticleNaturesIdsWithOffers($options);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static function getArticleNaturesWithOffers($options = false)
|
||||
@@ -342,7 +342,7 @@ class Articles
|
||||
switch ($product_type) {
|
||||
case 'App\Models\Botanic\Variety':
|
||||
$product = Varieties::get($product_id);
|
||||
if (!$product) {
|
||||
if (! $product) {
|
||||
break;
|
||||
}
|
||||
$data[] = [
|
||||
@@ -358,7 +358,7 @@ class Articles
|
||||
break;
|
||||
case 'App\Models\Botanic\Specie':
|
||||
$product = Species::get($product_id);
|
||||
if (!$product) {
|
||||
if (! $product) {
|
||||
break;
|
||||
}
|
||||
$data[] = [
|
||||
@@ -369,7 +369,7 @@ class Articles
|
||||
break;
|
||||
case 'App\Models\Shop\Merchandise':
|
||||
$product = Merchandises::get($product_id);
|
||||
if (!$product) {
|
||||
if (! $product) {
|
||||
break;
|
||||
}
|
||||
$data[] = [
|
||||
|
||||
Reference in New Issue
Block a user