Code Duplication    Length = 8-9 lines in 2 locations

geodirectory-widgets/geodirectory_features_widget.php 1 location

@@ 9-17 (lines=9) @@
6
    /**
7
     * Class constructor.
8
     */
9
    public function __construct()
10
    {
11
        $widget_ops = array(
12
            'description' => __('Displays "GD Features" widget', 'geodirectory'),
13
            'classname' => 'widget_gd_features',
14
        );
15
        parent::__construct(false, $name = _x('GD > Features', 'widget name', 'geodirectory'), $widget_ops);
16
17
    }
18
19
    /**
20
     * Display the widget.

geodirectory_widgets.php 1 location

@@ 965-972 (lines=8) @@
962
             * @since 1.0.0
963
             * @since 1.5.1 Changed from PHP4 style constructors to PHP5 __construct.
964
             */
965
            public function __construct() {
966
                $widget_ops = array('classname' => 'geodir_advance_search_widget', 'description' => __('GD > Search', 'geodirectory'),'post_type'=>'');
967
                parent::__construct(
968
                    'geodir_advance_search', // Base ID
969
                    __('GD > Search', 'geodirectory'), // Name
970
                    $widget_ops// Args
971
                );
972
            }
973
974
975
            /**