Skip to content

Commit

Permalink
Merge pull request #41 from tidal/analysis-zeYYMA
Browse files Browse the repository at this point in the history
cs fixes
  • Loading branch information
tidal authored Oct 1, 2016
2 parents 2bba187 + c585eea commit 3198a59
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 34 deletions.
19 changes: 8 additions & 11 deletions src/Tidal/WampWatch/Adapter/React/DeferredAdapter.php
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
<?php
/**

/*
* This file is part of the Tidal/WampWatch package.
* (c) 2016 Timo Michna <timomichna/yahoo.de>
*
* * This file is part of the Tidal/WampWatch package.
* * (c) 2016 Timo Michna <timomichna/yahoo.de>
* *
* * For the full copyright and license information, please view the LICENSE
* * file that was distributed with this source code.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/

namespace Tidal\WampWatch\Adapter\React;

use Tidal\WampWatch\Async\DeferredInterface;
use Tidal\WampWatch\Async\PromiseInterface;

use React\Promise\Deferred;

class DeferredAdapter implements DeferredInterface
{

/**
* @var Deferred
*/
private $adaptee;

/**
* @var string fully qualified class name of the promise to create.
* @var string fully qualified class name of the promise to create
*/
private $promiseClass = PromiseAdapter::class;

Expand Down Expand Up @@ -112,5 +110,4 @@ private function createPromise()
$this->adaptee->promise()
);
}

}
}
16 changes: 7 additions & 9 deletions src/Tidal/WampWatch/Adapter/React/PromiseAdapter.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**

/*
* This file is part of the Tidal/WampWatch package.
* (c) 2016 Timo Michna <timomichna/yahoo.de>
*
* * This file is part of the Tidal/WampWatch package.
* * (c) 2016 Timo Michna <timomichna/yahoo.de>
* *
* * For the full copyright and license information, please view the LICENSE
* * file that was distributed with this source code.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/

Expand All @@ -14,10 +14,8 @@
use Tidal\WampWatch\Async\PromiseInterface;
use React\Promise\Promise;


class PromiseAdapter implements PromiseInterface
{

/**
* @var Promise
*/
Expand Down Expand Up @@ -112,4 +110,4 @@ public function progress(callable $onProgress)

return $this;
}
}
}
15 changes: 7 additions & 8 deletions src/Tidal/WampWatch/Async/DeferredInterface.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<?php
/**

/*
* This file is part of the Tidal/WampWatch package.
* (c) 2016 Timo Michna <timomichna/yahoo.de>
*
* * This file is part of the Tidal/WampWatch package.
* * (c) 2016 Timo Michna <timomichna/yahoo.de>
* *
* * For the full copyright and license information, please view the LICENSE
* * file that was distributed with this source code.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/

namespace Tidal\WampWatch\Async;


interface DeferredInterface
{
/**
Expand All @@ -33,4 +32,4 @@ public function reject($reason = null);
* @param null $update
*/
public function notify($update = null);
}
}
12 changes: 6 additions & 6 deletions src/Tidal/WampWatch/Async/PromiseInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**

/*
* This file is part of the Tidal/WampWatch package.
* (c) 2016 Timo Michna <timomichna/yahoo.de>
*
* * This file is part of the Tidal/WampWatch package.
* * (c) 2016 Timo Michna <timomichna/yahoo.de>
* *
* * For the full copyright and license information, please view the LICENSE
* * file that was distributed with this source code.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/

Expand Down
1 change: 1 addition & 0 deletions src/Tidal/WampWatch/Stub/ClientSessionStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ public static function getUniqueId()

/**
* @param $msg
*
* @return mixed
*/
public function sendMessage($msg)
Expand Down

0 comments on commit 3198a59

Please sign in to comment.