Code Duplication    Length = 9-9 lines in 2 locations

src/eXpansion/Bundle/CustomChat/Plugins/CustomChat.php 1 location

@@ 242-250 (lines=9) @@
239
     *
240
     * @return void
241
     */
242
    public function onApplicationReady()
243
    {
244
        try {
245
            $this->factory->getConnection()->chatEnableManualRouting();
246
        } catch (\Exception $e) {
247
            $this->console->writeln('Error while enabling custom chat: $f00'.$e->getMessage());
248
            $this->logger->error("Error enabling custom chat", ['exception' => $e]);
249
        }
250
    }
251
252
    /**
253
     * called when requesting application stop

src/eXpansion/Framework/Core/Plugins/GuiHandler.php 1 location

@@ 197-205 (lines=9) @@
194
    /**
195
     * Execute multi call & handle error.
196
     */
197
    protected function executeMultiCall()
198
    {
199
        try {
200
            $this->factory->getConnection()->executeMulticall();
201
        } catch (\Exception $e) {
202
            $this->logger->error("Couldn't deliver all manialinks : ".$e->getMessage(), ['exception' => $e]);
203
            $this->console->writeln('$F00ERROR - Couldn\'t deliver all manialinks : '.$e->getMessage());
204
        }
205
    }
206
207
    /**
208
     * Get list of all manialinks that needs to be displayed