[Pkg-owncloud-commits] [owncloud] 55/223: Fixed instanceof to use interface instead of class

David Prévot taffit at moszumanska.debian.org
Sun Jun 22 01:54:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 05e351416e1c45b88c7e51d39a4e9961e5b8546f
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Thu Jun 12 14:40:43 2014 +0200

    Fixed instanceof to use interface instead of class
---
 lib/private/repair.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/private/repair.php b/lib/private/repair.php
index 8979d04..23d1c2b 100644
--- a/lib/private/repair.php
+++ b/lib/private/repair.php
@@ -9,6 +9,7 @@
 namespace OC;
 
 use OC\Hooks\BasicEmitter;
+use OC\Hooks\Emitter;
 
 class Repair extends BasicEmitter {
 	/**
@@ -38,7 +39,7 @@ class Repair extends BasicEmitter {
 		foreach ($this->repairSteps as $step) {
 			$this->emit('\OC\Repair', 'step', array($step->getName()));
 
-			if ($step instanceof BasicEmitter) {
+			if ($step instanceof Emitter) {
 				$step->listen('\OC\Repair', 'warning', function ($description) use ($self) {
 					$self->emit('\OC\Repair', 'warning', array($description));
 				});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list