Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactored isEmpty loop to be more readible.

  • Loading branch information...
commit f471c909a89ddcb17de6b0ce28966596ea423f40 1 parent d0a1b93
@roelvanduijnhoven authored
Showing with 7 additions and 8 deletions.
  1. +7 −8 library/Zend/Authentication/Storage/Chain.php
View
15 library/Zend/Authentication/Storage/Chain.php
@@ -67,15 +67,14 @@ public function isEmpty()
if( $storage->isEmpty() )
{
$storageWithHigherPriority[] = $storage;
+ continue;
}
- else
- {
- $storageValue = $storage->read();
- foreach( $storageWithHigherPriority as $higherPriorityStorage )
- $higherPriorityStorage->write($storageValue);
-
- return false;
- }
+
+ $storageValue = $storage->read();
+ foreach( $storageWithHigherPriority as $higherPriorityStorage )
+ $higherPriorityStorage->write($storageValue);
+
+ return false;
}
return true;
Please sign in to comment.
Something went wrong with that request. Please try again.