fucongcong/framework

View on GitHub
core/Group/Rpc/RpcService.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 11 of 11 total issues

Missing class import via use statement (line '21', column '29').
Open

$this->client = new \HproseSwooleClient("{$type}://{$host}:{$port}");
Severity: Minor
Found in core/Group/Rpc/RpcService.php by phpmd

Missing class import via use statement (line '15', column '13').
Open

new \Group\Plugin\Rpc\Hprose();
Severity: Minor
Found in core/Group/Rpc/RpcService.php by phpmd

Avoid unused local variables such as '$path'.
Open

$path = app('container')->getAppPath();
Severity: Minor
Found in core/Group/Rpc/RpcService.php by phpmd

Opening class brace must be on a line by itself
Open

{

Expected 1 newline at end of file; 0 found
Open

}

Expected 1 space after CATCH keyword; 0 found
Open

} catch(\Exception $e) {

Expected 1 space after CATCH keyword; 0 found
Open

} catch(\Exception $e) {

Whitespace found at end of line
Open

{

Whitespace found at end of line
Open

{

Whitespace found at end of line
Open

public function call($name, $function, $args)

Whitespace found at end of line
Open

public function service($name)

There are no issues that match your filters.

Category
Status