Code Duplication    Length = 10-10 lines in 2 locations

app/Controller/LojaController.php 2 locations

@@ 447-456 (lines=10) @@
444
      $this->render('/' . $this->usuario['Usuario']['folder_view'] . '/index');
445
	}
446
447
   public function cart() {
448
      $this->set('usuario', $this->usuario);
449
      $this->set('categorias', $this->loadCategoriesProducts());
450
      $products = $this->loadProductsAndValuesCart();
451
452
      $this->set('products', $products['products_cart']);
453
      $this->set('total', $products['total']);
454
455
      $this->render('/' . $this->usuario['Usuario']['folder_view'] . '/cart');
456
   }
457
458
   public function checkout() {
459
      $this->set('usuario', $this->usuario);
@@ 458-467 (lines=10) @@
455
      $this->render('/' . $this->usuario['Usuario']['folder_view'] . '/cart');
456
   }
457
458
   public function checkout() {
459
      $this->set('usuario', $this->usuario);
460
      $this->set('categorias', $this->loadCategoriesProducts());  
461
      $products = $this->loadProductsAndValuesCart();
462
463
      $this->set('products', $products['products_cart']);
464
      $this->set('total', $products['total']);
465
466
      $this->render('/' . $this->usuario['Usuario']['folder_view'] . '/checkout');
467
   }
468
469
   public function category() {
470
      $this->set('usuario', $this->usuario);