CloneSet34


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
41330.990class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
141140
plugins/editors/codemirror.php
241120
plugins/editors/none.php
341605
plugins/editors/tinymce.php
Clone Instance
1
Line Count
41
Source Line
140
Source File
plugins/editors/codemirror.php

        protected

                  function _displayButtons($name, $buttons) {

                // Load modal popup behavior
                JHtml::_('behavior.modal', 'a.modal-button');

                $args['name']=  $name;
                $args['event']=  'onGetInsertMethod';

                $return=  '';
                $results[]=  $this->update($args);
                foreach ($results as $result) {
                        if (is_string($result)
                            &&                    trim($result)) {
                                $return.=  $result;
                              }
                      }
                if (!empty($buttons))
                {
                        $results=  $this->_subject->getButtons($name, $buttons);

                        /*
                         * This will allow plugins to attach buttons or change the behavior on the fly using AJAX
                         */
                        $return.=  "\n<div id=\"editor-xtd-buttons\">\n";
                        foreach ($results as $button)
                        {
                                /*
                                 * Results should be an object
                                 */
                                if ($button->get('name'))
                                {
                                        $modal=           ($button->get('modal'))
                                                          ?                         'class="modal-button"'
                                                          :                                                  NULL;
                                        $href=            ($button->get('link'))
                                                          ?                        'href="'
                                                                                   .        $button->get('link')
                                                                                   .                             '"'
                                                          :                                                            NULL;
                                        $onclick=         ($button->get('onclick'))
                                                          ?                           'onclick="'
                                                                                      .           $button->get('onclick')
                                                                                      .                                   '"'
                                                          :                                                                     NULL;
                                        $return.=  "<div class=\"button2-left\"><div class=\""
                                                   .                                           $button->get('name')
                                                   .                                                                "\"><a "
                                                   .                                                                         $modal
                                                   .                                                                                " title=\""
                                                   .                                                                                            $button->get('text')
                                                   .                                                                                                                 "\" "
                                                   .                                                                                                                       $href
                                                   .                                                                                                                             " "
                                                   .                                                                                                                                 $onclick
                                                   .                                                                                                                                          " rel=\""
                                                   .                                                                                                                                                    $button->get('options')
                                                   .                                                                                                                                                                            "\">"
                                                   .                                                                                                                                                                                  $button->get('text')
                                        .                                                                                                                                                                                                                  "</a></div></div>\n";
                                      }
                              }
                        $return.=  "</div>\n";
                      }
                return $return;
              }


Clone Instance
2
Line Count
41
Source Line
120
Source File
plugins/editors/none.php

        function _displayButtons($name, $buttons) {

                // Load modal popup behavior
                JHtml::_('behavior.modal', 'a.modal-button');

                $args['name']=  $name;
                $args['event']=  'onGetInsertMethod';

                $return=  '';
                $results[]=  $this->update($args);
                foreach ($results as $result) {
                        if (is_string($result)
                            &&                    trim($result)) {
                                $return.=  $result;
                              }
                      }
                if (!empty($buttons))
                {
                        $results=  $this->_subject->getButtons($name, $buttons);

                        /*
                         * This will allow plugins to attach buttons or change the behavior on the fly using AJAX
                         */
                        $return.=  "\n<div id=\"editor-xtd-buttons\">\n";
                        foreach ($results as $button)
                        {
                                /*
                                 * Results should be an object
                                 */
                                if ($button->get('name'))
                                {
                                        $modal=           ($button->get('modal'))
                                                          ?                         'class="modal-button"'
                                                          :                                                  NULL;
                                        $href=            ($button->get('link'))
                                                          ?                        'href="'
                                                                                   .        $button->get('link')
                                                                                   .                             '"'
                                                          :                                                            NULL;
                                        $onclick=         ($button->get('onclick'))
                                                          ?                           'onclick="'
                                                                                      .           $button->get('onclick')
                                                                                      .                                   '"'
                                                          :                                                                     NULL;
                                        $return.=  "<div class=\"button2-left\"><div class=\""
                                                   .                                           $button->get('name')
                                                   .                                                                "\"><a "
                                                   .                                                                         $modal
                                                   .                                                                                " title=\""
                                                   .                                                                                            $button->get('text')
                                                   .                                                                                                                 "\" "
                                                   .                                                                                                                       $href
                                                   .                                                                                                                             " "
                                                   .                                                                                                                                 $onclick
                                                   .                                                                                                                                          " rel=\""
                                                   .                                                                                                                                                    $button->get('options')
                                                   .                                                                                                                                                                            "\">"
                                                   .                                                                                                                                                                                  $button->get('text')
                                        .                                                                                                                                                                                                                  "</a></div></div>\n";
                                      }
                              }
                        $return.=  "</div>\n";
                      }
                return $return;
              }


Clone Instance
3
Line Count
41
Source Line
605
Source File
plugins/editors/tinymce.php

        function _displayButtons($name, $buttons) {

                // Load modal popup behavior
                JHTML::_('behavior.modal', 'a.modal-button');

                $args['name']=  $name;
                $args['event']=  'onGetInsertMethod';

                $return=  '';
                $results[]=  $this->update($args);
                foreach ($results as $result) {
                        if (is_string($result)
                            &&                    trim($result)) {
                                $return.=  $result;
                              }
                      }
                if (!empty($buttons))
                {
                        $results=  $this->_subject->getButtons($name, $buttons);

                        /*
                         * This will allow plugins to attach buttons or change the behavior on the fly using AJAX
                         */
                        $return.=  "\n<div id=\"editor-xtd-buttons\">\n";
                        foreach ($results as $button)
                        {
                                /*
                                 * Results should be an object
                                 */
                                if ( $button->get('name'))
                                {
                                        $modal=           ($button->get('modal'))
                                                          ?                         'class="modal-button"'
                                                          :                                                  NULL;
                                        $href=            ($button->get('link'))
                                                          ?                        'href="'
                                                                                   .        JURI::base()
                                                                                   .                     $button->get('link')
                                                                                   .                                          '"'
                                                          :                                                                         NULL;
                                        $onclick=         ($button->get('onclick'))
                                                          ?                           'onclick="'
                                                                                      .           $button->get('onclick')
                                                                                      .                                   '"'
                                                          :                                                                     NULL;
                                        $return.=  "<div class=\"button2-left\"><div class=\""
                                                   .                                           $button->get('name')
                                                   .                                                                "\"><a "
                                                   .                                                                         $modal
                                                   .                                                                                " title=\""
                                                   .                                                                                            $button->get('text')
                                                   .                                                                                                                 "\" "
                                                   .                                                                                                                       $href
                                                   .                                                                                                                             " "
                                                   .                                                                                                                                 $onclick
                                                   .                                                                                                                                          " rel=\""
                                                   .                                                                                                                                                    $button->get('options')
                                                   .                                                                                                                                                                            "\">"
                                                   .                                                                                                                                                                                  $button->get('text')
                                        .                                                                                                                                                                                                                  "</a></div></div>\n";
                                      }
                              }
                        $return.=  "</div>\n";
                      }
                return $return;
              }


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variable54062300]]

function _displayButtons($name,$buttons) {
   [[#variable54062280]]::_('behavior.modal','a.modal-button');
  $args['name']=$name;
  $args['event']='onGetInsertMethod';
  $return='';
  $results[]=$this->update($args);
  foreach ($results as $result) {
    if (is_string($result)
        && trim($result)) {
      $return.=$result;
    }
  }
  if (!empty($buttons)) {
    $results=$this->_subject->getButtons($name,$buttons);
    /*
                             * This will allow plugins to attach buttons or change the behavior on the fly using AJAX
                             */
    $return.="\n<div id=\"editor-xtd-buttons\">\n";
    foreach ($results as $button) {
      /*
                                       * Results should be an object
                                       */
      if ($button->get('name')) {
        $modal=($button->get('modal'))
               ? 'class="modal-button"'
               : NULL;
        $href=($button->get('link'))
              ? [[#variable54062200]]
               . $button->get('link')
               . '"'
              : NULL;
        $onclick=($button->get('onclick'))
                 ? 'onclick="'
                   . $button->get('onclick')
                   . '"'
                 : NULL;
        $return.="<div class=\"button2-left\"><div class=\""
                 . $button->get('name')
                 . "\"><a "
                 . $modal
                 . " title=\""
                 . $button->get('text')
                 . "\" "
                 . $href
                 . " "
                 . $onclick
                 . " rel=\""
                 . $button->get('options')
                 . "\">"
                 . $button->get('text')
        . "</a></div></div>\n";
      }
    }
    $return.="</div>\n";
  }
  return $return;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54062300]]
12[[#54062300]]
13[[#54062300]]
protected 
21[[#54062280]]
// Load modal popup behavior
JHtml 
22[[#54062280]]
// Load modal popup behavior
JHTML 
23[[#54062280]]
// Load modal popup behavior
JHtml 
31[[#54062200]]
'href="' 
32[[#54062200]]
'href="'
. JURI::base() 
33[[#54062200]]
'href="'