remove unused variable
This commit is contained in:
@@ -1165,7 +1165,7 @@
|
|||||||
</route>
|
</route>
|
||||||
|
|
||||||
<route id="export.customer.newsletter" path="/admin/export/customer/newsletter">
|
<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>
|
</route>
|
||||||
|
|
||||||
<!-- The default route, to display a template -->
|
<!-- The default route, to display a template -->
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ use Thelia\Model\NewsletterQuery;
|
|||||||
class CustomerExportController extends BaseAdminController
|
class CustomerExportController extends BaseAdminController
|
||||||
{
|
{
|
||||||
|
|
||||||
public function NewsletterExportAction()
|
public function newsletterExportAction()
|
||||||
{
|
{
|
||||||
if (null !== $response = $this->checkAuth([AdminResources::EXPORT_CUSTOMER_NEWSLETTER], [], [AccessManager::VIEW])) {
|
if (null !== $response = $this->checkAuth([AdminResources::EXPORT_CUSTOMER_NEWSLETTER], [], [AccessManager::VIEW])) {
|
||||||
return $response;
|
return $response;
|
||||||
|
|||||||
@@ -190,9 +190,6 @@ class Category extends BaseI18nLoop implements PropelSearchLoopInterface, Search
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* @todo */
|
|
||||||
$notEmpty = $this->getNot_empty();
|
|
||||||
|
|
||||||
return $search;
|
return $search;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,9 +152,6 @@ class Coupon extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
/** @var ConditionFactory $conditionFactory */
|
/** @var ConditionFactory $conditionFactory */
|
||||||
$conditionFactory = $this->container->get('thelia.condition.factory');
|
$conditionFactory = $this->container->get('thelia.condition.factory');
|
||||||
|
|
||||||
/** @var Request $request */
|
|
||||||
$request = $this->container->get('request');
|
|
||||||
|
|
||||||
/** @var MCoupon $coupon */
|
/** @var MCoupon $coupon */
|
||||||
foreach ($loopResult->getResultDataCollection() as $coupon) {
|
foreach ($loopResult->getResultDataCollection() as $coupon) {
|
||||||
|
|
||||||
|
|||||||
@@ -157,9 +157,6 @@ class Folder extends BaseI18nLoop implements PropelSearchLoopInterface, SearchLo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* @todo */
|
|
||||||
$notEmpty = $this->getNot_empty();
|
|
||||||
|
|
||||||
return $search;
|
return $search;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -234,9 +234,6 @@ class FreeProduct extends AbstractRemoveOnProducts
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($freeProductCartItem instanceof CartItem) {
|
if ($freeProductCartItem instanceof CartItem) {
|
||||||
|
|
||||||
$taxCountry = $this->facade->getDeliveryCountry();
|
|
||||||
|
|
||||||
// The discount is the product price.
|
// The discount is the product price.
|
||||||
$discount = $freeProductCartItem->getPromo() ?
|
$discount = $freeProductCartItem->getPromo() ?
|
||||||
$freeProductCartItem->getPromoPrice() : $freeProductCartItem->getPrice();
|
$freeProductCartItem->getPromoPrice() : $freeProductCartItem->getPrice();
|
||||||
|
|||||||
@@ -95,10 +95,11 @@ class FileManager
|
|||||||
if (!$model->save()) {
|
if (!$model->save()) {
|
||||||
throw new ImageException(
|
throw new ImageException(
|
||||||
sprintf(
|
sprintf(
|
||||||
'%s %s (%s) failed to be saved (image file)',
|
'%s %s (%s) with id %d failed to be saved (image file)',
|
||||||
ucfirst($parentType),
|
ucfirst($parentType),
|
||||||
$model->getFile(),
|
$model->getFile(),
|
||||||
$fileType
|
$fileType,
|
||||||
|
$parentId
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user