Skip to content

Commit 07b8e96

Browse files
committed
Minor - format code
1 parent 6788494 commit 07b8e96

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

plugin/mindmap/ajax/mindmap.ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
];
4646
}
4747

48-
$resultUp = Database::update($table, $params, $whereConditions);
48+
Database::update($table, $params, $whereConditions);
4949

5050
echo 'OK';
5151
} else {

plugin/mindmap/inc/edit.form.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2+
23
/* For licensing terms, see /license.txt */
4+
35
/**
46
* Generate the form to add/edit a mindmap record.
57
*/
@@ -9,17 +11,15 @@
911
api_get_self().'?action='.$action.'&id='.$id.'&cid='.$cid.'&sid='.$sessionId
1012
);
1113

12-
if ($action == 'add' || $action == 'edit') {
14+
if ($action === 'add' || $action === 'edit') {
1315
$form->addText('title', get_lang('Title'), true);
14-
1516
$form->addText('description', get_lang('Description'), false);
16-
1717
$isPublic = $form->addElement('checkbox', 'is_public', null, $plugin->get_lang('VisibleByAll'));
1818
$isShared = $form->addElement('checkbox', 'is_shared', null, $plugin->get_lang('EditableByAll'));
1919
$form->addElement('hidden', 'mindmap_type', 'mind');
20-
2120
$form->addButtonSave(get_lang('Save'));
2221
} else {
23-
$ht = '<p style="text-align:center;" ><img alt="'.htmlentities(get_lang('Save')).'" src="img/mindmap128.png" /></p>';
22+
$ht = '<p style="text-align:center;" >
23+
<img alt="'.htmlentities(get_lang('Save')).'" src="img/mindmap128.png" /></p>';
2424
$form->addElement('static', '', '', $ht);
2525
}

plugin/mindmap/index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
2+
23
/* For license terms, see /license.txt */
4+
35
require __DIR__.'/list.php';

0 commit comments

Comments
 (0)