Skip to content

Commit

Permalink
Issue #27: Clean up and reorder imports.
Browse files Browse the repository at this point in the history
This removes noise from following commits.
  • Loading branch information
donquixote authored and hfiguiere committed Oct 24, 2024
1 parent 150cade commit 7ceeb92
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
4 changes: 1 addition & 3 deletions collabora_online.module
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

use Drupal\Core\Entity\EntityInterface;
use Drupal\collabora_online\Cool\CoolUtils;
use Drupal\file\Entity\File;
use Drupal\media\Entity\Media;
use Drupal\Core\Entity\EntityInterface;

/**
* Implements hook_theme().
Expand Down
4 changes: 1 addition & 3 deletions src/Controller/ViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@

namespace Drupal\collabora_online\Controller;

use Drupal\collabora_online\Cool\CoolUtils;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Render\RendererInterface;
use Drupal\collabora_online\Cool\CoolUtils;
use Drupal\file\Entity\File;
use Drupal\media\Entity\Media;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;

/**
* Provides route responses for the Collabora module.
Expand Down
5 changes: 2 additions & 3 deletions src/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@

namespace Drupal\collabora_online\Controller;

use Drupal\collabora_online\Cool\CoolUtils;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\File\FileSystemInterface;
use Drupal\collabora_online\Cool\CoolUtils;
use Drupal\file\Entity\File;
use Drupal\media\Entity\Media;
use Drupal\user\Entity\User;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

/**
* Provides WOPI route responses for the Collabora module.
Expand Down
2 changes: 0 additions & 2 deletions src/Cool/CoolUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
use Drupal\Core\Url;
use Drupal\file\Entity\File;
use Drupal\media\Entity\Media;
use Drupal\user\Entity\User;
use Firebase\JWT\JWT;
use Firebase\JWT\Key;
use Drupal\collabora_online\Cool\CoolRequest;

class CoolUtils {
/** Get the permissions for the user
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin/Field/FieldFormatter/CoolPreview.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace Drupal\collabora_online\Plugin\Field\FieldFormatter;

use Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\collabora_online\Cool\CoolUtils;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase;

/**
* Plugin implementation of the 'collabora_preview' formatter.
Expand Down

0 comments on commit 7ceeb92

Please sign in to comment.