-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating copyright and allowing uri's to be null when content is null.
- Loading branch information
Showing
2 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php namespace DCarbone; | ||
|
||
/* | ||
Copyright 2012-2016 Daniel Carbone ([email protected]) | ||
Copyright 2012-2017 Daniel Carbone ([email protected]) | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
@@ -152,7 +152,7 @@ public function startDocument($version = 1.0, $encoding = 'UTF-8', $standalone = | |
/** | ||
* @param string $prefix | ||
* @param string $name | ||
* @param string $uri | ||
* @param string|null $uri | ||
* @return bool | ||
*/ | ||
public function startAttributeNS($prefix, $name, $uri = null) | ||
|
@@ -164,11 +164,11 @@ public function startAttributeNS($prefix, $name, $uri = null) | |
/** | ||
* @param string $prefix | ||
* @param string $name | ||
* @param string $uri | ||
* @param string|null $uri | ||
* @param string|null $content | ||
* @return bool | ||
*/ | ||
public function writeAttributeNS($prefix, $name, $uri, $content = null) | ||
public function writeAttributeNS($prefix, $name, $uri = null, $content = null) | ||
{ | ||
list($prefix, $uri) = $this->resolveNamespace($prefix, $uri); | ||
return parent::writeAttributeNS($prefix, $name, $uri, $content); | ||
|
@@ -177,7 +177,7 @@ public function writeAttributeNS($prefix, $name, $uri, $content = null) | |
/** | ||
* @param string $prefix | ||
* @param string $name | ||
* @param string $uri | ||
* @param string|null $uri | ||
* @return bool | ||
*/ | ||
public function startElementNS($prefix, $name, $uri = null) | ||
|
@@ -189,11 +189,11 @@ public function startElementNS($prefix, $name, $uri = null) | |
/** | ||
* @param string $prefix | ||
* @param string $name | ||
* @param string $uri | ||
* @param null|string $content | ||
* @param string|null $uri | ||
* @param string|null $content | ||
* @return bool | ||
*/ | ||
public function writeElementNS($prefix, $name, $uri, $content = null) | ||
public function writeElementNS($prefix, $name, $uri = null, $content = null) | ||
{ | ||
list($prefix, $uri) = $this->resolveNamespace($prefix, $uri); | ||
return parent::writeElementNS($prefix, $name, $uri, $content); | ||
|