@@ -246,7 +246,7 @@ public function getTransformTags()
246
246
/**
247
247
* Set the numeric tag suffix
248
248
*
249
- * @param null $value
249
+ * @param null|string $value
250
250
* @return PhpArrayToXml
251
251
*/
252
252
public function setNumericTagSuffix ($ value = null )
@@ -335,7 +335,7 @@ public function getCastNullValue()
335
335
/**
336
336
* Validate if a given value has a proper tag starting character to be used in XML
337
337
*
338
- * @param null $value
338
+ * @param null|string $value
339
339
* @return bool
340
340
*/
341
341
public static function hasValidXmlTagStartingChar ($ value = null )
@@ -349,7 +349,7 @@ public static function hasValidXmlTagStartingChar($value = null)
349
349
/**
350
350
* Validate if a given value is a valid tag character
351
351
*
352
- * @param null $value
352
+ * @param null|string $value
353
353
* @return bool
354
354
*/
355
355
public static function isValidXmlTagChar ($ value = null )
@@ -363,7 +363,7 @@ public static function isValidXmlTagChar($value = null)
363
363
/**
364
364
* Validate if a given value is a proper tag name to be used in XML
365
365
*
366
- * @param null $value
366
+ * @param null|string $value
367
367
* @return bool
368
368
*/
369
369
public static function isValidXmlTag ($ value = null )
@@ -552,7 +552,7 @@ protected function isNumericKey($value)
552
552
* Creates an element for DOMDocument
553
553
*
554
554
* @param $name
555
- * @param null $value
555
+ * @param null|string $value
556
556
* @param bool $cdata
557
557
* @param array $attributes
558
558
* @return DOMElement
@@ -584,7 +584,7 @@ protected function createElement($name, $value = null, $cdata = false, $attribut
584
584
/**
585
585
* Creates a valid tag name
586
586
*
587
- * @param null $name
587
+ * @param null|string $name
588
588
* @return string
589
589
*/
590
590
protected function createValidTagName ($ name = null )
@@ -649,7 +649,7 @@ protected function replaceInvalidTagChars($value)
649
649
/**
650
650
* Creates a valid root name
651
651
*
652
- * @param null $name
652
+ * @param null|string $name
653
653
* @return string
654
654
*/
655
655
protected function createValidRootName ($ name = null )
@@ -666,19 +666,17 @@ protected function createValidRootName($name = null)
666
666
/**
667
667
* Transforms a tag name (only when specified)
668
668
*
669
- * @param null $name
669
+ * @param null|string $name
670
670
* @return null|string
671
671
*/
672
672
protected function transformTagName ($ name = null )
673
673
{
674
674
switch ($ this ->getTransformTags ()) {
675
675
case self ::LOWERCASE : {
676
676
return strtolower ($ name );
677
- break ;
678
677
}
679
678
case self ::UPPERCASE : {
680
679
return strtoupper ($ name );
681
- break ;
682
680
}
683
681
default : {
684
682
return $ name ;
0 commit comments