[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0RC1-363-gb47903e

Michal Čihař nijel at users.sourceforge.net
Mon Apr 18 17:01:43 CEST 2011


The branch, master has been updated
       via  b47903e03fc2f103b10b59e9b988a4ced72e00f6 (commit)
      from  ee5ff995fbf02a9d9e52de5375de862d67a9b3bf (commit)


- Log -----------------------------------------------------------------
commit b47903e03fc2f103b10b59e9b988a4ced72e00f6
Author: Michal Čihař <mcihar at novell.com>
Date:   Mon Apr 18 16:44:27 2011 +0200

    Fix indentation

-----------------------------------------------------------------------

Summary of changes:
 libraries/sqlparser.lib.php |   52 +++++++++++++++++++++---------------------
 1 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php
index e5d2f6e..893aef0 100644
--- a/libraries/sqlparser.lib.php
+++ b/libraries/sqlparser.lib.php
@@ -1747,11 +1747,11 @@ if (! defined('PMA_MINIMUM_COMMON')) {
                 }
             }
 
-	        if ($in_limit) {
+            if ($in_limit) {
                 if ($upper_data == 'OFFSET') {
                     $limit_clause .= $sep;
                 }
-		        $limit_clause .= $arr[$i]['data'];
+                $limit_clause .= $arr[$i]['data'];
                 if ($upper_data == 'LIMIT' || $upper_data == 'OFFSET') {
                     $limit_clause .= $sep;
                 }
@@ -2119,8 +2119,8 @@ if (! defined('PMA_MINIMUM_COMMON')) {
         // of $cfg['SQP']['fmtType'] to make possible a replacement
         // for inline editing
         if ($mode!='query_only') {
-		$str .= '<span class="inner_sql">';
-	}
+            $str .= '<span class="inner_sql">';
+        }
         $close_docu_link = false;
         $indent                                     = 0;
         $bracketlevel                               = 0;
@@ -2296,20 +2296,20 @@ if (! defined('PMA_MINIMUM_COMMON')) {
                     }
                     break;
                 case 'punct_bracket_close_round':
-			// only close bracket level when it was opened before
-			if ($bracketlevel > 0) {
-				$bracketlevel--;
-				if ($infunction == TRUE) {
-					$functionlevel--;
-					$after     .= ' ';
-					$before    .= ' ';
-				} else {
-					$indent--;
-					$before    .= ($mode != 'query_only' ? '</div>' : ' ');
-				}
-				$infunction    = ($functionlevel > 0) ? TRUE : FALSE;
-			}
-			break;
+                    // only close bracket level when it was opened before
+                    if ($bracketlevel > 0) {
+                        $bracketlevel--;
+                        if ($infunction == TRUE) {
+                            $functionlevel--;
+                            $after     .= ' ';
+                            $before    .= ' ';
+                        } else {
+                            $indent--;
+                            $before    .= ($mode != 'query_only' ? '</div>' : ' ');
+                        }
+                        $infunction    = ($functionlevel > 0) ? TRUE : FALSE;
+                    }
+                    break;
                 case 'alpha_columnType':
                     if ($docu) {
                         switch ($arr[$i]['data']) {
@@ -2612,20 +2612,20 @@ if (! defined('PMA_MINIMUM_COMMON')) {
             }
             $str .= $after;
         } // end for
- 	// close unclosed indent levels
-	while ($indent > 0) {
-		$indent--;
-		$str .= ($mode != 'query_only' ? '</div>' : ' ');
-	}
+        // close unclosed indent levels
+        while ($indent > 0) {
+            $indent--;
+            $str .= ($mode != 'query_only' ? '</div>' : ' ');
+        }
        /* End possibly unclosed documentation link */
         if ($close_docu_link) {
             $str .= '</a>';
             $close_docu_link = false;
         }
         if ($mode!='query_only') {
-		// close inner_sql span
-	        $str .= '</span>';
-	}
+            // close inner_sql span
+                $str .= '</span>';
+        }
         if ($mode=='color') {
             // close syntax span
             $str .= '</span>';


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list