CloneSet283


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20201.000function_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120266
administrator/components/com_admin/admin.admin.html.php
221326
administrator/components/com_newsfeeds/admin.newsfeeds.html.php
Clone Instance
1
Line Count
20
Source Line
266
Source File
administrator/components/com_admin/admin.admin.html.php

function writableCell($folder, $relative=1, $text='', $visible=1) {

        $writeable=               '<b><font color="green">'
                                  .                          JText::_('Writable')
                                  .                                                '</font></b>';
        $unwriteable=     '<b><font color="red">'
                          .                        JText::_('Unwritable')
                          .                                                '</font></b>';
        echo '<tr>';
        echo '<td class="item">';
        echo $text;
        if ($visible) {
                echo $folder
                     .         '/';
              }
        echo '</td>';
        echo '<td >';
        if ($relative) {
                echo is_writable( "../$folder")
                     ?                            $writeable
                     :                                         $unwriteable;
              }
        else   {
                echo is_writable( "$folder")
                     ?                                    $writeable
                     :                                                 $unwriteable;
              }
        echo '</td>';
        echo '</tr>';
      }


Clone Instance
2
Line Count
21
Source Line
326
Source File
administrator/components/com_newsfeeds/admin.newsfeeds.html.php

        function writableCell($folder, $relative=1, $text='', $visible=1) {

                $writeable=               '<b><font color="green">'
                                          .                          JText::_('Writable')
                                          .                                                '</font></b>';
                $unwriteable=     '<b><font color="red">'
                                  .                        JText::_('Unwritable')
                                  .                                                '</font></b>';
                echo '<tr>';
                echo '<td class="item">';
                echo $text;
                if ($visible) {

                        echo $folder
                             .         '/';
                      }
                echo '</td>';
                echo '<td >';
                if ($relative) {
                        echo is_writable( "../$folder")
                             ?                            $writeable
                             :                                         $unwriteable;
                      }
                else   {
                        echo is_writable( "$folder")
                             ?                                    $writeable
                             :                                                 $unwriteable;
                      }
                echo '</td>';
                echo '</tr>';
              }


Clone AbstractionParameter Count: 0Parameter Bindings

function writableCell($folder,$relative=1,$text='',$visible=1) {
  $writeable='<b><font color="green">'
             . JText::_('Writable')
             . '</font></b>';
  $unwriteable='<b><font color="red">'
               . JText::_('Unwritable')
               . '</font></b>';
  echo '<tr>';
  echo '<td class="item">';
  echo $text;
  if ($visible) {
    echo $folder
         . '/';
  }
  echo '</td>';
  echo '<td >';
  if ($relative) {
    echo is_writable( "../$folder")
         ? $writeable
         : $unwriteable;
  }
  else {
    echo is_writable( "$folder")
         ? $writeable
         : $unwriteable;
  }
  echo '</td>';
  echo '</tr>';
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None