Commit 633754be authored by bojanz's avatar bojanz

Merge pull request #214 from joshuataylor/commerce-code-smell

Removes unused imports, fixes StoreType entity
parents d1684ec3 49f26d8d
......@@ -10,7 +10,6 @@ namespace Drupal\commerce_line_item\Form;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......
......@@ -10,7 +10,6 @@ namespace Drupal\commerce_order\Form;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......
......@@ -88,7 +88,6 @@ class PricePlainFormatter extends FormatterBase implements ContainerFactoryPlugi
$elements = [];
foreach ($items as $delta => $item) {
$currency = $currencies[$item->currency_code];
$elements[$delta] = [
'#theme' => 'commerce_price_plain',
'#amount' => $item->amount,
......
......@@ -10,7 +10,6 @@ namespace Drupal\commerce_product\Form;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......
......@@ -9,7 +9,6 @@ namespace Drupal\commerce_store\Form;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\Language;
/**
* Form controller for the store edit form.
......
......@@ -7,11 +7,9 @@
namespace Drupal\commerce_store\Form;
use Drupal\Core\Entity\EntityConfirmFormBase;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......
......@@ -7,7 +7,7 @@
namespace Drupal\commerce_store;
use Drupal\commerce\Entity\StoreType;
use Drupal\commerce_store\Entity\StoreType;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityListBuilder;
......
......@@ -9,7 +9,6 @@ namespace Drupal\commerce_tax\Form;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
/**
* Builds the form to delete a tax type.
......
......@@ -11,7 +11,6 @@ use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Form\FormStateInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\commerce_tax\Entity\TaxRate;
class TaxRateAmountForm extends EntityForm {
......
......@@ -9,7 +9,6 @@ namespace Drupal\commerce_tax\Form;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
/**
* Builds the form to delete a tax type.
......
......@@ -9,7 +9,6 @@ namespace Drupal\commerce_tax\Form;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
/**
* Builds the form to delete a tax type.
......
......@@ -9,7 +9,6 @@ namespace Drupal\commerce_tax\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Component\Utility\UrlHelper;
/**
* Contribute form.
......
......@@ -7,14 +7,13 @@
namespace Drupal\commerce_tax;
use \CommerceGuys\Tax\Repository\TaxTypeRepository;
use \Drupal\Core\Entity\EntityManagerInterface;
use \Drupal\Core\Entity\EntityStorageInterface;
use \CommerceGuys\Tax\Model\TaxTypeInterface;
use \CommerceGuys\Tax\Model\TaxRateInterface;
use \CommerceGuys\Tax\Model\TaxRateAmountInterface;
use \Drupal\Core\StringTranslation\StringTranslationTrait;
use \Drupal\Core\StringTranslation\TranslationInterface;
use CommerceGuys\Tax\Repository\TaxTypeRepository;
use Drupal\Core\Entity\EntityManagerInterface;
use CommerceGuys\Tax\Model\TaxTypeInterface;
use CommerceGuys\Tax\Model\TaxRateInterface;
use CommerceGuys\Tax\Model\TaxRateAmountInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\StringTranslation\TranslationInterface;
class TaxTypeImporter implements TaxTypeImporterInterface {
......
......@@ -7,8 +7,8 @@
namespace Drupal\commerce_tax;
use \Drupal\Core\Entity\EntityManagerInterface;
use \Drupal\Core\StringTranslation\TranslationInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\StringTranslation\TranslationInterface;
class TaxTypeImporterFactory implements TaxTypeImporterFactoryInterface {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment