#!/bin/bash ## usage: bash cleanup-Drupal.Commenting.ClassComment.SpacingAfter.sh vi ## usage: bash cleanup-Drupal.Commenting.ClassComment.SpacingAfter.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.ClassComment.SpacingAfter' echo Number of lines: 51 echo Examples: 'Array ( [0] => There must be no blank lines after the class comment ) ' echo Press ENTER to begin read edit_at_line 'CRM/Activity/Import/Parser.php' 34 edit_at_line 'CRM/Badge/Page/AJAX.php' 33 edit_at_line 'CRM/Campaign/Form/Petition.php' 39 edit_at_line 'CRM/Contact/Import/Parser.php' 34 edit_at_line 'CRM/Contribute/Import/Parser.php' 34 edit_at_line 'CRM/Contribute/Page/SubscriptionStatus.php' 34 edit_at_line 'CRM/Core/BAO/FinancialTrxn.php' 34 edit_at_line 'CRM/Core/Component/Config.php' 36 edit_at_line 'CRM/Core/Component/Info.php' 36 edit_at_line 'CRM/Core/Exception.php' 40 edit_at_line 'CRM/Core/Page/AJAX/RecurringEntity.php' 13 edit_at_line 'CRM/Core/Page/Basic.php' 34 edit_at_line 'CRM/Core/Payment.php' 35 edit_at_line 'CRM/Custom/Import/Parser.php' 34 edit_at_line 'CRM/Event/Import/Parser.php' 34 edit_at_line 'CRM/Financial/BAO/ExportFormat.php' 40 edit_at_line 'CRM/Financial/BAO/FinancialAccount.php' 35 edit_at_line 'CRM/Financial/BAO/FinancialItem.php' 34 edit_at_line 'CRM/Financial/BAO/FinancialType.php' 35 edit_at_line 'CRM/Financial/BAO/FinancialTypeAccount.php' 34 edit_at_line 'CRM/Import/Parser.php' 34 edit_at_line 'CRM/Member/Import/Parser.php' 34 edit_at_line 'CRM/SMS/Page/Callback.php' 34 edit_at_line 'CRM/SMS/Provider.php' 34 edit_at_line 'CRM/Utils/API/HTMLInputCoder.php' 41 edit_at_line 'CRM/Utils/Cache/NoCache.php' 34 edit_at_line 'CRM/Utils/XML.php' 32 edit_at_line 'bin/cli.class.php' 38 edit_at_line 'bin/cli.class.php' 316 edit_at_line 'bin/cli.class.php' 360 edit_at_line 'bin/cli.class.php' 434 edit_at_line 'bin/cli.class.php' 455 edit_at_line 'tests/phpunit/api/v3/ActionScheduleTest.php' 33 edit_at_line 'tests/phpunit/api/v3/ActivityTest.php' 42 edit_at_line 'tests/phpunit/api/v3/ActivityTypeTest.php' 34 edit_at_line 'tests/phpunit/api/v3/ContributionRecurTest.php' 36 edit_at_line 'tests/phpunit/api/v3/ContributionSoftTest.php' 35 edit_at_line 'tests/phpunit/api/v3/CustomGroupTest.php' 36 edit_at_line 'tests/phpunit/api/v3/CustomValueContactTypeTest.php' 35 edit_at_line 'tests/phpunit/api/v3/DashboardContactTest.php' 32 edit_at_line 'tests/phpunit/api/v3/DashboardTest.php' 32 edit_at_line 'tests/phpunit/api/v3/GrantTest.php' 36 edit_at_line 'tests/phpunit/api/v3/GroupTest.php' 34 edit_at_line 'tests/phpunit/api/v3/ImTest.php' 36 edit_at_line 'tests/phpunit/api/v3/MembershipPaymentTest.php' 36 edit_at_line 'tests/phpunit/api/v3/ParticipantPaymentTest.php' 36 edit_at_line 'tests/phpunit/api/v3/PledgePaymentTest.php' 34 edit_at_line 'tests/phpunit/api/v3/ReportTemplateTest.php' 36 edit_at_line 'tests/phpunit/api/v3/SyntaxConformanceTest.php' 41 edit_at_line 'tests/phpunit/api/v3/TagTest.php' 36 edit_at_line 'tests/phpunit/api/v3/WebsiteTest.php' 36