Skip to content

Commit f8dbfdd

Browse files
author
vrana
committed
Convert phutil_render_tag(X, Y) to phutil_tag
Summary: Created with spatch: lang=diff - phutil_render_tag + phutil_tag (X, Y) (and null manually) Test Plan: Loaded homepage Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4500
1 parent 8aea5cd commit f8dbfdd

File tree

35 files changed

+48
-51
lines changed

35 files changed

+48
-51
lines changed

src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public function renderFileChange($old_file = null,
342342
array(
343343
'class' => 'differential-image-stage'
344344
),
345-
phutil_render_tag(
345+
phutil_tag(
346346
'img',
347347
array(
348348
'src' => $old_file->getBestURI(),
@@ -358,7 +358,7 @@ public function renderFileChange($old_file = null,
358358
array(
359359
'class' => 'differential-image-stage'
360360
),
361-
phutil_render_tag(
361+
phutil_tag(
362362
'img',
363363
array(
364364
'src' => $new_file->getBestURI(),

src/applications/differential/view/DifferentialInlineCommentEditView.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,13 @@ private function renderInputs() {
7979
$out = array();
8080
foreach ($this->inputs as $input) {
8181
list($name, $value) = $input;
82-
$out[] = phutil_render_tag(
82+
$out[] = phutil_tag(
8383
'input',
8484
array(
8585
'type' => 'hidden',
8686
'name' => $name,
8787
'value' => $value,
88-
),
89-
null);
88+
));
9089
}
9190
return implode('', $out);
9291
}

src/applications/differential/view/DifferentialRevisionListView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function render() {
130130
$src = '/rsrc/image/icon/fatcow/page_white_edit.png';
131131
$flag =
132132
'<a href="/D'.$revision->getID().'#comment-preview">'.
133-
phutil_render_tag(
133+
phutil_tag(
134134
'img',
135135
array(
136136
'src' => celerity_get_resource_uri($src),

src/applications/differential/view/DifferentialRevisionUpdateHistoryView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function render() {
9292
if ($max_id != $id) {
9393
$uniq = celerity_generate_unique_node_id();
9494
$old_checked = ($this->selectedVersusDiffID == $id);
95-
$old = phutil_render_tag(
95+
$old = phutil_tag(
9696
'input',
9797
array(
9898
'type' => 'radio',

src/applications/diffusion/controller/DiffusionBrowseFileController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ private function buildImageCorpus($file_uri) {
789789

790790
$properties->addProperty(
791791
pht('Image'),
792-
phutil_render_tag(
792+
phutil_tag(
793793
'img',
794794
array(
795795
'src' => $file_uri,

src/applications/directory/controller/PhabricatorDirectoryMainController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private function buildJumpPanel($query=null) {
301301
),
302302
'Jump Nav User Guide');
303303

304-
$jump_input = phutil_render_tag(
304+
$jump_input = phutil_tag(
305305
'input',
306306
array(
307307
'type' => 'text',

src/applications/files/controller/PhabricatorFileInfoController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function buildPropertyView(PhabricatorFile $file) {
141141
// TODO: Clean this up after Pholio (dark backgrounds, standardization,
142142
// etc.)
143143

144-
$image = phutil_render_tag(
144+
$image = phutil_tag(
145145
'img',
146146
array(
147147
'src' => $file->getViewURI(),

src/applications/macro/controller/PhabricatorMacroViewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private function buildPropertyView(
158158

159159
if ($file) {
160160
$view->addTextContent(
161-
phutil_render_tag(
161+
phutil_tag(
162162
'img',
163163
array(
164164
'src' => $file->getViewURI(),

src/applications/maniphest/controller/ManiphestBatchEditController.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,25 +79,23 @@ public function processRequest() {
7979

8080
foreach ($tasks as $task) {
8181
$form->appendChild(
82-
phutil_render_tag(
82+
phutil_tag(
8383
'input',
8484
array(
8585
'type' => 'hidden',
8686
'name' => 'batch[]',
8787
'value' => $task->getID(),
88-
),
89-
null));
88+
)));
9089
}
9190

9291
$form->appendChild(
93-
phutil_render_tag(
92+
phutil_tag(
9493
'input',
9594
array(
9695
'type' => 'hidden',
9796
'name' => 'actions',
9897
'id' => 'batch-form-actions',
99-
),
100-
null));
98+
)));
10199
$form->appendChild('<p>These tasks will be edited:</p>');
102100
$form->appendChild($list);
103101
$form->appendChild(

src/applications/maniphest/controller/ManiphestSavedQueryListController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function processRequest() {
4040
$default = $query;
4141
}
4242
$rows[] = array(
43-
phutil_render_tag(
43+
phutil_tag(
4444
'input',
4545
array(
4646
'type' => 'radio',
@@ -73,7 +73,7 @@ public function processRequest() {
7373
}
7474

7575
$rows[] = array(
76-
phutil_render_tag(
76+
phutil_tag(
7777
'input',
7878
array(
7979
'type' => 'radio',

0 commit comments

Comments
 (0)