#!/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: 73 echo Examples: 'Array ( [0] => Doc comment for parameter $context: does not match actual variable name $props [1] => Doc comment for parameter $props: does not match actual variable name $props [2] => Doc comment for parameter $groupID does not match actual variable name $limit [3] => Doc comment for parameter $ids does not match actual variable name $contactId [4] => Doc comment for parameter $params: does not match actual variable name $setDefault [5] => Doc comment for parameter $setDefault: does not match actual variable name $setDefault [6] => Doc comment for parameter $filter does not match actual variable name $isTest [7] => Doc comment for parameter $contactArray does not match actual variable name $contact [8] => Doc comment for parameter $is_activeValue does not match actual variable name $is_active [9] => Doc comment for parameter $inactiveNeededDo does not match actual variable name $inactiveNeeded [10] => Doc comment for parameter $entityIdEntity does not match actual variable name $entityTable [11] => Doc comment for parameter $gid: does not match actual variable name $defaults [12] => Doc comment for parameter $defaults: does not match actual variable name $defaults [13] => Doc comment for parameter $customFields does not match actual variable name $permissionType [14] => Doc comment for parameter $fields does not match actual variable name $values [15] => Doc comment for parameter $required does not match actual variable name $attributes [16] => Doc comment for parameter $links does not match actual variable name $orderBy [17] => Doc comment for parameter $optionValueIDHas does not match actual variable name $optionValueID [18] => Doc comment for parameter $isActiveDo does not match actual variable name $isActive [19] => Doc comment for parameter $requestArgs does not match actual variable name $absolute [20] => Doc comment for parameter $context: does not match actual variable name $context [21] => Doc comment for parameter $printShould does not match actual variable name $outputHeader [22] => Doc comment for parameter $autoFlipWether does not match actual variable name $redirectForPerformance [23] => Doc comment for parameter $considerStatusConsider does not match actual variable name $role [24] => Doc comment for parameter $statusConsider does not match actual variable name $role [25] => Doc comment for parameter $considerRoleConsider does not match actual variable name $role [26] => Doc comment for parameter $roleConsider does not match actual variable name $role [27] => Doc comment for parameter $typeGet does not match actual variable name $onlyPublic [28] => Doc comment for parameter $eventIdReturn does not match actual variable name $onlyPublic [29] => Doc comment for parameter $onlyPublicInclude does not match actual variable name $onlyPublic [30] => Doc comment for parameter $input does not match actual variable name $duplicates [31] => Doc comment for parameter $params does not match actual variable name $contactID [32] => Doc comment for parameter $fields does not match actual variable name $params [33] => Doc comment for parameter $enableLogging: does not match actual variable name $enableLogging [34] => Doc comment for parameter $propName does not match actual variable name $prop [35] => Doc comment for parameter $excludeIsAdminExclude does not match actual variable name $membership [36] => Doc comment for parameter $entityTableEntity does not match actual variable name $financialTypeID [37] => Doc comment for parameter $financialTypeIDFinancial does not match actual variable name $financialTypeID [38] => Doc comment for parameter $isQuickConfigValue does not match actual variable name $isQuickConfig [39] => Doc comment for parameter $fieldType does not match actual variable name $errors [40] => Doc comment for parameter $ctx does not match actual variable name $latestVer [41] => Doc comment for parameter $startId does not match actual variable name $latestVer [42] => Doc comment for parameter $endId does not match actual variable name $latestVer [43] => Doc comment for parameter $dayParamsArray does not match actual variable name $format [44] => Doc comment for parameter $_FILES) does not match actual variable name $elementValue [45] => Doc comment for parameter $from does not match actual variable name $table [46] => Doc comment for parameter $url does not match actual variable name $htmlUrl [47] => Doc comment for parameter $skipOnHoldDon'\''t does not match actual variable name $jobID [48] => Doc comment for parameter $skipDeceasedDon'\''t does not match actual variable name $jobID [49] => Doc comment for parameter $testClasses does not match actual variable name $paths [50] => Doc comment for parameter $paramsArray does not match actual variable name $params [51] => Doc comment for parameter $paramsAn does not match actual variable name $params [52] => Doc comment for parameter $ids does not match actual variable name $params [53] => Doc comment for parameter $id does not match actual variable name $params [54] => Doc comment for parameter $entity does not match actual variable name $params [55] => Doc comment for parameter $params: does not match actual variable name $fieldInfo [56] => Doc comment for parameter $entity: does not match actual variable name $fieldInfo [57] => Doc comment for parameter $fieldName: does not match actual variable name $fieldInfo [58] => Doc comment for parameter $fieldInfo: does not match actual variable name $fieldInfo [59] => Doc comment for parameter $value: does not match actual variable name $fieldName [60] => Doc comment for parameter $options: does not match actual variable name $fieldName [61] => Doc comment for parameter $fieldName: does not match actual variable name $fieldName [62] => Doc comment for parameter $params does not match actual variable name $financialTypeId [63] => Doc comment for parameter $params does not match actual variable name $totalCount [64] => Doc comment for parameter $parentElement does not match actual variable name $dialog ) ' echo Press ENTER to begin read edit_at_line 'CRM/Campaign/BAO/Survey.php' 1134 edit_at_line 'CRM/Campaign/BAO/Survey.php' 1135 edit_at_line 'CRM/Contact/BAO/GroupContactCache.php' 119 edit_at_line 'CRM/Contact/BAO/Relationship.php' 195 edit_at_line 'CRM/Contribute/BAO/ContributionPage.php' 818 edit_at_line 'CRM/Contribute/BAO/ContributionPage.php' 819 edit_at_line 'CRM/Contribute/BAO/ContributionPage.php' 839 edit_at_line 'CRM/Contribute/BAO/ContributionPage.php' 840 edit_at_line 'CRM/Contribute/BAO/ContributionSoft.php' 242 edit_at_line 'CRM/Core/BAO/CMSUser.php' 423 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' 87 edit_at_line 'CRM/Core/BAO/UFField.php' 870 edit_at_line 'CRM/Core/BAO/UFField.php' 871 edit_at_line 'CRM/Core/BAO/UFGroup.php' 427 edit_at_line 'CRM/Core/Form/RecurringEntity.php' 234 edit_at_line 'CRM/Core/Form.php' 1279 edit_at_line 'CRM/Core/OptionValue.php' 68 edit_at_line 'CRM/Core/OptionValue.php' 182 edit_at_line 'CRM/Core/OptionValue.php' 384 edit_at_line 'CRM/Core/Page/Redirect.php' 28 edit_at_line 'CRM/Core/PseudoConstant.php' 231 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' 723 edit_at_line 'CRM/Event/BAO/Event.php' 725 edit_at_line 'CRM/Event/BAO/Event.php' 729 edit_at_line 'CRM/Event/BAO/Participant.php' 937 edit_at_line 'CRM/Event/Form/Registration.php' 823 edit_at_line 'CRM/Event/Form/Task/AddToGroup.php' 180 edit_at_line 'CRM/Logging/Schema.php' 197 edit_at_line 'CRM/Mailing/BAO/Mailing.php' 894 edit_at_line 'CRM/Member/BAO/MembershipStatus.php' 227 edit_at_line 'CRM/Price/BAO/PriceFieldValue.php' 250 edit_at_line 'CRM/Price/BAO/PriceFieldValue.php' 252 edit_at_line 'CRM/Price/BAO/PriceSet.php' 1314 edit_at_line 'CRM/UF/Form/Field.php' 615 edit_at_line 'CRM/Upgrade/Incremental/php/FourFour.php' 357 edit_at_line 'CRM/Upgrade/Incremental/php/FourFour.php' 358 edit_at_line 'CRM/Upgrade/Incremental/php/FourFour.php' 359 edit_at_line 'CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php' 1136 edit_at_line 'CRM/Utils/Date.php' 723 edit_at_line 'CRM/Utils/Rule.php' 558 edit_at_line 'CRM/Utils/Rule.php' 574 edit_at_line 'CRM/Utils/Rule.php' 603 edit_at_line 'CRM/Utils/SQL/Insert.php' 56 edit_at_line 'CRM/Utils/String.php' 761 edit_at_line 'CRM/Utils/Token.php' 1151 edit_at_line 'CRM/Utils/Token.php' 1153 edit_at_line 'Civi/CiUtil/PHPUnitScanner.php' 68 edit_at_line 'api/v3/Event.php' 192 edit_at_line 'api/v3/File.php' 102 edit_at_line 'api/v3/MailingAB.php' 48 edit_at_line 'api/v3/MailingAB.php' 60 edit_at_line 'api/v3/PaymentProcessorType.php' 102 edit_at_line 'api/v3/RelationshipType.php' 109 edit_at_line 'api/v3/utils.php' 915 edit_at_line 'api/v3/utils.php' 1919 edit_at_line 'api/v3/utils.php' 1920 edit_at_line 'api/v3/utils.php' 1921 edit_at_line 'api/v3/utils.php' 1922 edit_at_line 'api/v3/utils.php' 1963 edit_at_line 'api/v3/utils.php' 1964 edit_at_line 'api/v3/utils.php' 1965 edit_at_line 'tests/phpunit/api/v3/TaxContributionPageTest.php' 506 edit_at_line 'tests/phpunit/CiviTest/CiviUnitTestCase.php' 1813 edit_at_line 'tests/phpunit/WebTest/Profile/MultiRecordProfileAddTest.php' 370