Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions library/Zend/Server/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 library/Zend/Server/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 library/Zend/Server/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 library/Zend/Server/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 library/Zend/Server/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
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
{
}
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
{
}
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 library/Zend/Server/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