From 311de17730174dae1f951bdf38a657e6c5453574 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Mon, 8 Oct 2018 13:05:00 +0200 Subject: Rename method to abortIfInterrupted Signed-off-by: Daniel Kesselberg --- apps/files/lib/Command/ScanAppData.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/files/lib/Command/ScanAppData.php') diff --git a/apps/files/lib/Command/ScanAppData.php b/apps/files/lib/Command/ScanAppData.php index 24944dad64a..988bcd1e62f 100644 --- a/apps/files/lib/Command/ScanAppData.php +++ b/apps/files/lib/Command/ScanAppData.php @@ -102,12 +102,12 @@ class ScanAppData extends Base { $scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function ($path) use ($output) { $output->writeln("\tFile $path"); $this->filesCounter += 1; - $this->hasBeenInterrupted(); + $this->abortIfInterrupted(); }); $scanner->listen('\OC\Files\Utils\Scanner', 'scanFolder', function ($path) use ($output) { $output->writeln("\tFolder $path"); $this->foldersCounter += 1; - $this->hasBeenInterrupted(); + $this->abortIfInterrupted(); }); $scanner->listen('\OC\Files\Utils\Scanner', 'StorageNotAvailable', function (StorageNotAvailableException $e) use ($output) { $output->writeln('Error while scanning, storage not available (' . $e->getMessage() . ')'); @@ -116,11 +116,11 @@ class ScanAppData extends Base { } else { $scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function () use ($output) { $this->filesCounter += 1; - $this->hasBeenInterrupted(); + $this->abortIfInterrupted(); }); $scanner->listen('\OC\Files\Utils\Scanner', 'scanFolder', function () use ($output) { $this->foldersCounter += 1; - $this->hasBeenInterrupted(); + $this->abortIfInterrupted(); }); } $scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function($path) use ($output) { -- cgit v1.2.3