Code Duplication    Length = 9-9 lines in 2 locations

lasso.php 2 locations

@@ 146-154 (lines=9) @@
143
    }
144
145
146
    function editus_components_add_table( $array ){
147
        $custom = array(
148
               'htmltable' => array(
149
                         'name'    => __('HTML Table','lasso'),
150
                          'content' => self::editus_html_table(),
151
                )
152
        );
153
        return array_merge( $array, $custom );
154
    }
155
156
157
    function editus_toolbar_components_add_table( ) {
@@ 185-193 (lines=9) @@
182
            //wp_enqueue_script( 'editus_table',  LASSO_URL. '/public/assets/js/editus-table-edit-public.js', array( 'jquery' ), LASSO_VERSION, true );
183
    }
184
   
185
    function editus_components_add_paragraph( $array ){
186
        $custom = array(
187
               'htmlparagraph' => array(
188
                         'name'    => __('HTML Paragraph','lasso'),
189
                          'content' => self::editus_html_paragraph(),
190
                )
191
        );
192
        return array_merge( $array, $custom );
193
    }
194
    
195
    
196
    function editus_html_paragraph()