Skip to content

Commit 0a62f13

Browse files
joshuaspenceepriestley
authored andcommitted
Change double quotes to single quotes.
Summary: Ran `arc lint --apply-patches --everything` over rP, mainly to change double quotes to single quotes where appropriate. These changes also validate that the `ArcanistXHPASTLinter::LINT_DOUBLE_QUOTE` rule is working as expected. Test Plan: Eyeballed it. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin, hach-que Differential Revision: https://secure.phabricator.com/D9431
1 parent 78f7832 commit 0a62f13

File tree

560 files changed

+1721
-1722
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

560 files changed

+1721
-1722
lines changed

resources/sql/patches/059.engines.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
echo "Converting {$name}...\n";
2525
queryfx(
2626
$conn,
27-
"ALTER TABLE %T.%T ENGINE=InnoDB",
27+
'ALTER TABLE %T.%T ENGINE=InnoDB',
2828
$table['db'],
2929
$table['tbl']);
3030
}

resources/sql/patches/079.nametokenindex.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
$table->beginReadLocking();
88

99
$users = $table->loadAll();
10-
echo count($users)." users to index";
10+
echo count($users).' users to index';
1111
foreach ($users as $user) {
1212
$user->updateNameTokens();
13-
echo ".";
13+
echo '.';
1414
}
1515

1616
$table->endReadLocking();

resources/sql/patches/090.forceuniqueprojectnames.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
}
6565
if (count($update) == $size) {
6666
throw new Exception(
67-
"Failed to make any progress while updating projects. Schema upgrade ".
68-
"has failed. Go manually fix your project names to be unique (they are ".
69-
"probably ridiculous?) and then try again.");
67+
'Failed to make any progress while updating projects. Schema upgrade '.
68+
'has failed. Go manually fix your project names to be unique (they are '.
69+
'probably ridiculous?) and then try again.');
7070
}
7171
}
7272

resources/sql/patches/102.heraldcleanup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
mpull($rules, 'getID'));
2525
}
2626

27-
echo "This may take a moment";
27+
echo 'This may take a moment';
2828
do {
2929
queryfx(
3030
$conn_w,
3131
'DELETE FROM %T %Q LIMIT 1000',
3232
HeraldRule::TABLE_RULE_APPLIED,
3333
$clause);
34-
echo ".";
34+
echo '.';
3535
} while ($conn_w->getAffectedRows());
3636

3737
$table->endReadLocking();

resources/sql/patches/117.repositorydescription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
$conn = id(new PhabricatorRepository())->establishConnection('w');
44
if (queryfx_one($conn, "SHOW COLUMNS FROM `repository` LIKE 'description'")) {
5-
queryfx($conn, "ALTER TABLE `repository` DROP `description`");
5+
queryfx($conn, 'ALTER TABLE `repository` DROP `description`');
66
}

resources/sql/patches/131.migraterevisionquery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
$table->beginReadLocking();
66
$conn_w = $table->establishConnection('w');
77

8-
echo "Migrating revisions";
8+
echo 'Migrating revisions';
99
do {
1010
$revisions = $table->loadAllWhere('branchName IS NULL LIMIT 1000');
1111

1212
foreach ($revisions as $revision) {
13-
echo ".";
13+
echo '.';
1414

1515
$diff = $revision->loadActiveDiff();
1616
if (!$diff) {

resources/sql/patches/20121209.xmacromigrate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
echo "Giving image macros PHIDs";
3+
echo 'Giving image macros PHIDs';
44
$table = new PhabricatorFileImageMacro();
55
$table->openTransaction();
66

@@ -9,7 +9,7 @@
99
continue;
1010
}
1111

12-
echo ".";
12+
echo '.';
1313

1414
queryfx(
1515
$macro->establishConnection('w'),

resources/sql/patches/20130201.revisionunsubscribed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
'SELECT id, phid, unsubscribed FROM differential_revision');
1212

1313
foreach ($revs as $rev) {
14-
echo ".";
14+
echo '.';
1515

1616
$unsubscribed = json_decode($rev['unsubscribed']);
1717
if (!$unsubscribed) {

resources/sql/patches/20130409.commitdrev.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
$editor->addEdge($commit->getPHID(), $commit_drev, $revision_phid);
2323
$edges++;
2424
if ($edges % 256 == 0) {
25-
echo ".";
25+
echo '.';
2626
$editor->save();
2727
$editor = id(new PhabricatorEdgeEditor())->setSuppressEvents(true);
2828
}
2929
}
3030

31-
echo ".";
31+
echo '.';
3232
$editor->save();
3333
echo "\nDone.\n";

resources/sql/patches/20130502.countdownrevamp2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
echo "Giving countdowns PHIDs";
3+
echo 'Giving countdowns PHIDs';
44
$table = new PhabricatorCountdown();
55
$table->openTransaction();
66

@@ -9,7 +9,7 @@
99
continue;
1010
}
1111

12-
echo ".";
12+
echo '.';
1313

1414
queryfx(
1515
$countdown->establishConnection('w'),

0 commit comments

Comments
 (0)