From 3c500b3e7318586306a68f8a9c7e62d5b6069693 Mon Sep 17 00:00:00 2001 From: Alex Marin Date: Tue, 1 May 2012 20:35:23 +0300 Subject: [PATCH] Export yaml coding style: wrap long lines --- libraries/export/yaml.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/libraries/export/yaml.php b/libraries/export/yaml.php index 4f409adb13..6882afa021 100644 --- a/libraries/export/yaml.php +++ b/libraries/export/yaml.php @@ -20,12 +20,17 @@ if (isset($plugin_list)) { 'mime_type' => 'text/yaml', 'force_file' => true, 'options' => array( - array('type' => 'begin_group', 'name' => 'general_opts'), + array( + 'type' => 'begin_group', + 'name' => 'general_opts' + ), array( 'type' => 'hidden', 'name' => 'structure_or_data', ), - array('type' => 'end_group') + array( + 'type' => 'end_group' + ) ), 'options_text' => __('Options'), ); @@ -57,7 +62,9 @@ if (isset($plugin_list)) { */ function PMA_exportHeader() { - PMA_exportOutputHandler('%YAML 1.1' . $GLOBALS['crlf'] . '---' . $GLOBALS['crlf']); + PMA_exportOutputHandler( + '%YAML 1.1' . $GLOBALS['crlf'] . '---' . $GLOBALS['crlf'] + ); return true; } @@ -156,7 +163,11 @@ if (isset($plugin_list)) { continue; } - $record[$i] = str_replace(array('\\', '"', "\n", "\r"), array('\\\\', '\"', '\n', '\r'), $record[$i]); + $record[$i] = str_replace( + array('\\', '"', "\n", "\r"), + array('\\\\', '\"', '\n', '\r'), + $record[$i] + ); $buffer .= ' ' . $column . ': "' . $record[$i] . '"' . $crlf; }