#!/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: 23 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: '\''circle-check'\'' [2] => A comma should follow the last multiline array item. Found: '\''CRM_Event_Form_ManageEvent_Repeat::checkRegistrationForEvents'\'' [3] => A comma should follow the last multiline array item. Found: '\'''\'' [4] => A comma should follow the last multiline array item. Found: ) [5] => A comma should follow the last multiline array item. Found: '\''entity_table'\'' [6] => A comma should follow the last multiline array item. Found: $entityTable [7] => A comma should follow the last multiline array item. Found: ] [8] => A comma should follow the last multiline array item. Found: $mainEntityTable [9] => A comma should follow the last multiline array item. Found: 3 [10] => A comma should follow the last multiline array item. Found: name [11] => A comma should follow the last multiline array item. Found: '\''Could not determine if MySQL has InnoDB support. Assuming none.'\'' [12] => A comma should follow the last multiline array item. Found: '\''SystemLog'\'' [13] => 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/Contact/Form/Merge.php' 281 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' 723 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 927 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 1102 edit_at_line 'CRM/Core/BAO/RecurringEntity.php' 1132 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' 86 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' 282 edit_at_line 'tests/phpunit/api/v3/SyntaxConformanceTest.php' 356 edit_at_line 'tests/phpunit/api/v3/SyntaxConformanceTest.php' 453