#!/bin/bash ## usage: bash cleanup-Drupal.WhiteSpace.ScopeIndent.IncorrectExact.sh vi ## usage: bash cleanup-Drupal.WhiteSpace.ScopeIndent.IncorrectExact.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.WhiteSpace.ScopeIndent.IncorrectExact' echo Number of lines: 73 echo Examples: 'Array ( [0] => Line indented incorrectly; expected 2 spaces, found 0 [1] => Line indented incorrectly; expected 6 spaces, found 8 [2] => Line indented incorrectly; expected 8 spaces, found 6 [3] => Line indented incorrectly; expected 8 spaces, found 10 [4] => Line indented incorrectly; expected 10 spaces, found 8 [5] => Line indented incorrectly; expected 4 spaces, found 0 [6] => Line indented incorrectly; expected 2 spaces, found 4 [7] => Line indented incorrectly; expected 4 spaces, found 6 ) ' echo Press ENTER to begin read edit_at_line 'CRM/Contact/BAO/ProximityQuery.php' 80 edit_at_line 'CRM/Contribute/BAO/ContributionPage.php' 834 edit_at_line 'CRM/Core/BAO/Address.php' 1311 edit_at_line 'CRM/Core/BAO/CustomGroup.php' 2089 edit_at_line 'CRM/Core/BAO/CustomGroup.php' 2090 edit_at_line 'CRM/Core/CodeGen/Specification.php' 306 edit_at_line 'CRM/Core/ManagedEntities.php' 48 edit_at_line 'CRM/Core/Payment/IATS.php' 208 edit_at_line 'CRM/Core/Region.php' 201 edit_at_line 'CRM/Core/Resources.php' 262 edit_at_line 'CRM/Event/BAO/Event.php' 2235 edit_at_line 'CRM/Extension/Manager.php' 355 edit_at_line 'CRM/Mailing/Selector/Event.php' 357 edit_at_line 'CRM/Utils/Token.php' 255 edit_at_line 'CRM/Utils/Token.php' 439 edit_at_line 'CRM/Utils/Token.php' 579 edit_at_line 'CRM/Utils/Token.php' 683 edit_at_line 'CRM/Utils/Token.php' 810 edit_at_line 'CRM/Utils/Token.php' 1553 edit_at_line 'CRM/Utils/Token.php' 1668 edit_at_line 'Civi/CiUtil/Command/AntagonistCommand.php' 13 edit_at_line 'Civi/CiUtil/Command/AntagonistCommand.php' 14 edit_at_line 'Civi/CiUtil/Command/AntagonistCommand.php' 15 edit_at_line 'Civi/CiUtil/Command/AntagonistCommand.php' 16 edit_at_line 'Civi/CiUtil/Command/AntagonistCommand.php' 17 edit_at_line 'Civi/CiUtil/Command/AntagonistCommand.php' 18 edit_at_line 'Civi/CiUtil/PHPUnitScanner.php' 14 edit_at_line 'Civi/CiUtil/PHPUnitScanner.php' 15 edit_at_line 'Civi/CiUtil/PHPUnitScanner.php' 16 edit_at_line 'Civi/CiUtil/PHPUnitScanner.php' 17 edit_at_line 'Civi/Core/Container.php' 53 edit_at_line 'Civi/Core/Container.php' 54 edit_at_line 'Civi/Core/Container.php' 55 edit_at_line 'Civi/Core/Container.php' 56 edit_at_line 'Civi/Core/Container.php' 57 edit_at_line 'Civi/Core/Container.php' 58 edit_at_line 'Civi/Core/Container.php' 59 edit_at_line 'Civi/Core/Container.php' 60 edit_at_line 'Civi/Core/Container.php' 61 edit_at_line 'Civi/Core/Container.php' 62 edit_at_line 'Civi/Core/Container.php' 63 edit_at_line 'Civi/Core/Container.php' 64 edit_at_line 'Civi/Core/Container.php' 65 edit_at_line 'Civi/Core/Container.php' 66 edit_at_line 'Civi/Core/Container.php' 67 edit_at_line 'api/v3/Membership.php' 118 edit_at_line 'api/v3/Membership.php' 120 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1431 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1436 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1437 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1449 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1455 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1456 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1462 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1468 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1483 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1489 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1490 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1496 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1502 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1527 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1533 edit_at_line 'tests/phpunit/CRM/Contact/BAO/ContactTest.php' 1539 edit_at_line 'tests/phpunit/CRM/Core/Config/MailerTest.php' 60 edit_at_line 'tests/phpunit/CRM/Core/Config/MailerTest.php' 61 edit_at_line 'tests/phpunit/CRM/Core/Config/MailerTest.php' 62 edit_at_line 'tests/phpunit/CRM/Core/Config/MailerTest.php' 68 edit_at_line 'tests/phpunit/CRM/Core/Config/MailerTest.php' 69 edit_at_line 'tests/phpunit/CRM/Core/Config/MailerTest.php' 70 edit_at_line 'tests/phpunit/CRM/Core/Config/MailerTest.php' 71 edit_at_line 'tests/phpunit/CRM/Core/Config/MailerTest.php' 72 edit_at_line 'tests/phpunit/CRM/Core/Payment/BaseIPNTest.php' 433 edit_at_line 'tests/phpunit/WebTest/Member/StandaloneAddTest.php' 253