r65188 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65187‎ | r65188 | r65189 >
Date:21:25, 17 April 2010
Author:platonides
Status:ok
Tags:
Comment:
Add spaces only before '-', to preserve negative numbers.
Modified paths:
  • /trunk/tools/code-utils/stylize.php (modified) (history)

Diff [purge]

Index: trunk/tools/code-utils/stylize.php
@@ -118,7 +118,6 @@
119119 '^',
120120 // '&', can be unary, we have a special case for =&
121121 '*',
122 - '-',
123122 '=',
124123 '+',
125124 '|',
@@ -130,7 +129,8 @@
131130 '?',
132131 );
133132 static $spaceBefore = array(
134 - ')'
 133+ ')',
 134+ '-', // $foo = -1; shouldn't change to $foo = - 1;
135135 );
136136 static $spaceAfter = array(
137137 '(',

Status & tagging log