#!/bin/bash ## usage: bash cleanup-Drupal.Commenting.FunctionComment.ParamNameNoMatch.sh vi ## usage: bash cleanup-Drupal.Commenting.FunctionComment.ParamNameNoMatch.sh joe [ -n "$1" ] && EDITOR="$1" if [ -z "$EDITOR" ]; then echo "Please provide parameter 1 (editor). Example: vi, joe" exit 1 fi function edit_at_line() { local f="$1" local l="$2" $EDITOR +$l "$f" } echo Process cleanup for 'Drupal.Commenting.FunctionComment.ParamNameNoMatch' echo Number of lines: 63 echo Examples: 'Array ( [0] => Doc comment for parameter $groupID does not match actual variable name $limit [1] => Doc comment for parameter $ids does not match actual variable name $contactId [2] => Doc comment for parameter $filter does not match actual variable name $isTest [3] => Doc comment for parameter $contactArray does not match actual variable name $contact [4] => Doc comment for parameter $is_activeValue does not match actual variable name $is_active [5] => Doc comment for parameter $inactiveNeededDo does not match actual variable name $inactiveNeeded [6] => Doc comment for parameter $entityIdEntity does not match actual variable name $entityTable [7] => Doc comment for parameter $customFields does not match actual variable name $permissionType [8] => Doc comment for parameter $fields does not match actual variable name $values [9] => Doc comment for parameter $required does not match actual variable name $attributes [10] => Doc comment for parameter $links does not match actual variable name $orderBy [11] => Doc comment for parameter $optionValueIDHas does not match actual variable name $optionValueID [12] => Doc comment for parameter $isActiveDo does not match actual variable name $isActive [13] => Doc comment for parameter $requestArgs does not match actual variable name $absolute [14] => Doc comment for parameter $printShould does not match actual variable name $outputHeader [15] => Doc comment for parameter $autoFlipWether does not match actual variable name $redirectForPerformance [16] => Doc comment for parameter $considerStatusConsider does not match actual variable name $role [17] => Doc comment for parameter $statusConsider does not match actual variable name $role [18] => Doc comment for parameter $considerRoleConsider does not match actual variable name $role [19] => Doc comment for parameter $roleConsider does not match actual variable name $role [20] => Doc comment for parameter $typeGet does not match actual variable name $onlyPublic [21] => Doc comment for parameter $eventIdReturn does not match actual variable name $onlyPublic [22] => Doc comment for parameter $onlyPublicInclude does not match actual variable name $onlyPublic [23] => Doc comment for parameter $input does not match actual variable name $duplicates [24] => Doc comment for parameter $params does not match actual variable name $contactID [25] => Doc comment for parameter $fields does not match actual variable name $params [26] => Doc comment for parameter $propName does not match actual variable name $prop [27] => Doc comment for parameter $excludeIsAdminExclude does not match actual variable name $membership [28] => Doc comment for parameter $entityTableEntity does not match actual variable name $financialTypeID [29] => Doc comment for parameter $financialTypeIDFinancial does not match actual variable name $financialTypeID [30] => Doc comment for parameter $isQuickConfigValue does not match actual variable name $isQuickConfig [31] => Doc comment for parameter $fieldType does not match actual variable name $errors [32] => Doc comment for parameter $ctx does not match actual variable name $latestVer [33] => Doc comment for parameter $startId does not match actual variable name $latestVer [34] => Doc comment for parameter $endId does not match actual variable name $latestVer [35] => Doc comment for parameter $dayParamsArray does not match actual variable name $format [36] => Doc comment for parameter $_FILES) does not match actual variable name $elementValue [37] => Doc comment for parameter $from does not match actual variable name $table [38] => Doc comment for parameter $url does not match actual variable name $htmlUrl [39] => Doc comment for parameter $skipOnHoldDon does not match actual variable name $jobID [40] => Doc comment for parameter $skipDeceasedDon does not match actual variable name $jobID [41] => Doc comment for parameter $testClasses does not match actual variable name $paths [42] => Doc comment for parameter $paramsArray does not match actual variable name $params [43] => Doc comment for parameter $paramsAn does not match actual variable name $params [44] => Doc comment for parameter $ids does not match actual variable name $params [45] => Doc comment for parameter $id does not match actual variable name $params [46] => Doc comment for parameter $entity does not match actual variable name $params [47] => Doc comment for parameter $params: does not match actual variable name $fieldInfo [48] => Doc comment for parameter $entity: does not match actual variable name $fieldInfo [49] => Doc comment for parameter $fieldName: does not match actual variable name $fieldInfo [50] => Doc comment for parameter $fieldInfo: does not match actual variable name $fieldInfo [51] => Doc comment for parameter $value: does not match actual variable name $fieldName [52] => Doc comment for parameter $options: does not match actual variable name $fieldName [53] => Doc comment for parameter $fieldName: does not match actual variable name $fieldName [54] => Doc comment for parameter $params does not match actual variable name $financialTypeId [55] => Doc comment for parameter $params does not match actual variable name $totalCount [56] => Doc comment for parameter $parentElement does not match actual variable name $dialog ) ' echo Press ENTER to begin read edit_at_line 'CRM/Contact/BAO/GroupContactCache.php' 122 edit_at_line 'CRM/Contact/BAO/Relationship.php' 195 edit_at_line 'CRM/Contribute/BAO/ContributionSoft.php' 244 edit_at_line 'CRM/Core/BAO/CMSUser.php' 426 edit_at_line 'CRM/Core/BAO/CustomGroup.php' 246 edit_at_line 'CRM/Core/BAO/CustomOption.php' 68 edit_at_line 'CRM/Core/BAO/Discount.php' 88 edit_at_line 'CRM/Core/BAO/UFGroup.php' 433 edit_at_line 'CRM/Core/Form/RecurringEntity.php' 238 edit_at_line 'CRM/Core/Form.php' 1291 edit_at_line 'CRM/Core/OptionValue.php' 68 edit_at_line 'CRM/Core/OptionValue.php' 183 edit_at_line 'CRM/Core/OptionValue.php' 391 edit_at_line 'CRM/Core/Page/Redirect.php' 28 edit_at_line 'CRM/Core/Report/Excel.php' 46 edit_at_line 'CRM/Dedupe/Merger.php' 568 edit_at_line 'CRM/Dedupe/Merger.php' 614 edit_at_line 'CRM/Event/BAO/Event.php' 590 edit_at_line 'CRM/Event/BAO/Event.php' 592 edit_at_line 'CRM/Event/BAO/Event.php' 594 edit_at_line 'CRM/Event/BAO/Event.php' 596 edit_at_line 'CRM/Event/BAO/Event.php' 724 edit_at_line 'CRM/Event/BAO/Event.php' 726 edit_at_line 'CRM/Event/BAO/Event.php' 730 edit_at_line 'CRM/Event/BAO/Participant.php' 942 edit_at_line 'CRM/Event/Form/Registration.php' 829 edit_at_line 'CRM/Event/Form/Task/AddToGroup.php' 181 edit_at_line 'CRM/Mailing/BAO/Mailing.php' 901 edit_at_line 'CRM/Member/BAO/MembershipStatus.php' 229 edit_at_line 'CRM/Price/BAO/PriceFieldValue.php' 251 edit_at_line 'CRM/Price/BAO/PriceFieldValue.php' 253 edit_at_line 'CRM/Price/BAO/PriceSet.php' 1324 edit_at_line 'CRM/UF/Form/Field.php' 621 edit_at_line 'CRM/Upgrade/Incremental/php/FourFour.php' 360 edit_at_line 'CRM/Upgrade/Incremental/php/FourFour.php' 361 edit_at_line 'CRM/Upgrade/Incremental/php/FourFour.php' 362 edit_at_line 'CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php' 1144 edit_at_line 'CRM/Utils/Date.php' 731 edit_at_line 'CRM/Utils/Rule.php' 560 edit_at_line 'CRM/Utils/Rule.php' 577 edit_at_line 'CRM/Utils/Rule.php' 607 edit_at_line 'CRM/Utils/SQL/Insert.php' 56 edit_at_line 'CRM/Utils/String.php' 789 edit_at_line 'CRM/Utils/Token.php' 1174 edit_at_line 'CRM/Utils/Token.php' 1176 edit_at_line 'Civi/CiUtil/PHPUnitScanner.php' 70 edit_at_line 'api/v3/Event.php' 194 edit_at_line 'api/v3/File.php' 104 edit_at_line 'api/v3/MailingAB.php' 48 edit_at_line 'api/v3/MailingAB.php' 61 edit_at_line 'api/v3/PaymentProcessorType.php' 102 edit_at_line 'api/v3/RelationshipType.php' 109 edit_at_line 'api/v3/utils.php' 919 edit_at_line 'api/v3/utils.php' 1924 edit_at_line 'api/v3/utils.php' 1925 edit_at_line 'api/v3/utils.php' 1926 edit_at_line 'api/v3/utils.php' 1927 edit_at_line 'api/v3/utils.php' 1968 edit_at_line 'api/v3/utils.php' 1969 edit_at_line 'api/v3/utils.php' 1970 edit_at_line 'tests/phpunit/api/v3/TaxContributionPageTest.php' 507 edit_at_line 'tests/phpunit/CiviTest/CiviUnitTestCase.php' 1830 edit_at_line 'tests/phpunit/WebTest/Profile/MultiRecordProfileAddTest.php' 375