Skip to content

Commit

Permalink
Merge pull request #8 from izabolotnev/master
Browse files Browse the repository at this point in the history
Update phpdocs
  • Loading branch information
Imangazaliev committed Oct 14, 2015
2 parents ce09558 + 5d1342d commit 9af2070
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/DiDom/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function has($expression, $type = Query::TYPE_CSS)
*
* @param string $expression XPath expression or CSS selector
* @param string $type the type of the expression
* @return array
* @return \DiDom\Element[]
*/
public function find($expression, $type = Query::TYPE_CSS)
{
Expand All @@ -166,7 +166,7 @@ public function find($expression, $type = Query::TYPE_CSS)

/**
* @param string $expression XPath expression
* @return array
* @return \DiDom\Element[]
*/
public function xpath($expression)
{
Expand Down
10 changes: 5 additions & 5 deletions src/DiDom/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace DiDom;

use DomDocument;
use DOMDocument;
use DOMElement;
use InvalidArgumentException;

Expand Down Expand Up @@ -68,7 +68,7 @@ public function toDocument()
*
* @param string $expression XPath expression or CSS selector
* @param string $type the type of the expression
* @return array instance of Element or null
* @return \DiDom\Element[] array of Elements
*/
public function find($expression, $type = Query::TYPE_CSS)
{
Expand Down Expand Up @@ -113,7 +113,7 @@ public function hasAttribute($name)
*
* @param string $name
* @param string $value
* @return void
* @return \DiDom\Element
*/
public function setAttribute($name, $value)
{
Expand Down Expand Up @@ -228,7 +228,7 @@ public function __unset($name)
*
* @param string $name
* @param mixed $value
* @return void
* @return \DiDom\Element
*/
public function __set($name, $value)
{
Expand Down Expand Up @@ -265,7 +265,7 @@ public function __toString()
/**
* @param string $expression
* @param string $type
* @return mixed
* @return \DiDom\Element[]
*/
public function __invoke($expression, $type = Query::TYPE_CSS)
{
Expand Down
2 changes: 1 addition & 1 deletion src/DiDom/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function compile($expression, $type = self::TYPE_CSS)

/**
* @param string $selector
* @param bool $prefix
* @param string $prefix
* @return string
*/
public static function cssToXpath($selector, $prefix = '//')
Expand Down

0 comments on commit 9af2070

Please sign in to comment.