33/*
44 * This file is part of the symfony package.
55 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6- *
6+ *
77 * For the full copyright and license information, please view the LICENSE
88 * file that was distributed with this source code.
99 */
@@ -52,19 +52,19 @@ function url_for($internal_uri, $absolute = false)
5252 * Creates a <a> link tag of the given name using a routed URL
5353 * based on the module/action passed as argument and the routing configuration.
5454 * It's also possible to pass a string instead of a module/action pair to
55- * get a link tag that just points without consideration.
55+ * get a link tag that just points without consideration.
5656 * If null is passed as a name, the link itself will become the name.
5757 * If an object is passed as a name, the object string representation is used.
58- * One of the options serves for for creating javascript confirm alerts where
59- * if you pass 'confirm' => 'Are you sure?', the link will be guarded
58+ * One of the options serves for for creating javascript confirm alerts where
59+ * if you pass 'confirm' => 'Are you sure?', the link will be guarded
6060 * with a JS popup asking that question. If the user accepts, the link is processed,
6161 * otherwise not.
6262 *
6363 * <b>Options:</b>
6464 * - 'absolute' - if set to true, the helper outputs an absolute URL
6565 * - 'query_string' - to append a query string (starting by ?) to the routed url
6666 * - 'confirm' - displays a javascript confirmation alert when the link is clicked
67- * - 'popup' - if set to true, the link opens a new browser window
67+ * - 'popup' - if set to true, the link opens a new browser window
6868 * - 'post' - if set to true, the link submits a POST request instead of GET (caution: do not use inside a form)
6969 *
7070 * <b>Note:</b> The 'popup' and 'post' options are not compatible with each other.
@@ -142,14 +142,14 @@ function link_to($name = '', $internal_uri = '', $options = array())
142142 * - 'absolute' - if set to true, the helper outputs an absolute URL
143143 * - 'query_string' - to append a query string (starting by ?) to the routed url
144144 * - 'confirm' - displays a javascript confirmation alert when the link is clicked
145- * - 'popup' - if set to true, the link opens a new browser window
145+ * - 'popup' - if set to true, the link opens a new browser window
146146 * - 'post' - if set to true, the link submits a POST request instead of GET (caution: do not use inside a form)
147147 *
148148 * <b>Examples:</b>
149149 * <code>
150150 * echo link_to_if($user->isAdministrator(), 'Delete this page', 'my_module/my_action');
151151 * => <a href="/path/to/my/action">Delete this page</a>
152- * echo link_to_if(!$user->isAdministrator(), 'Delete this page', 'my_module/my_action');
152+ * echo link_to_if(!$user->isAdministrator(), 'Delete this page', 'my_module/my_action');
153153 * => <span>Delete this page</span>
154154 * </code>
155155 *
@@ -191,14 +191,14 @@ function link_to_if($condition, $name = '', $internal_uri = '', $options = array
191191 * - 'absolute' - if set to true, the helper outputs an absolute URL
192192 * - 'query_string' - to append a query string (starting by ?) to the routed url
193193 * - 'confirm' - displays a javascript confirmation alert when the link is clicked
194- * - 'popup' - if set to true, the link opens a new browser window
194+ * - 'popup' - if set to true, the link opens a new browser window
195195 * - 'post' - if set to true, the link submits a POST request instead of GET (caution: do not use inside a form)
196196 *
197197 * <b>Examples:</b>
198198 * <code>
199199 * echo link_to_unless($user->isAdministrator(), 'Delete this page', 'my_module/my_action');
200200 * => <span>Delete this page</span>
201- * echo link_to_unless(!$user->isAdministrator(), 'Delete this page', 'my_module/my_action');
201+ * echo link_to_unless(!$user->isAdministrator(), 'Delete this page', 'my_module/my_action');
202202 * => <a href="/path/to/my/action">Delete this page</a>
203203 * </code>
204204 *
@@ -223,7 +223,7 @@ function link_to_unless($condition, $name = '', $url = '', $options = array())
223223 * - 'absolute' - if set to true, the helper outputs an absolute URL
224224 * - 'query_string' - to append a query string (starting by ?) to the routed url
225225 * - 'confirm' - displays a javascript confirmation alert when the button is clicked
226- * - 'popup' - if set to true, the button opens a new browser window
226+ * - 'popup' - if set to true, the button opens a new browser window
227227 * - 'post' - if set to true, the button submits a POST request instead of GET (caution: do not use inside a form)
228228 *
229229 * <b>Examples:</b>
@@ -428,7 +428,7 @@ function _encodeText($text)
428428
429429 for ($ i = 0 ; $ i < strlen ($ text ); $ i ++)
430430 {
431- $ char = $ text{ $ i } ;
431+ $ char = $ text[ $ i ] ;
432432 $ r = rand (0 , 100 );
433433
434434 # roughly 10% raw, 45% hex, 45% dec
0 commit comments