cvs: pear /Net_LDAP2/LDAP2 Util.php

From: Date: Thu, 30 Apr 2009 08:15:12 +0000
Subject: cvs: pear /Net_LDAP2/LDAP2 Util.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-56014@lists.php.net to get a copy of this message
beni Thu Apr 30 08:15:12 2009 UTC Modified files: /pear/Net_LDAP2/LDAP2 Util.php Log: * phpcs fixes http://cvs.php.net/viewvc.cgi/pear/Net_LDAP2/LDAP2/Util.php?r1=1.3&r2=1.4&diff_format=u Index: pear/Net_LDAP2/LDAP2/Util.php diff -u pear/Net_LDAP2/LDAP2/Util.php:1.3 pear/Net_LDAP2/LDAP2/Util.php:1.4 --- pear/Net_LDAP2/LDAP2/Util.php:1.3 Thu Apr 30 07:36:21 2009 +++ pear/Net_LDAP2/LDAP2/Util.php Thu Apr 30 08:15:12 2009 @@ -10,7 +10,7 @@ * @author Benedikt Hallinger <beni@php.net> * @copyright 2009 Benedikt Hallinger * @license http://www.gnu.org/copyleft/lesser.html LGPL -* @version CVS: $Id: Util.php,v 1.3 2009/04/30 07:36:21 beni Exp $ +* @version CVS: $Id: Util.php,v 1.4 2009/04/30 08:15:12 beni Exp $ * @link http://pear.php.net/package/Net_LDAP2/ */ @@ -102,7 +102,7 @@ // clear wrong splitting (possibly we have split too much) // /!\ Not clear, if this is neccessary here - //$dn_array = self::_correct_dn_splitting($dn_array, ','); + //$dn_array = self::correct_dn_splitting($dn_array, ','); // construct subarrays for multivalued RDNs and unescape DN value // also convert to output format and apply casefolding @@ -303,7 +303,7 @@ $dn = preg_split('/(?<=[^\\\\])'.$options['separator'].'/', $dn); // clear wrong splitting (possibly we have split too much) - $dn = self::_correct_dn_splitting($dn, $options['separator']); + $dn = self::correct_dn_splitting($dn, $options['separator']); } else { // Is array, check, if the array is indexed or associative $assoc = false; @@ -520,7 +520,7 @@ public static function split_rdn_multival($rdn) { $rdns = preg_split('/(?<!\\\\)\+/', $rdn); - $rdns = self::_correct_dn_splitting($rdns, '+'); + $rdns = self::correct_dn_splitting($rdns, '+'); return array_values($rdns); } @@ -547,7 +547,7 @@ * @return array Corrected array * @access protected */ - protected static function _correct_dn_splitting($dn = array(), $separator = ',') + protected static function correct_dn_splitting($dn = array(), $separator = ',') { foreach ($dn as $key => $dn_value) { $dn_value = $dn[$key]; // refresh value (foreach caches!)

« previous php.pear.cvs (#56014) next »