remove unused variable
This commit is contained in:
@@ -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 -->
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -190,9 +190,6 @@ class Category extends BaseI18nLoop implements PropelSearchLoopInterface, Search
|
||||
}
|
||||
}
|
||||
|
||||
/* @todo */
|
||||
$notEmpty = $this->getNot_empty();
|
||||
|
||||
return $search;
|
||||
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
|
||||
@@ -157,9 +157,6 @@ class Folder extends BaseI18nLoop implements PropelSearchLoopInterface, SearchLo
|
||||
}
|
||||
}
|
||||
|
||||
/* @todo */
|
||||
$notEmpty = $this->getNot_empty();
|
||||
|
||||
return $search;
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user