Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
R0Wi authored and github-actions[bot] committed Jun 16, 2023
1 parent a194615 commit a622b56
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
use OCA\WorkflowOcr\Listener\RegisterFlowOperationsListener;
use OCA\WorkflowOcr\OcrProcessors\IOcrProcessorFactory;
use OCA\WorkflowOcr\OcrProcessors\OcrProcessorFactory;
use OCA\WorkflowOcr\Service\IEventService;
use OCA\WorkflowOcr\Service\EventService;
use OCA\WorkflowOcr\Service\GlobalSettingsService;
use OCA\WorkflowOcr\Service\IEventService;
use OCA\WorkflowOcr\Service\IGlobalSettingsService;
use OCA\WorkflowOcr\Service\IOcrBackendInfoService;
use OCA\WorkflowOcr\Service\IOcrService;
Expand Down
10 changes: 5 additions & 5 deletions lib/BackgroundJobs/ProcessFileJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@

namespace OCA\WorkflowOcr\BackgroundJobs;

use OC\User\NoUserException;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use \OCP\Files\File;
use OC\User\NoUserException;
use OCA\WorkflowOcr\Exception\OcrNotPossibleException;
use OCA\WorkflowOcr\Exception\OcrProcessorNotFoundException;
use OCA\WorkflowOcr\Helper\IProcessingFileAccessor;
use OCA\WorkflowOcr\Model\WorkflowSettings;
use OCA\WorkflowOcr\Service\IOcrService;
use OCA\WorkflowOcr\Service\IEventService;
use OCA\WorkflowOcr\Service\IOcrService;
use OCA\WorkflowOcr\Wrapper\IFilesystem;
use OCA\WorkflowOcr\Wrapper\IViewFactory;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Files\FileInfo;
use OCP\Files\IRootFolder;
use OCP\Files\Node;
use OCP\IUserManager;
use OCP\Files\NotFoundException;
use OCP\IUser;
use OCP\IUserManager;
use OCP\IUserSession;
use Psr\Log\LoggerInterface;

Expand Down
2 changes: 1 addition & 1 deletion lib/OcrProcessors/ImageOcrProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

namespace OCA\WorkflowOcr\OcrProcessors;

use OCA\WorkflowOcr\Model\WorkflowSettings;
use OCA\WorkflowOcr\Model\GlobalSettings;
use OCA\WorkflowOcr\Model\WorkflowSettings;

class ImageOcrProcessor extends OcrMyPdfBasedProcessor {
protected function getAdditionalCommandlineArgs(WorkflowSettings $settings, GlobalSettings $globalSettings): array {
Expand Down
16 changes: 8 additions & 8 deletions lib/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@

namespace OCA\WorkflowOcr;

use OCA\WorkflowOcr\AppInfo\Application;
use OCA\WorkflowEngine\Entity\File;
use OCP\BackgroundJob\IJobList;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\GenericEvent;
use OCP\IL10N;
use OCP\WorkflowEngine\IManager;
use OCP\WorkflowEngine\IRuleMatcher;
use OCP\WorkflowEngine\ISpecificOperation;
use OCA\WorkflowOcr\AppInfo\Application;
use OCA\WorkflowOcr\BackgroundJobs\ProcessFileJob;
use OCA\WorkflowOcr\Helper\IProcessingFileAccessor;
use OCA\WorkflowOcr\Model\WorkflowSettings;
use OCP\BackgroundJob\IJobList;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\GenericEvent;
use OCP\Files\FileInfo;
use OCP\Files\IRootFolder;
use OCP\Files\Node;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\SystemTag\MapperEvent;
use OCP\WorkflowEngine\IManager;
use OCP\WorkflowEngine\IRuleMatcher;
use OCP\WorkflowEngine\ISpecificOperation;
use Psr\Log\LoggerInterface;

class Operation implements ISpecificOperation {
Expand Down
4 changes: 2 additions & 2 deletions lib/Service/EventService.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
*/
namespace OCA\WorkflowOcr\Service;

use OCP\EventDispatcher\IEventDispatcher;
use OCA\WorkflowOcr\OcrProcessors\OcrProcessorResult;
use OCA\WorkflowOcr\Events\TextRecognizedEvent;
use OCA\WorkflowOcr\OcrProcessors\OcrProcessorResult;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\File;

class EventService implements IEventService {
Expand Down
54 changes: 27 additions & 27 deletions templates/globalSettings.php
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<?php
/**
* @copyright Copyright (c) 2021 Robin Windey <[email protected]>
*
* @author Robin Windey <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* This file represents the frontend snippet HTML code for global settings page.
*/
use OCA\WorkflowOcr\AppInfo\Application;
/**
* @copyright Copyright (c) 2021 Robin Windey <[email protected]>
*
* @author Robin Windey <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* This file represents the frontend snippet HTML code for global settings page.
*/
use OCA\WorkflowOcr\AppInfo\Application;

// Add GlobalSettings.vue component
script(Application::APP_NAME, Application::APP_NAME . '-globalSettings');
?>
// Add GlobalSettings.vue component
script(Application::APP_NAME, Application::APP_NAME . '-globalSettings');
?>

<!-- Vue mountpoint -->
<div id="workflow_ocr_globalsettings"></div>
4 changes: 2 additions & 2 deletions tests/Unit/BackgroundJobs/ProcessFileJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
use OCA\WorkflowOcr\Exception\OcrProcessorNotFoundException;
use OCA\WorkflowOcr\Helper\IProcessingFileAccessor;
use OCA\WorkflowOcr\OcrProcessors\OcrProcessorResult;
use OCA\WorkflowOcr\Service\IOcrService;
use OCA\WorkflowOcr\Service\IEventService;
use OCA\WorkflowOcr\Service\IOcrService;
use OCA\WorkflowOcr\Wrapper\IFilesystem;
use OCA\WorkflowOcr\Wrapper\IView;
use OCA\WorkflowOcr\Wrapper\IViewFactory;
Expand All @@ -49,8 +49,8 @@
use OCP\IUser;
use OCP\IUserManager;
use OCP\IUserSession;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;

class ProcessFileJobTest extends TestCase {
Expand Down

0 comments on commit a622b56

Please sign in to comment.