Skip to content

Commit

Permalink
Changed 'boolean' to the standard 'bool' in the phpDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
wryck7 committed Mar 27, 2013
1 parent 67eb829 commit fc0cc0f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Mvc/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* Convenience methods for pre-built plugins (@see __call):
*
* @method \Zend\View\Model\ModelInterface acceptableViewModelSelector(array $matchAgainst = null, bool $returnDefault = true, \Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart $resultReference = null)
* @method boolean|array|\Zend\Http\Response fileprg(\Zend\Form\Form $form, $redirect = null, $redirectToUrl = false)
* @method boolean|array|\Zend\Http\Response filePostRedirectGet(\Zend\Form\Form $form, $redirect = null, $redirectToUrl = false)
* @method bool|array|\Zend\Http\Response fileprg(\Zend\Form\Form $form, $redirect = null, $redirectToUrl = false)
* @method bool|array|\Zend\Http\Response filePostRedirectGet(\Zend\Form\Form $form, $redirect = null, $redirectToUrl = false)
* @method \Zend\Mvc\Controller\Plugin\FlashMessenger flashMessenger()
* @method \Zend\Mvc\Controller\Plugin\Forward forward()
* @method mixed|null identity()
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Mvc/Controller/AbstractRestfulController.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public function processPostData(Request $request)
*
* @param Request $request
* @param string|null $contentType
* @return boolean
* @return bool
*/
public function requestHasContentType(Request $request, $contentType = '')
{
Expand Down Expand Up @@ -431,7 +431,7 @@ public function addHttpMethodHandler($method, /* Callable */ $handler)
* Retrieve the identifier, if any
*
* Attempts to see if an identifier was passed in either the URI or the
* query string, returning if if found. Otherwise, returns a boolean false.
* query string, returning it if found. Otherwise, returns a boolean false.
*
* @param \Zend\Mvc\Router\RouteMatch $routeMatch
* @param Request $request
Expand Down
10 changes: 5 additions & 5 deletions library/Zend/Mvc/Controller/Plugin/FilePostRedirectGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class FilePostRedirectGet extends AbstractPlugin
/**
* @param FormInterface $form
* @param string $redirect Route or URL string (default: current route)
* @param boolean $redirectToUrl Use $redirect as a URL string (default: false)
* @return boolean|array|Response
* @param bool $redirectToUrl Use $redirect as a URL string (default: false)
* @return bool|array|Response
*/
public function __invoke(FormInterface $form, $redirect = null, $redirectToUrl = false)
{
Expand All @@ -55,7 +55,7 @@ public function __invoke(FormInterface $form, $redirect = null, $redirectToUrl =
/**
* @param FormInterface $form
* @param string $redirect Route or URL string (default: current route)
* @param boolean $redirectToUrl Use $redirect as a URL string (default: false)
* @param bool $redirectToUrl Use $redirect as a URL string (default: false)
* @return Response
*/
protected function handlePostRequest(FormInterface $form, $redirect, $redirectToUrl)
Expand Down Expand Up @@ -109,7 +109,7 @@ function($input, $value) {

/**
* @param FormInterface $form
* @return boolean|array
* @return bool|array
*/
protected function handleGetRequest(FormInterface $form)
{
Expand Down Expand Up @@ -288,7 +288,7 @@ function($input, $value) {
* TODO: Good candidate for traits method in PHP 5.4 with PostRedirectGet plugin
*
* @param string $redirect
* @param boolean $redirectToUrl
* @param bool $redirectToUrl
* @return Response
* @throws \Zend\Mvc\Exception\RuntimeException
*/
Expand Down
20 changes: 10 additions & 10 deletions library/Zend/Mvc/Controller/Plugin/FlashMessenger.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function hasMessages()
/**
* Whether "info" namespace has messages
*
* @return boolean
* @return bool
*/
public function hasInfoMessages()
{
Expand All @@ -250,7 +250,7 @@ public function hasInfoMessages()
/**
* Whether "success" namespace has messages
*
* @return boolean
* @return bool
*/
public function hasSuccessMessages()
{
Expand All @@ -265,7 +265,7 @@ public function hasSuccessMessages()
/**
* Whether "error" namespace has messages
*
* @return boolean
* @return bool
*/
public function hasErrorMessages()
{
Expand Down Expand Up @@ -356,7 +356,7 @@ public function clearMessages()
* Clear all messages from specific namespace
*
* @param string $namespaceToClear
* @return boolean True if messages were cleared, false if none existed
* @return bool True if messages were cleared, false if none existed
*/
public function clearMessagesFromNamespace($namespaceToClear)
{
Expand All @@ -371,7 +371,7 @@ public function clearMessagesFromNamespace($namespaceToClear)
/**
* Clear all messages from the container
*
* @return boolean True if messages were cleared, false if none existed
* @return bool True if messages were cleared, false if none existed
*/
public function clearMessagesFromContainer()
{
Expand Down Expand Up @@ -403,7 +403,7 @@ public function hasCurrentMessages()
* Check to see if messages have been added to "info"
* namespace within this request
*
* @return boolean
* @return bool
*/
public function hasCurrentInfoMessages()
{
Expand All @@ -419,7 +419,7 @@ public function hasCurrentInfoMessages()
* Check to see if messages have been added to "success"
* namespace within this request
*
* @return boolean
* @return bool
*/
public function hasCurrentSuccessMessages()
{
Expand All @@ -435,7 +435,7 @@ public function hasCurrentSuccessMessages()
* Check to see if messages have been added to "error"
* namespace within this request
*
* @return boolean
* @return bool
*/
public function hasCurrentErrorMessages()
{
Expand Down Expand Up @@ -552,7 +552,7 @@ public function clearCurrentMessages()
* Clear messages from the current namespace
*
* @param string $namespaceToClear
* @return boolean True if current messages were cleared from the given namespace, false if none existed.
* @return bool True if current messages were cleared from the given namespace, false if none existed.
*/
public function clearCurrentMessagesFromNamespace($namespaceToClear)
{
Expand All @@ -567,7 +567,7 @@ public function clearCurrentMessagesFromNamespace($namespaceToClear)
/**
* Clear messages from the container
*
* @return boolean True if current messages were cleared from the container, false if none existed.
* @return bool True if current messages were cleared from the container, false if none existed.
*/
public function clearCurrentMessagesFromContainer()
{
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Mvc/Controller/Plugin/PostRedirectGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class PostRedirectGet extends AbstractPlugin
* boolean false.
*
* @param null|string $redirect
* @param bool $redirectToUrl
* @param bool $redirectToUrl
* @return \Zend\Http\Response|array|\Traversable|false
*/
public function __invoke($redirect = null, $redirectToUrl = false)
Expand Down Expand Up @@ -87,7 +87,7 @@ public function setSessionContainer(Container $container)
* TODO: Good candidate for traits method in PHP 5.4 with FilePostRedirectGet plugin
*
* @param string $redirect
* @param boolean $redirectToUrl
* @param bool $redirectToUrl
* @return \Zend\Http\Response
* @throws \Zend\Mvc\Exception\RuntimeException
*/
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Mvc/Router/SimpleRouteStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ public function getRoutes()
/**
* Check if a route with a specific name exists
*
* @param string $name
* @return boolean true if route exists
* @param string $name
* @return bool true if route exists
*/
public function hasRoute($name)
{
Expand Down

0 comments on commit fc0cc0f

Please sign in to comment.