Unnessary fully qualified name \Drupal\uc_order\Entity\Order in CheckoutController.php

Comments

heykarthikwithu created an issue. See original summary.

heykarthikwithu’s picture

Assigned: heykarthikwithu » Unassigned
Status: Active » Needs review
StatusFileSize
new1.39 KB

1. Removed unnecessary fully qualified name \Drupal\uc_order\Entity\Order.
2. Replaced the \Drupal::entityManager() with \Drupal::entityTypeManager().

longwave’s picture

I think there are several fully qualified names in the codebase that are not strictly necessary (we should use "use" statements instead), it would be good to get them all at once if you can?

heykarthikwithu’s picture

Assigned: Unassigned » heykarthikwithu

Sure, will work on this :)

tr’s picture

Status: Needs review » Needs work

Also, your #2 shouldn't be in this patch - the entityTypeManager() should be handled in #2630956: Replace the entity manager with the entity type manager in the code base.

heykarthikwithu’s picture

Assigned: heykarthikwithu » Unassigned
Status: Needs work » Needs review
StatusFileSize
new21.97 KB
new19.91 KB

Changed all the fully qualified names in the codebase.

heykarthikwithu’s picture

Title: Unnessary fully qualified name \Drupal\uc_order\Entity\Order in CheckoutController.php » Unnessary fully qualified name in the codebase.
longwave’s picture

Title: Unnessary fully qualified name in the codebase. » Unnecessary fully qualified names

Looks great. One very minor nitpick:

 namespace Drupal\uc_store\Tests;
+use Drupal\uc_country\Entity\Country;

There should be a blank line between these two lines, but this can be fixed on commit.

longwave’s picture

Status: Needs review » Fixed

Committed with the extra blank line added.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.