Skip to content

Commit

Permalink
fix #58
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Dec 27, 2016
1 parent 3f84dfb commit 0a9b77f
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 50 deletions.
8 changes: 4 additions & 4 deletions src/Engine/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public function __construct($opts = array())
Debug::debug('Engine __construct');
}

public function __destruct()
{
Debug::debug('Engine __destruct');
}
public function __destruct()
{
Debug::debug('Engine __destruct');
}

public function handleRequest($req, $res)
{
Expand Down
10 changes: 6 additions & 4 deletions src/Engine/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ public function __construct($id, $server, $transport, $req)
$this->onOpen();
Debug::debug('Engine/Socket __construct');
}
public function __destruct()
{
Debug::debug('Engine/Socket __destruct');
}

public function __destruct()
{
Debug::debug('Engine/Socket __destruct');
}

public function maybeUpgrade($transport)
{
$this->upgrading = true;
Expand Down
14 changes: 7 additions & 7 deletions src/Engine/Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ class Transport extends Emitter
public $res = null;

public function __construct()
{
Debug::debug('Transport __construct no access !!!!');
}
{
Debug::debug('Transport __construct no access !!!!');
}

public function __destruct()
{
Debug::debug('Transport __destruct');
}
public function __destruct()
{
Debug::debug('Transport __destruct');
}

public function noop()
{
Expand Down
28 changes: 14 additions & 14 deletions src/Nsp.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public function __construct($server, $name)
Debug::debug('Nsp __construct');
}

public function __destruct()
{
Debug::debug('Nsp __destruct');
}
public function __destruct()
{
Debug::debug('Nsp __destruct');
}

public function initAdapter()
{
Expand Down Expand Up @@ -74,10 +74,10 @@ public function add($client, $nsp, $fn)


/**
* Removes a client. Called by each `Socket`.
*
* @api private
*/
* Removes a client. Called by each `Socket`.
*
* @api private
*/

public function remove($socket)
{
Expand All @@ -86,12 +86,12 @@ public function remove($socket)
}


/**
* Emits to all clients.
*
* @return {Namespace} self
* @api public
*/
/**
* Emits to all clients.
*
* @return {Namespace} self
* @api public
*/

public function emit($ev = null)
{
Expand Down
16 changes: 8 additions & 8 deletions src/Parser/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
use \PHPSocketIO\Debug;
class Decoder extends Emitter
{
public function __construct()
{
Debug::debug('Decoder __construct');
}
public function __construct()
{
Debug::debug('Decoder __construct');
}

public function __destruct()
{
Debug::debug('Decoder __destruct');
}
public function __destruct()
{
Debug::debug('Decoder __destruct');
}

public function add($obj)
{
Expand Down
16 changes: 8 additions & 8 deletions src/Parser/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
use \PHPSocketIO\Debug;
class Encoder extends Emitter
{
public function __construct()
{
Debug::debug('Encoder __construct');
}
public function __construct()
{
Debug::debug('Encoder __construct');
}

public function __destruct()
{
Debug::debug('Encoder __destruct');
}
public function __destruct()
{
Debug::debug('Encoder __destruct');
}


public function encode($obj)
Expand Down
10 changes: 5 additions & 5 deletions src/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public function __construct($nsp, $client)
Debug::debug('IO Socket __construct');
}

public function __destruct()
{
Debug::debug('IO Socket __destruct');
}
public function __destruct()
{
Debug::debug('IO Socket __destruct');
}

public function buildHandshake()
{
Expand Down Expand Up @@ -82,7 +82,7 @@ public function __get($name)
return null;
}

public function emit($ev)
public function emit($ev = null)
{
$args = func_get_args();
if (isset(self::$events[$ev]))
Expand Down

0 comments on commit 0a9b77f

Please sign in to comment.