Code Duplication    Length = 7-7 lines in 2 locations

app/Controller/LojaController.php 2 locations

@@ 363-369 (lines=7) @@
360
		$this->set('produtos', $this->loadProducts());
361
	}
362
363
   public function cart() {
364
      $this->set('categorias', $this->loadCategoriesProducts());
365
      $products = $this->loadProductsAndValuesCart();
366
367
      $this->set('products', $products['products_cart']);
368
      $this->set('total', $products['total']);
369
   }
370
371
   public function checkout() {
372
      $this->set('categorias', $this->loadCategoriesProducts());  
@@ 371-377 (lines=7) @@
368
      $this->set('total', $products['total']);
369
   }
370
371
   public function checkout() {
372
      $this->set('categorias', $this->loadCategoriesProducts());  
373
      $products = $this->loadProductsAndValuesCart();
374
375
      $this->set('products', $products['products_cart']);
376
      $this->set('total', $products['total']);
377
   }
378
379
   public function category() {
380
      $id   = $this->params['id'];