Completed
Push — master ( f0fd1d...defc9d )
by Christopher
40:01 queued 02:21
created
Utilities.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -333,9 +333,9 @@
 block discarded – undo
333 333
         return [];
334 334
     }
335 335
     
336
-     /**
337
-     * Regex to match a GUID.
338
-     */
336
+        /**
337
+         * Regex to match a GUID.
338
+         */
339 339
     const MATCH_GUID = '/^([0-9a-fA-F]){8}(-([0-9a-fA-F]){4}){3}-([0-9a-fA-F]){12}$/';
340 340
 
341 341
     /**
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     public static function unescape($value)
177 177
     {
178
-        $callback = function ($matches) {
178
+        $callback = function($matches) {
179 179
             return chr(hexdec($matches[1]));
180 180
         };
181 181
 
@@ -385,12 +385,12 @@  discard block
 block discarded – undo
385 385
         $value = preg_match('/^(\\\[0-9a-fA-F]{2})+$/', (string) $value) ? $value : ldap_escape($value, $ignore, $flags);
386 386
 
387 387
         // Per RFC 4514, leading/trailing spaces should be encoded in DNs, as well as carriage returns.
388
-        if ((int)$flags & LDAP_ESCAPE_DN) {
388
+        if ((int) $flags & LDAP_ESCAPE_DN) {
389 389
             if (!empty($value) && $value[0] === ' ') {
390
-                $value = '\\20' . substr($value, 1);
390
+                $value = '\\20'.substr($value, 1);
391 391
             }
392 392
             if (!empty($value) && $value[strlen($value) - 1] === ' ') {
393
-                $value = substr($value, 0, -1) . '\\20';
393
+                $value = substr($value, 0, -1).'\\20';
394 394
             }
395 395
             // Only carriage returns seem to be valid, not line feeds (per testing of AD anyway).
396 396
             $value = str_replace("\r", '\0d', $value);
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
      */
408 408
     public static function unescapeValue($value)
409 409
     {
410
-        $callback = function ($matches) {
410
+        $callback = function($matches) {
411 411
             return chr(hexdec($matches[1]));
412 412
         };
413 413
 
Please login to merge, or discard this patch.