forked from LiveCarta/PayPal-PHP-SDK
[PSR] Fixed library source
- Using `php-cs-fixer` tool.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Common;
|
||||
|
||||
use PayPal\Exception\PayPalConfigurationException;
|
||||
|
||||
/**
|
||||
@@ -112,7 +113,7 @@ class ReflectionUtil
|
||||
}
|
||||
|
||||
// todo: smarter regexp
|
||||
if ( !preg_match_all(
|
||||
if (!preg_match_all(
|
||||
'~\@([^\s@\(]+)[\t ]*(?:\(?([^\n@]+)\)?)?~i',
|
||||
$refl->getDocComment(),
|
||||
$annots,
|
||||
@@ -120,7 +121,7 @@ class ReflectionUtil
|
||||
return null;
|
||||
}
|
||||
foreach ($annots[1] as $i => $annot) {
|
||||
$annotations[strtolower($annot)] = empty($annots[2][$i]) ? TRUE : rtrim($annots[2][$i], " \t\n\r)");
|
||||
$annotations[strtolower($annot)] = empty($annots[2][$i]) ? true : rtrim($annots[2][$i], " \t\n\r)");
|
||||
}
|
||||
|
||||
return $annotations;
|
||||
|
||||
Reference in New Issue
Block a user