@@ -92,7 +92,7 @@ public function getType()
9292 */
9393 public static function getGenerator ()
9494 {
95- if (!static ::$ generator ) {
95+ if (! static ::$ generator ) {
9696 if (extension_loaded ('xmlwriter ' )) {
9797 static ::$ generator = new Generator \XmlWriter ();
9898 } else {
@@ -142,7 +142,7 @@ abstract public function getValue();
142142 */
143143 public function saveXml ()
144144 {
145- if (!$ this ->xml ) {
145+ if (! $ this ->xml ) {
146146 $ this ->generateXml ();
147147 $ this ->xml = (string ) $ this ->getGenerator ();
148148 }
@@ -244,7 +244,7 @@ public static function getXmlRpcTypeByValue($value)
244244 }
245245 return static ::getXmlRpcTypeByValue (get_object_vars ($ value ));
246246 } elseif (is_array ($ value )) {
247- if (!empty ($ value ) && is_array ($ value ) && (array_keys ($ value ) !== range (0 , count ($ value ) - 1 ))) {
247+ if (! empty ($ value ) && is_array ($ value ) && (array_keys ($ value ) !== range (0 , count ($ value ) - 1 ))) {
248248 return self ::XMLRPC_TYPE_STRUCT ;
249249 }
250250 return self ::XMLRPC_TYPE_ARRAY ;
@@ -393,7 +393,7 @@ protected static function xmlStringToNativeXmlRpc($xml)
393393 foreach ($ value ->member as $ member ) {
394394 // @todo? If a member doesn't have a <value> tag, we don't add it to the struct
395395 // Maybe we want to throw an exception here ?
396- if (!isset ($ member ->value ) or !isset ($ member ->name )) {
396+ if (! isset ($ member ->value ) or ! isset ($ member ->name )) {
397397 continue ;
398398 }
399399 $ values [(string ) $ member ->name ] = static ::xmlStringToNativeXmlRpc ($ member ->value );
@@ -442,7 +442,7 @@ protected static function extractTypeAndValue(\SimpleXMLElement $xml, &$type, &$
442442 // Casting is necessary to work with strict-typed systems
443443 $ xmlAsArray = (array ) $ xml ;
444444 list ($ type , $ value ) = each ($ xmlAsArray );
445- if (!$ type and $ value === null ) {
445+ if (! $ type and $ value === null ) {
446446 $ namespaces = ['ex ' => 'http://ws.apache.org/xmlrpc/namespaces/extensions ' ];
447447 foreach ($ namespaces as $ namespaceName => $ namespaceUri ) {
448448 $ namespaceXml = $ xml ->children ($ namespaceUri );
@@ -456,7 +456,7 @@ protected static function extractTypeAndValue(\SimpleXMLElement $xml, &$type, &$
456456 }
457457
458458 // If no type was specified, the default is string
459- if (!$ type ) {
459+ if (! $ type ) {
460460 $ type = self ::XMLRPC_TYPE_STRING ;
461461 if (empty ($ value ) and preg_match ('#^<value>.*</value>$# ' , $ xml ->asXML ())) {
462462 $ value = str_replace (['<value> ' , '</value> ' ], '' , $ xml ->asXML ());
0 commit comments