Code Duplication    Length = 11-11 lines in 2 locations

src/console/HiapiController.php 1 location

@@ 13-23 (lines=11) @@
10
11
namespace hiapi\console;
12
13
class HiapiController extends \yii\console\Controller
14
{
15
    public function actionHandle()
16
    {
17
        $hiapi = $this->module->get('hiapi');
18
        $command = $hiapi->createCommand($this->module->getRequest());
19
        $bus = $this->module->get('commandBus');
20
21
        return $bus->handle($command);
22
    }
23
}
24

src/controllers/BaseController.php 1 location

@@ 13-23 (lines=11) @@
10
11
namespace hiapi\controllers;
12
13
abstract class BaseController extends \yii\web\Controller
14
{
15
    public function actionHandle()
16
    {
17
        $hiapi = $this->module->get('hiapi');
18
        $command = $hiapi->createCommand($this->module->getRequest());
19
        $bus = $this->module->get('commandBus');
20
21
        return $bus->handle($command);
22
    }
23
}
24