remove unused variable

This commit is contained in:
Manuel Raynaud
2014-06-24 10:38:43 +02:00
parent 77a4c45aa4
commit 84c2432507
7 changed files with 5 additions and 16 deletions

View File

@@ -1165,7 +1165,7 @@
</route>
<route id="export.customer.newsletter" path="/admin/export/customer/newsletter">
<default key="_controller">Thelia\Controller\Admin\CustomerExportController::NewsletterExportAction</default>
<default key="_controller">Thelia\Controller\Admin\CustomerExportController::newsletterExportAction</default>
</route>
<!-- The default route, to display a template -->

View File

@@ -25,7 +25,7 @@ use Thelia\Model\NewsletterQuery;
class CustomerExportController extends BaseAdminController
{
public function NewsletterExportAction()
public function newsletterExportAction()
{
if (null !== $response = $this->checkAuth([AdminResources::EXPORT_CUSTOMER_NEWSLETTER], [], [AccessManager::VIEW])) {
return $response;

View File

@@ -190,9 +190,6 @@ class Category extends BaseI18nLoop implements PropelSearchLoopInterface, Search
}
}
/* @todo */
$notEmpty = $this->getNot_empty();
return $search;
}

View File

@@ -152,9 +152,6 @@ class Coupon extends BaseI18nLoop implements PropelSearchLoopInterface
/** @var ConditionFactory $conditionFactory */
$conditionFactory = $this->container->get('thelia.condition.factory');
/** @var Request $request */
$request = $this->container->get('request');
/** @var MCoupon $coupon */
foreach ($loopResult->getResultDataCollection() as $coupon) {

View File

@@ -157,9 +157,6 @@ class Folder extends BaseI18nLoop implements PropelSearchLoopInterface, SearchLo
}
}
/* @todo */
$notEmpty = $this->getNot_empty();
return $search;
}

View File

@@ -234,9 +234,6 @@ class FreeProduct extends AbstractRemoveOnProducts
}
if ($freeProductCartItem instanceof CartItem) {
$taxCountry = $this->facade->getDeliveryCountry();
// The discount is the product price.
$discount = $freeProductCartItem->getPromo() ?
$freeProductCartItem->getPromoPrice() : $freeProductCartItem->getPrice();

View File

@@ -95,10 +95,11 @@ class FileManager
if (!$model->save()) {
throw new ImageException(
sprintf(
'%s %s (%s) failed to be saved (image file)',
'%s %s (%s) with id %d failed to be saved (image file)',
ucfirst($parentType),
$model->getFile(),
$fileType
$fileType,
$parentId
)
);
}