Купчинский Михаил

Купчинский Михаил

Был в сети Вчера в 17:22
Заказы не принимаю
Правильно ли я понимаю, что должно быть написано, что-то типа этого?

// margin && discount
        $status['margin'] = $this->getCartMargin();
        $status['discount'] = $this->getCartDiscount({
		$cart = $this->ms2->cart->status();
		$count = $with_cart
			? $cart['total_count']
			: 0;
			$total_cost = $cart['total_cost'];

		        if($count > 2 ) {

            			$total_cost =  $cart['total_cost'] * 0.85;
        		}
                        else {
			return $total_cost;
                        }
);
        $status['total_cost'] = $this->calcTotalCostEx($status['total_cost'], $status['margin'], $status['discount']);

        return $status;
Увы я не силен в программировании. И такая простая вещь иногда ставит в тупик)

PS Попробовал — такая конструкция дает ошибку