Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 186-194 (lines=9) @@
183
    /**
184
     * Execute multi call & handle error.
185
     */
186
    protected function executeMultiCall()
187
    {
188
        try {
189
            $this->connection->executeMulticall();
190
        } catch (\Exception $e) {
191
            $this->logger->error("Couldn't deliver all manialinks : ".$e->getMessage(), ['exception' => $e]);
192
            $this->console->writeln('$F00ERROR - Couldn\'t deliver all manialinks : '.$e->getMessage());
193
        }
194
    }
195
196
    /**
197
     * Get list of all manialinks that needs to be displayed

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

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