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

Commit 1af5686

Browse files
committed
Merge branch 'master' of git://github.com/zendframework/zf2 into feature/console
19 parents 4c70b49 + ba14e90 + dc7d636 + 06375a2 + 53fdaa9 + 80ccc9b + fa80520 + 4009aca + ad280cb + b0d3db4 + 9b28224 + 49a871c + 4145ab4 + ff8e603 + abd0527 + 9dc2f89 + 20317fc + da6fd5b + 1702218 commit 1af5686

11 files changed

+15
-15
lines changed

src/Adapter/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ class InvalidArgumentException
1616
extends Exception\InvalidArgumentException
1717
implements ExceptionInterface
1818
{
19-
}
19+
}

src/Adapter/Exception/RuntimeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package Zend_Authentication
1818
* @subpackage Adapter
1919
*/
20-
class RuntimeException extends Exception\RuntimeException implements
20+
class RuntimeException extends Exception\RuntimeException implements
2121
ExceptionInterface
2222
{
2323
}

src/Adapter/Exception/UnexpectedValueException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package Zend_Authentication
1818
* @subpackage Adapter
1919
*/
20-
class UnexpectedValueException extends Exception\UnexpectedValueException implements
20+
class UnexpectedValueException extends Exception\UnexpectedValueException implements
2121
ExceptionInterface
2222
{
2323
}

src/Adapter/Http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ protected function _basicAuth($header)
484484
}
485485

486486
$result = $this->_basicResolver->resolve($creds[0], $this->_realm, $creds[1]);
487-
487+
488488
if ($result
489489
&& !is_array($result)
490490
&& $this->_secureStringCompare($result, $creds[1])

src/Adapter/Http/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package Zend_Authentication
1818
* @subpackage Adapter_Http
1919
*/
20-
class InvalidArgumentException extends Exception\InvalidArgumentException implements
20+
class InvalidArgumentException extends Exception\InvalidArgumentException implements
2121
ExceptionInterface
2222
{
2323
}

src/Adapter/Http/Exception/RuntimeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package Zend_Authentication
1818
* @subpackage Adapter_Http
1919
*/
20-
class RuntimeException extends Exception\RuntimeException implements
20+
class RuntimeException extends Exception\RuntimeException implements
2121
ExceptionInterface
2222
{
2323
}

src/Adapter/Http/FileResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ public function resolve($username, $realm, $password = null)
9090
{
9191
if (empty($username)) {
9292
throw new Exception\InvalidArgumentException('Username is required');
93-
} else if (!ctype_print($username) || strpos($username, ':') !== false) {
93+
} elseif (!ctype_print($username) || strpos($username, ':') !== false) {
9494
throw new Exception\InvalidArgumentException('Username must consist only of printable characters, '
9595
. 'excluding the colon');
9696
}
9797
if (empty($realm)) {
9898
throw new Exception\InvalidArgumentException('Realm is required');
99-
} else if (!ctype_print($realm) || strpos($realm, ':') !== false) {
99+
} elseif (!ctype_print($realm) || strpos($realm, ':') !== false) {
100100
throw new Exception\InvalidArgumentException('Realm must consist only of printable characters, '
101101
. 'excluding the colon.');
102102
}

src/Adapter/Ldap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,11 @@ public function authenticate()
333333
* server options.
334334
*/
335335
continue;
336-
} else if ($err == LdapException::LDAP_NO_SUCH_OBJECT) {
336+
} elseif ($err == LdapException::LDAP_NO_SUCH_OBJECT) {
337337
$code = AuthenticationResult::FAILURE_IDENTITY_NOT_FOUND;
338338
$messages[0] = "Account not found: $username";
339339
$failedAuthorities[$dname] = $zle->getMessage();
340-
} else if ($err == LdapException::LDAP_INVALID_CREDENTIALS) {
340+
} elseif ($err == LdapException::LDAP_INVALID_CREDENTIALS) {
341341
$code = AuthenticationResult::FAILURE_CREDENTIAL_INVALID;
342342
$messages[0] = 'Invalid credentials';
343343
$failedAuthorities[$dname] = $zle->getMessage();

src/AuthenticationService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class AuthenticationService
3232

3333
/**
3434
* Constructor
35-
*
36-
* @param Storage\StorageInterface $storage
37-
* @param Adapter\AdapterInterface $adapter
35+
*
36+
* @param Storage\StorageInterface $storage
37+
* @param Adapter\AdapterInterface $adapter
3838
*/
3939
public function __construct(Storage\StorageInterface $storage = null, Adapter\AdapterInterface $adapter = null)
4040
{

src/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @package Zend_Authentication
1616
* @subpackage Exception
1717
*/
18-
class InvalidArgumentException extends \InvalidArgumentException implements
18+
class InvalidArgumentException extends \InvalidArgumentException implements
1919
ExceptionInterface
2020
{
2121
}

0 commit comments

Comments
 (0)