CloneSet9


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
91601.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110201
administrator/components/com_categories/controllers/category.php
210218
administrator/components/com_content/controllers/article.php
310205
administrator/components/com_menus/controllers/item.php
49134
administrator/components/com_menus/controllers/menu.php
59182
administrator/components/com_redirect/controllers/link.php
69138
administrator/components/com_users/controllers/group.php
79139
administrator/components/com_users/controllers/level.php
89136
administrator/components/com_users/controllers/user.php
98165
administrator/components/com_weblinks/controllers/weblink.php
10998
components/com_users/controllers/profile.php
11998
components/com_users/controllers/registration.php
128115
components/com_users/controllers/user.php
13945
installation/controllers/setup.php
14988
installation/controllers/setup.php
159143
installation/controllers/setup.php
169185
installation/controllers/setup.php
Clone Instance
1
Line Count
10
Source Line
201
Source File
administrator/components/com_categories/controllers/category.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
2
Line Count
10
Source Line
218
Source File
administrator/components/com_content/controllers/article.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
3
Line Count
10
Source Line
205
Source File
administrator/components/com_menus/controllers/item.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
4
Line Count
9
Source Line
134
Source File
administrator/components/com_menus/controllers/menu.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
5
Line Count
9
Source Line
182
Source File
administrator/components/com_redirect/controllers/link.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
6
Line Count
9
Source Line
138
Source File
administrator/components/com_users/controllers/group.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
7
Line Count
9
Source Line
139
Source File
administrator/components/com_users/controllers/level.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
8
Line Count
9
Source Line
136
Source File
administrator/components/com_users/controllers/user.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
9
Line Count
8
Source Line
165
Source File
administrator/components/com_weblinks/controllers/weblink.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
10
Line Count
9
Source Line
98
Source File
components/com_users/controllers/profile.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
11
Line Count
9
Source Line
98
Source File
components/com_users/controllers/registration.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
12
Line Count
8
Source Line
115
Source File
components/com_users/controllers/user.php

                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
13
Line Count
9
Source Line
45
Source File
installation/controllers/setup.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
14
Line Count
9
Source Line
88
Source File
installation/controllers/setup.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
15
Line Count
9
Source Line
143
Source File
installation/controllers/setup.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone Instance
16
Line Count
9
Source Line
185
Source File
installation/controllers/setup.php

                        // Get the validation messages.
                        $errors=  $model->getErrors();

                        // Push up to three validation messages out to the user.
                        for ($i=  0, $n=  count($errors); $i<  $n
                                                          &&         $i<  3; $i ++) {
                                if (JError::isError($errors[$i])) {
                                        $app->enqueueMessage($errors[$i]->getMessage(), 'notice');
                                      }
                                else   {
                                        $app->enqueueMessage($errors[$i], 'notice');
                                      }
                              }


Clone AbstractionParameter Count: 0Parameter Bindings

// Get the validation messages.
$errors=$model->getErrors();
// Push up to three validation messages out to the user.
for ($i=0,$n=count($errors); $i<$n
                             && $i<3; $i ++) {
  if (JError::isError($errors[$i])) {
    $app->enqueueMessage($errors[$i]->getMessage(),'notice');
  }
  else {
    $app->enqueueMessage($errors[$i],'notice');
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None