From f82d7ac914d9f44ab11afb8aea0290933d58ed48 Mon Sep 17 00:00:00 2001
From: Chaitanya Anil Kulkarni <chaitanyakul@cybage.com>
Date: Jan 10, 2017 3:20:13 PM

corrected use statement format

diff --git a/img_annotator.module b/img_annotator.module
index 7c17301..38c77e9 100644
--- a/img_annotator.module
+++ b/img_annotator.module
@@ -1,13 +1,13 @@
 <?php
 use Drupal\Core\Entity\EntityInterface;
-
+use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
 
 /*
  * Implementing hook_entity_view().
  *
  * Altering Node View to add Annotorious Library.
  */
-function img_annotator_entity_view(array &$build, \Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, $view_mode){
+function img_annotator_entity_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode){
 
   // Only node/* pages: $current_route == 'entity.node.canonical'
   // $current_route = \Drupal::service('current_route_match')->getRouteName();
diff --git a/src/Controller/AnnotationsDeleteAction.php b/src/Controller/AnnotationsDeleteAction.php
index 867d888..ba32b63 100644
--- a/src/Controller/AnnotationsDeleteAction.php
+++ b/src/Controller/AnnotationsDeleteAction.php
@@ -3,9 +3,7 @@
 namespace Drupal\img_annotator\Controller;
 
 use Drupal\Core\Controller\ControllerBase;
-use Symfony\Component\HttpFoundation\RedirectResponse;
 use Zend\Diactoros\Response\JsonResponse;
-use Drupal\Component\Serialization\Json;
 
 class AnnotationsDeleteAction extends ControllerBase {
 
diff --git a/src/Controller/AnnotationsRetrieveAction.php b/src/Controller/AnnotationsRetrieveAction.php
index 089adb6..fe9b3f4 100644
--- a/src/Controller/AnnotationsRetrieveAction.php
+++ b/src/Controller/AnnotationsRetrieveAction.php
@@ -3,7 +3,6 @@
 namespace Drupal\img_annotator\Controller;
 
 use Drupal\Core\Controller\ControllerBase;
-use Symfony\Component\HttpFoundation\RedirectResponse;
 use Drupal\Component\Serialization\Json;
 use Zend\Diactoros\Response\JsonResponse;
 
diff --git a/src/Controller/AnnotationsSaveAction.php b/src/Controller/AnnotationsSaveAction.php
index 18ca606..8b00078 100644
--- a/src/Controller/AnnotationsSaveAction.php
+++ b/src/Controller/AnnotationsSaveAction.php
@@ -3,7 +3,6 @@
 namespace Drupal\img_annotator\Controller;
 
 use Drupal\Core\Controller\ControllerBase;
-use Symfony\Component\HttpFoundation\RedirectResponse;
 use Zend\Diactoros\Response\JsonResponse;
 use Drupal\Component\Serialization\Json;
 
diff --git a/src/Controller/AnnotationsUpdateAction.php b/src/Controller/AnnotationsUpdateAction.php
index babdf3d..0e682fa 100644
--- a/src/Controller/AnnotationsUpdateAction.php
+++ b/src/Controller/AnnotationsUpdateAction.php
@@ -3,7 +3,6 @@
 namespace Drupal\img_annotator\Controller;
 
 use Drupal\Core\Controller\ControllerBase;
-use Symfony\Component\HttpFoundation\RedirectResponse;
 use Drupal\Component\Serialization\Json;
 use Zend\Diactoros\Response\JsonResponse;
 
