From 4814827f80cbb0f4d95a6139ea51376d1b7ca51b Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 3 Jul 2015 13:28:02 +0200 Subject: [PATCH] Minor - format code. --- main/inc/ajax/lp.ajax.php | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/main/inc/ajax/lp.ajax.php b/main/inc/ajax/lp.ajax.php index 1669bf4910..d94bdd7511 100755 --- a/main/inc/ajax/lp.ajax.php +++ b/main/inc/ajax/lp.ajax.php @@ -1,5 +1,6 @@ set_modified_on(); $title = $_REQUEST['title']; if ($_REQUEST['type'] == TOOL_QUIZ) { $title = Exercise::format_title_variable($title); } - echo $_SESSION['oLP']->add_item($_REQUEST['parent_id'], $_REQUEST['previous_id'], $_REQUEST['type'], $_REQUEST['id'], $title, null); + echo $_SESSION['oLP']->add_item( + $_REQUEST['parent_id'], + $_REQUEST['previous_id'], + $_REQUEST['type'], + $_REQUEST['id'], + $title, + null + ); } } break; @@ -95,7 +103,16 @@ switch ($action) { $params['next_item_id'] = $LP_item->next_item_id; $params['parent_item_id'] = $LP_item->parent_item_id; - Database::update($tbl_lp_item, $params, array('id = ? AND c_id = ? '=> array(intval($LP_item->id), $course_id))); + Database::update( + $tbl_lp_item, + $params, + array( + 'id = ? AND c_id = ? ' => array( + intval($LP_item->id), + $course_id, + ), + ) + ); } Display::display_confirmation_message(get_lang('Saved')); }