Skip to content

Commit

Permalink
Merge branch 'release/0.6.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
tidal committed Oct 2, 2016
2 parents 9049914 + b737e2c commit b11286b
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

### [0.6.3] - 2016-10-02

* cs fixes

### [0.6.2] - 2016-10-02

* maintenance
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ WAMP router meta-events
[subscription](https://tools.ietf.org/html/draft-oberstet-hybi-tavendo-wamp-02#section-13.6.3),
[session](https://tools.ietf.org/html/draft-oberstet-hybi-tavendo-wamp-02#section-13.7.1))



5 changes: 4 additions & 1 deletion src/Tidal/WampWatch/Model/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ class Connection implements Contract\ConnectionInterface
use HasRealmTrait;
use HasSessionTrait;

public function __construct(Contract\RouterInterface $router, Contract\RealmInterface $realm, Contract\SessionInterface $session = null)
public function __construct(Contract\RouterInterface $router,
Contract\RealmInterface $realm,
Contract\SessionInterface $session = null
)
{
$this->setRouter($router);
$this->setRealm($realm);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Date: 25.07.2016
* Time: 22:34.
*/

namespace Tidal\WampWatch\Model\Contract\Property\Scalar;

interface HasNameInterface
Expand Down
5 changes: 4 additions & 1 deletion src/Tidal/WampWatch/Model/Factory/ConnectionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class ConnectionFactory

private $session;

private function __construct(RouterInterface $router, RealmInterface $realm = null, SessionInterface $session = null)
private function __construct(RouterInterface $router,
RealmInterface $realm = null,
SessionInterface $session = null
)
{
$this->router = $router;
$this->realm = $realm;
Expand Down
1 change: 1 addition & 0 deletions src/Tidal/WampWatch/Model/Property/Scalar/HasUriTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Date: 25.07.2016
* Time: 20:07.
*/

namespace Tidal\WampWatch\Model\Property\Scalar;

trait HasUriTrait
Expand Down
4 changes: 3 additions & 1 deletion src/Tidal/WampWatch/Model/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public function connect(Contract\RealmInterface $realm)
/** @var Contract\ConnectionInterface $connection */
$connection = $factory($this, $realm);
if (!is_a($connection, Contract\ConnectionInterface::class)) {
throw new RuntimeException('Callable registered as factory for Connection did not return Connection instance');
throw new RuntimeException(
'Callable registered as factory for Connection did not return Connection instance'
);
}
} catch (Exception $e) {
throw $e;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Model/RealmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

namespace Tidal\WampWatch\Test\Unit\Model;
namespace Tidal\WampWatch\Test\unit\Model;

use Tidal\WampWatch\Model\Realm;
use Tidal\WampWatch\Model\Router;
Expand Down

0 comments on commit b11286b

Please sign in to comment.