@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | |
420 | 420 | private function getPathByProduct($product_id) |
421 | 421 | { |
422 | - $product_id = (int) $product_id; |
|
422 | + $product_id = (int)$product_id; |
|
423 | 423 | |
424 | 424 | if ($product_id < 1) { |
425 | 425 | return false; |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | LIMIT 1 |
445 | 445 | "); |
446 | 446 | |
447 | - $path[$product_id] = $this->getPathByCategory($query->num_rows ? (int) $query->row['category_id'] : 0); |
|
447 | + $path[$product_id] = $this->getPathByCategory($query->num_rows ? (int)$query->row['category_id'] : 0); |
|
448 | 448 | |
449 | 449 | $this->cache->set( |
450 | 450 | 'product.seopath', |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | |
458 | 458 | private function getPathByCategory($category_id) |
459 | 459 | { |
460 | - $category_id = (int) $category_id; |
|
460 | + $category_id = (int)$category_id; |
|
461 | 461 | |
462 | 462 | if ($category_id < 1) { |
463 | 463 | return false; |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | //blog |
507 | 507 | private function getPathByBlogCategory($blog_category_id) |
508 | 508 | { |
509 | - $blog_category_id = (int) $blog_category_id; |
|
509 | + $blog_category_id = (int)$blog_category_id; |
|
510 | 510 | |
511 | 511 | if ($blog_category_id < 1) { |
512 | 512 | return false; |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | |
556 | 556 | private function getPathByArticle($article_id) |
557 | 557 | { |
558 | - $article_id = (int) $article_id; |
|
558 | + $article_id = (int)$article_id; |
|
559 | 559 | |
560 | 560 | if ($article_id < 1) { |
561 | 561 | return false; |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | if (!isset($path[$article_id])) { |
576 | 576 | $query = $this->db->query("SELECT blog_category_id FROM article_to_blog_category WHERE article_id = '" . $article_id . "' ORDER BY main_blog_category DESC LIMIT 1"); |
577 | 577 | |
578 | - $path[$article_id] = $this->getPathByBlogCategory($query->num_rows ? (int) $query->row['blog_category_id'] : 0); |
|
578 | + $path[$article_id] = $this->getPathByBlogCategory($query->num_rows ? (int)$query->row['blog_category_id'] : 0); |
|
579 | 579 | |
580 | 580 | // $this->cache->set( |
581 | 581 | // 'article.seopath', |