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

@@ 219-227 (lines=9) @@
216
    /**
217
     * Execute multi call & handle error.
218
     */
219
    protected function executeMultiCall()
220
    {
221
        try {
222
            $this->factory->getConnection()->executeMulticall();
223
        } catch (\Exception $e) {
224
            $this->logger->error("Couldn't deliver all manialinks : ".$e->getMessage(), ['exception' => $e]);
225
            $this->console->writeln('$F00ERROR - Couldn\'t deliver all manialinks : '.$e->getMessage());
226
        }
227
    }
228
229
    /**
230
     * Get list of all manialinks that needs to be displayed