cvs: pear /Services_Webservice/Webservice Definition.php

From: Date: Fri, 29 Jul 2005 16:30:17 +0000
Subject: cvs: pear /Services_Webservice/Webservice Definition.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33462@lists.php.net to get a copy of this message
jausions Fri Jul 29 12:30:17 2005 EDT Modified files: /pear/Services_Webservice/Webservice Definition.php Log: Fixed a typo Wrapped some long lines http://cvs.php.net/diff.php/pear/Services_Webservice/Webservice/Definition.php?r1=1.11&r2=1.12&ty=u Index: pear/Services_Webservice/Webservice/Definition.php diff -u pear/Services_Webservice/Webservice/Definition.php:1.11 pear/Services_Webservice/Webservice/Definition.php:1.12 --- pear/Services_Webservice/Webservice/Definition.php:1.11 Thu Jul 28 23:24:36 2005 +++ pear/Services_Webservice/Webservice/Definition.php Fri Jul 29 12:30:16 2005 @@ -19,7 +19,7 @@ * @author Philippe Jausions <Philippe.Jausions@11abacus.com> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Definition.php,v 1.11 2005/07/29 03:24:36 jausions Exp $ + * @version CVS: $Id: Definition.php,v 1.12 2005/07/29 16:30:16 jausions Exp $ * @link http://pear.php.net/package/Services_Webservice */ @@ -112,7 +112,8 @@ } elseif (is_string($class)) { $this->_classname = $class; } else { - throw new Services_Webservice_Definition_NotClassException('Expected a class name or instance.'); + throw new Services_Webservice_Definition_NotClassException( + 'Expected a class name or instance.'); } if (trim($namespace) != '') { $this->namespace = $namespace; @@ -196,7 +197,8 @@ include_once 'Services/Webservice/Definition/' . basename($format) . '.php'; $class = 'Services_Webservice_Definition_' . $format; if (!class_exists($class)) { - throw new Services_Webservice_Definition_UnknownFormatException('Unknown definition format.'); + throw new Services_Webservice_Definition_UnknownFormatException( + 'Unknown definition format.'); } $formatter = new $class($this); return $formatter->toString(); @@ -251,7 +253,9 @@ $propertyName = $properties[$i]->getName(); if (!trim($docComments)) { - throw new Services_Webservice_Definition_NoDocCommentException('Property ' . $class . '::' . $propertyName . ' is missing docblock comment.'); + throw new Services_Webservice_Definition_NoDocCommentException( + 'Property ' . $class . '::' . $propertyName + . ' is missing docblock comment.'); } preg_match_all('~\* @var\s(\S+)~', $docComments, $var); @@ -329,8 +333,10 @@ // Params preg_match_all('~@param\s(\S+)~', $docComments, $param); $params = $method->getParameters(); - if (count($params) != count($param)) { - throw new Services_Webservice_Definition_DocCommentMismatchException('Docblock comment doesn\'t match ' . $this->_classname . '::' . $methodName . '() signature.'); + if (count($params) != count($param[1])) { + throw new Services_Webservice_Definition_DocCommentMismatchException( + 'Docblock comment doesn\'t match ' . $this->_classname + . '::' . $methodName . '() signature.'); } for ($i = 0; $i < count($params); ++$i) { $_class = $params[$i]->getClass();

« previous php.pear.cvs (#33462) next »