#!/bin/bash ## usage: bash cleanup-Drupal.Array.Array.sh vi ## usage: bash cleanup-Drupal.Array.Array.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' echo Number of lines: 22 echo Examples: 'Array ( [0] => A comma should follow the last multiline array item. Found: FALSE [1] => A comma should follow the last multiline array item. Found: '\''CRM_Event_Form_ManageEvent_Repeat::checkRegistrationForEvents'\'' [2] => A comma should follow the last multiline array item. Found: '\'''\'' [3] => A comma should follow the last multiline array item. Found: ) [4] => A comma should follow the last multiline array item. Found: '\''entity_table'\'' [5] => A comma should follow the last multiline array item. Found: $entityTable [6] => A comma should follow the last multiline array item. Found: ] [7] => A comma should follow the last multiline array item. Found: $mainEntityTable [8] => A comma should follow the last multiline array item. Found: 3 [9] => A comma should follow the last multiline array item. Found: name [10] => A comma should follow the last multiline array item. Found: '\''Could not determine if MySQL has InnoDB support. Assuming none.'\'' [11] => A comma should follow the last multiline array item. Found: '\''SystemLog'\'' [12] => A comma should follow the last multiline array item. Found: '\''amount'\'' ) ' echo Press ENTER to begin read edit_at_line 'CRM/ACL/Form/WordPress/Permissions.php' 94 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 66 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 71 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 72 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 80 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 84 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 110 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 124 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 186 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 718 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 922 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 1095 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 1125 edit_at_line 'CRM/Financial/Form/FinancialTypeAccount.php' 174 edit_at_line 'CRM/Financial/Form/FinancialTypeAccount.php' 196 edit_at_line 'Civi/CCase/Analyzer.php' 87 edit_at_line 'Civi/CiUtil/PHPUnitScanner.php' 84 edit_at_line 'Civi/Core/Transaction/Frame.php' 170 edit_at_line 'Civi/Core/Transaction/Frame.php' 176 edit_at_line 'Civi/Install/Requirements.php' 281 edit_at_line 'tests/phpunit/api/v3/SyntaxConformanceTest.php' 354 edit_at_line 'tests/phpunit/api/v3/SyntaxConformanceTest.php' 451