Code Duplication    Length = 6-9 lines in 2 locations

src/Connectors/Wikipedia/WikiToApi.php 2 locations

@@ 252-257 (lines=6) @@
249
            // e.g. q=Leonardo%20di%20caprio&language=de OR q=100&language=de
250
            if ($text == '') {
251
                $description = $image = '';
252
                if ($this->params['language'] == 'de') {
253
                    $text = 'Zu diesem Stichwort ist kein Artikel vorhanden.';
254
                }
255
                else if($text == '') {
256
                    $text = 'There is no article available for this keyword.';
257
                }
258
                return; // ONLY IF YOU WHANT NO OUTPUT !!
259
            }      
260
        }
@@ 263-271 (lines=9) @@
260
        }
261
262
        // Build the HTML Output
263
        if ($this->params['language']=='de') {
264
            $moreAbout = 'Mehr über';
265
            $from = 'bei';    
266
        }
267
        else
268
        {
269
            $moreAbout = 'More about';
270
            $from = 'from';    
271
        }
272
273
        // Without any Search Result return nothing
274
        if ($text == '' && $description == '') {