#!/bin/bash ## usage: bash cleanup-Drupal.Array.Array.ArrayClosingIndentation.sh vi ## usage: bash cleanup-Drupal.Array.Array.ArrayClosingIndentation.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.Array.Array.ArrayClosingIndentation' echo Number of lines: 143 echo Examples: 'Array ( [0] => Array closing indentation error, expected 10 spaces but found 11 [1] => Array closing indentation error, expected 6 spaces but found 8 [2] => Array closing indentation error, expected 10 spaces but found 16 [3] => Array closing indentation error, expected 6 spaces but found 12 [4] => Array closing indentation error, expected 8 spaces but found 10 [5] => Array closing indentation error, expected 4 spaces but found 6 [6] => Array closing indentation error, expected 10 spaces but found 12 [7] => Array closing indentation error, expected 12 spaces but found 18 [8] => Array closing indentation error, expected 6 spaces but found 32 [9] => Array closing indentation error, expected 21 spaces but found 27 [10] => Array closing indentation error, expected 8 spaces but found 9 [11] => Array closing indentation error, expected 12 spaces but found 14 [12] => Array closing indentation error, expected 4 spaces but found 25 [13] => Array closing indentation error, expected 9 spaces but found 8 [14] => Array closing indentation error, expected 10 spaces but found 9 [15] => Array closing indentation error, expected 12 spaces but found 13 [16] => Array closing indentation error, expected 10 spaces but found 8 [17] => Array closing indentation error, expected 16 spaces but found 18 [18] => Array closing indentation error, expected 11 spaces but found 10 [19] => Array closing indentation error, expected 4 spaces but found 5 [20] => Array closing indentation error, expected 12 spaces but found 25 [21] => Array closing indentation error, expected 4 spaces but found 20 [22] => Array closing indentation error, expected 2 spaces but found 6 [23] => Array closing indentation error, expected 10 spaces but found 25 [24] => Array closing indentation error, expected 12 spaces but found 28 [25] => Array closing indentation error, expected 26 spaces but found 44 [26] => Array closing indentation error, expected 2 spaces but found 3 [27] => Array closing indentation error, expected 1 spaces but found 2 [28] => Array closing indentation error, expected 2 spaces but found 4 [29] => Array closing indentation error, expected 4 spaces but found 2 [30] => Array closing indentation error, expected 0 spaces but found 1 [31] => Array closing indentation error, expected 4 spaces but found 9 [32] => Array closing indentation error, expected 6 spaces but found 4 [33] => Array closing indentation error, expected 6 spaces but found 7 [34] => Array closing indentation error, expected 5 spaces but found 6 [35] => Array closing indentation error, expected 4 spaces but found 10 ) ' echo Press ENTER to begin read edit_at_line 'CRM/Activity/BAO/ICalendar.php' 100 edit_at_line 'CRM/Admin/Form/Preferences/Contribute.php' 81 edit_at_line 'CRM/Campaign/BAO/Survey.php' 854 edit_at_line 'CRM/Campaign/Form/Survey.php' 135 edit_at_line 'CRM/Campaign/Info.php' 134 edit_at_line 'CRM/Campaign/Page/DashBoard.php' 471 edit_at_line 'CRM/Campaign/Page/Vote.php' 101 edit_at_line 'CRM/Campaign/Task.php' 79 edit_at_line 'CRM/Case/Form/Activity.php' 286 edit_at_line 'CRM/Case/Info.php' 200 edit_at_line 'CRM/Contact/Page/View/UserDashBoard.php' 248 edit_at_line 'CRM/Contribute/Form/CancelSubscription.php' 304 edit_at_line 'CRM/Contribute/Form/ContributionPage/TabHeader.php' 57 edit_at_line 'CRM/Contribute/Form/ContributionPage/Widget.php' 71 edit_at_line 'CRM/Contribute/Form/ContributionPage/Widget.php' 89 edit_at_line 'CRM/Contribute/Form/Task/PDF.php' 276 edit_at_line 'CRM/Contribute/Form/UpdateSubscription.php' 220 edit_at_line 'CRM/Core/BAO/Tag.php' 250 edit_at_line 'CRM/Core/BAO/Tag.php' 259 edit_at_line 'CRM/Core/BAO/Tag.php' 277 edit_at_line 'CRM/Core/BAO/Tag.php' 290 edit_at_line 'CRM/Core/BAO/UFField.php' 819 edit_at_line 'CRM/Core/BAO/UFGroup.php' 2165 edit_at_line 'CRM/Core/Block.php' 392 edit_at_line 'CRM/Core/Block.php' 401 edit_at_line 'CRM/Core/Block.php' 411 edit_at_line 'CRM/Core/Form/RecurringEntity.php' 177 edit_at_line 'CRM/Core/Form/RecurringEntity.php' 189 edit_at_line 'CRM/Core/Form/RecurringEntity.php' 199 edit_at_line 'CRM/Core/Form/RecurringEntity.php' 205 edit_at_line 'CRM/Core/I18n/SchemaStructure_4_2_alpha1.php' 71 edit_at_line 'CRM/Core/I18n/SchemaStructure_4_2_alpha1.php' 104 edit_at_line 'CRM/Core/I18n/SchemaStructure_4_2_alpha1.php' 177 edit_at_line 'CRM/Core/I18n/SchemaStructure_4_2_alpha1.php' 178 edit_at_line 'CRM/Core/I18n/SchemaStructure_4_2_alpha1.php' 199 edit_at_line 'CRM/Core/I18n/SchemaStructure_4_2_alpha1.php' 207 edit_at_line 'CRM/Core/I18n/SchemaStructure_4_2_alpha1.php' 218 edit_at_line 'CRM/Core/I18n/SchemaStructure_4_2_alpha1.php' 219 edit_at_line 'CRM/Core/Page/AJAX/Location.php' 84 edit_at_line 'CRM/Core/Page/AJAX/Location.php' 92 edit_at_line 'CRM/Core/Page/AJAX/Location.php' 100 edit_at_line 'CRM/Core/Page/AJAX/Location.php' 104 edit_at_line 'CRM/Core/Page/AJAX/Location.php' 116 edit_at_line 'CRM/Core/Page/AJAX/Location.php' 120 edit_at_line 'CRM/Core/Page/AJAX/Location.php' 135 edit_at_line 'CRM/Core/Page/AJAX/Location.php' 148 edit_at_line 'CRM/Core/Payment.php' 306 edit_at_line 'CRM/Core/Payment.php' 358 edit_at_line 'CRM/Core/Payment.php' 378 edit_at_line 'CRM/Core/Resources.php' 747 edit_at_line 'CRM/Core/SelectValues.php' 884 edit_at_line 'CRM/Custom/Form/MoveField.php' 178 edit_at_line 'CRM/Event/Form/ManageEvent/Fee.php' 777 edit_at_line 'CRM/Event/Form/ManageEvent/TabHeader.php' 58 edit_at_line 'CRM/Event/Form/Registration/AdditionalParticipant.php' 345 edit_at_line 'CRM/Event/Form/Registration/ParticipantConfirm.php' 135 edit_at_line 'CRM/Event/Form/Registration/ParticipantConfirm.php' 150 edit_at_line 'CRM/Event/Task.php' 79 edit_at_line 'CRM/Financial/BAO/FinancialAccount.php' 137 edit_at_line 'CRM/Grant/BAO/Grant.php' 411 edit_at_line 'CRM/Grant/Info.php' 136 edit_at_line 'CRM/Grant/Task.php' 75 edit_at_line 'CRM/Logging/ReportDetail.php' 83 edit_at_line 'CRM/Logging/Schema.php' 417 edit_at_line 'CRM/Mailing/BAO/Mailing.php' 933 edit_at_line 'CRM/Mailing/Selector/Event.php' 216 edit_at_line 'CRM/Mailing/Selector/Event.php' 225 edit_at_line 'CRM/Mailing/Selector/Event.php' 234 edit_at_line 'CRM/Member/Form/Task/Batch.php' 219 edit_at_line 'CRM/Pledge/Info.php' 176 edit_at_line 'CRM/Pledge/Task.php' 75 edit_at_line 'CRM/Profile/Form.php' 1076 edit_at_line 'CRM/Report/Form/Activity.php' 256 edit_at_line 'CRM/Report/Form/ActivitySummary.php' 149 edit_at_line 'CRM/Report/Form/Campaign/SurveyDetails.php' 103 edit_at_line 'CRM/Report/Form/Contact/Relationship.php' 228 edit_at_line 'CRM/Report/Form/Contact/Summary.php' 159 edit_at_line 'CRM/Report/Form/Contribute/Detail.php' 288 edit_at_line 'CRM/Report/Form/Contribute/History.php' 134 edit_at_line 'CRM/Report/Form/Contribute/Lybunt.php' 122 edit_at_line 'CRM/Report/Form/Contribute/Lybunt.php' 168 edit_at_line 'CRM/Report/Form/Contribute/Summary.php' 243 edit_at_line 'CRM/Report/Form/Contribute/Sybunt.php' 114 edit_at_line 'CRM/Report/Form/Contribute/Sybunt.php' 160 edit_at_line 'CRM/Report/Form/Contribute/TopDonor.php' 80 edit_at_line 'CRM/Report/Form/Contribute/TopDonor.php' 153 edit_at_line 'CRM/Report/Form/Mailing/Summary.php' 454 edit_at_line 'CRM/Report/Form/Member/ContributionDetail.php' 339 edit_at_line 'CRM/Report/Form/Pledge/Detail.php' 176 edit_at_line 'CRM/Report/Form/Pledge/Summary.php' 171 edit_at_line 'CRM/Report/Form.php' 1115 edit_at_line 'CRM/SMS/Provider.php' 215 edit_at_line 'CRM/SMS/Provider.php' 221 edit_at_line 'CRM/Upgrade/Incremental/php/FourTwo.php' 183 edit_at_line 'CRM/Upgrade/Incremental/php/FourTwo.php' 407 edit_at_line 'CRM/Upgrade/Incremental/php/ThreeFour.php' 319 edit_at_line 'CRM/Upgrade/Snapshot/V4p2/Price/BAO/Field.php' 343 edit_at_line 'CRM/Upgrade/Snapshot/V4p2/Price/BAO/Field.php' 351 edit_at_line 'CRM/Utils/Rule.php' 434 edit_at_line 'api/v3/Constant.php' 192 edit_at_line 'api/v3/Contact.php' 88 edit_at_line 'api/v3/Profile.php' 687 edit_at_line 'api/v3/Setting.php' 50 edit_at_line 'api/v3/Setting.php' 227 edit_at_line 'api/v3/Setting.php' 231 edit_at_line 'settings/Core.setting.php' 98 edit_at_line 'settings/Core.setting.php' 106 edit_at_line 'settings/Core.setting.php' 296 edit_at_line 'settings/Core.setting.php' 565 edit_at_line 'settings/Event.setting.php' 53 edit_at_line 'settings/Multisite.setting.php' 92 edit_at_line 'tests/phpunit/api/v3/ContactTypeTest.php' 233 edit_at_line 'tests/phpunit/api/v3/ContributionTest.php' 677 edit_at_line 'tests/phpunit/api/v3/ContributionTest.php' 699 edit_at_line 'tests/phpunit/api/v3/CustomFieldTest.php' 373 edit_at_line 'tests/phpunit/api/v3/GrantTest.php' 94 edit_at_line 'tests/phpunit/api/v3/PriceFieldValueTest.php' 77 edit_at_line 'tests/phpunit/api/v3/PriceFieldValueTest.php' 172 edit_at_line 'tests/phpunit/api/v3/PriceFieldValueTest.php' 188 edit_at_line 'tests/phpunit/api/v3/PriceFieldValueTest.php' 198 edit_at_line 'tests/phpunit/api/v3/ProfileTest.php' 886 edit_at_line 'tests/phpunit/api/v3/settings/test.setting.php' 62 edit_at_line 'tests/phpunit/api/v3/UFGroupTest.php' 108 edit_at_line 'tests/phpunit/api/v3/UFMatchTest.php' 73 edit_at_line 'tests/phpunit/api/v3/WebsiteTest.php' 95 edit_at_line 'tests/phpunit/CRM/Batch/Form/EntryTest.php' 206 edit_at_line 'tests/phpunit/CRM/Batch/Form/EntryTest.php' 235 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1435 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1454 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1490 edit_at_line 'tests/phpunit/CRM/Contact/BAO/QueryTest.php' 157 edit_at_line 'tests/phpunit/CRM/Contact/BAO/QueryTest.php' 162 edit_at_line 'tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTestDataProvider.php' 89 edit_at_line 'tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTestDataProvider.php' 130 edit_at_line 'tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTestDataProvider.php' 160 edit_at_line 'tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTestDataProvider.php' 168 edit_at_line 'tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTestDataProvider.php' 176 edit_at_line 'tests/phpunit/CRM/Core/PseudoConstantTest.php' 533 edit_at_line 'tests/phpunit/WebTest/Event/AddPricesetTest.php' 145 edit_at_line 'tests/phpunit/WebTest/Import/MultipleRelationshipTest.php' 123 edit_at_line 'tests/phpunit/WebTest/Import/MultipleRelationshipTest.php' 163 edit_at_line 'tests/phpunit/WebTest/Member/OnlineMembershipAddPricesetTest.php' 140 edit_at_line 'tests/phpunit/WebTest/Report/LoggingReportTest.php' 246