@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Model constructor. |
| 28 | - * @param medoo $medoo |
|
| 28 | + * @param Medoo $medoo |
|
| 29 | 29 | */ |
| 30 | 30 | public function __construct(Medoo $medoo) |
| 31 | 31 | { |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use FastD\ServiceProvider\SwooleServiceProvider; |
| 14 | 14 | use FastD\Servitization\Server\HTTPServer; |
| 15 | 15 | use Symfony\Component\Console\Input\InputInterface; |
| 16 | -use swoole_http_response; |
|
| 17 | 16 | use swoole_server; |
| 18 | 17 | |
| 19 | 18 | /** |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | * @param $fd |
| 43 | 43 | * @param $data |
| 44 | 44 | * @param $from_id |
| 45 | - * @return mixed |
|
| 45 | + * @return integer |
|
| 46 | 46 | */ |
| 47 | 47 | public function doWork(swoole_server $server, $fd, $data, $from_id) |
| 48 | 48 | { |
@@ -11,9 +11,9 @@ |
||
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | use FastD\Http\ServerRequest; |
| 14 | +use FastD\Packet\Json; |
|
| 14 | 15 | use FastD\Pool\PoolInterface; |
| 15 | 16 | use FastD\Swoole\Server\TCP; |
| 16 | -use FastD\Packet\Json; |
|
| 17 | 17 | use swoole_server; |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * @param swoole_server $server |
| 44 | 44 | * @param swoole_websocket_frame $frame |
| 45 | - * @return mixed |
|
| 45 | + * @return integer |
|
| 46 | 46 | */ |
| 47 | 47 | public function doMessage(swoole_server $server, swoole_websocket_frame $frame) |
| 48 | 48 | { |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use FastD\Swoole\Server\WebSocket; |
| 17 | 17 | use swoole_server; |
| 18 | 18 | use swoole_websocket_frame; |
| 19 | -use swoole_websocket_server; |
|
| 20 | 19 | |
| 21 | 20 | /** |
| 22 | 21 | * Class WebSocketServer |
@@ -11,13 +11,13 @@ |
||
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | use Exception; |
| 14 | +use FastD\Swoole\Client as SwooleClient; |
|
| 14 | 15 | use Symfony\Component\Console\Helper\FormatterHelper; |
| 15 | 16 | use Symfony\Component\Console\Helper\QuestionHelper; |
| 16 | 17 | use Symfony\Component\Console\Input\InputInterface; |
| 17 | 18 | use Symfony\Component\Console\Output\ConsoleOutput; |
| 18 | 19 | use Symfony\Component\Console\Output\OutputInterface; |
| 19 | 20 | use Symfony\Component\Console\Question\Question; |
| 20 | -use FastD\Swoole\Client as SwooleClient; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Class Client |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | |
| 13 | 13 | use FastD\Application; |
| 14 | 14 | use FastD\Testing\WebTestCase; |
| 15 | -use PHPUnit_Extensions_Database_DataSet_IDataSet; |
|
| 16 | 15 | use PHPUnit_Extensions_Database_DB_IDatabaseConnection; |
| 16 | +use PHPUnit_Extensions_Database_DataSet_IDataSet; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Class TestCase |