Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'cs/zendframework/zendframework#6988-zend-server-psr2-co…
Browse files Browse the repository at this point in the history
…mpliance' into develop

Close zendframework/zendframework#6988
Forward port zendframework/zendframework#6988
  • Loading branch information
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 30 deletions.
8 changes: 2 additions & 6 deletions src/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ class Cache
*/
public static function save($filename, Server $server)
{
if (!is_string($filename)
|| (!file_exists($filename) && !is_writable(dirname($filename)))
) {
if (!is_string($filename) || (!file_exists($filename) && !is_writable(dirname($filename)))) {
return false;
}

Expand Down Expand Up @@ -98,9 +96,7 @@ public static function save($filename, Server $server)
*/
public static function get($filename, Server $server)
{
if (!is_string($filename)
|| !file_exists($filename)
|| !is_readable($filename)) {
if (!is_string($filename) || !file_exists($filename) || !is_readable($filename)) {
return false;
}

Expand Down
4 changes: 1 addition & 3 deletions src/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

namespace Zend\Server\Exception;

class BadMethodCallException
extends \BadMethodCallException
implements ExceptionInterface
class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface
{
}
4 changes: 1 addition & 3 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

namespace Zend\Server\Exception;

class InvalidArgumentException
extends \InvalidArgumentException
implements ExceptionInterface
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
{
}
4 changes: 1 addition & 3 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

namespace Zend\Server\Exception;

class RuntimeException
extends \RuntimeException
implements ExceptionInterface
class RuntimeException extends \RuntimeException implements ExceptionInterface
{
}
6 changes: 3 additions & 3 deletions src/Reflection/AbstractFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,9 @@ protected function reflect()
}
} elseif ($nParamTypesTmp != $paramCount) {
throw new Exception\RuntimeException(
'Variable number of arguments is not supported for services (except optional parameters). '
. 'Number of function arguments must correspond to actual number of arguments described in a docblock.');
'Variable number of arguments is not supported for services (except optional parameters). '
. 'Number of function arguments must correspond to actual number of arguments described in a docblock.'
);
}

$paramTypes = array();
Expand All @@ -297,7 +298,6 @@ protected function reflect()
$this->buildSignatures($return, $returnDesc, $paramTypes, $paramDesc);
}


/**
* Proxy reflection calls
*
Expand Down
4 changes: 1 addition & 3 deletions src/Reflection/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

use Zend\Server\Exception;

class BadMethodCallException
extends Exception\BadMethodCallException
implements ExceptionInterface
class BadMethodCallException extends Exception\BadMethodCallException implements ExceptionInterface
{
}
4 changes: 1 addition & 3 deletions src/Reflection/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

use Zend\Server\Exception;

class InvalidArgumentException
extends Exception\InvalidArgumentException
implements ExceptionInterface
class InvalidArgumentException extends Exception\InvalidArgumentException implements ExceptionInterface
{
}
4 changes: 1 addition & 3 deletions src/Reflection/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

use Zend\Server\Exception;

class RuntimeException
extends Exception\RuntimeException
implements ExceptionInterface
class RuntimeException extends Exception\RuntimeException implements ExceptionInterface
{
}
4 changes: 1 addition & 3 deletions src/Reflection/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ public function getEndPoints()

if (null === $value) {
$endPoints[] = $this;
} elseif ((null !== $value)
&& $child->hasChildren()
) {
} elseif ((null !== $value) && $child->hasChildren()) {
$childEndPoints = $child->getEndPoints();
if (!empty($childEndPoints)) {
$endPoints = array_merge($endPoints, $childEndPoints);
Expand Down

0 comments on commit 6446559

Please sign in to comment.