Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
3 changes: 2 additions & 1 deletion docs/tutorial/tutorial_authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
);
foreach ( $status as $line )
{
list( $key, $value ) = each( $line );
$value = current( $line );
$key = key( $line );
echo $err[$key][$value] . "\n";
}
}
Expand Down
3 changes: 2 additions & 1 deletion docs/tutorial/tutorial_group.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
);
foreach ( $status as $line )
{
list( $key, $value ) = each( $line );
$value = current( $line );
$key = key( $line );
echo $err[$key][$value] . "\n";
}
}
Expand Down
3 changes: 2 additions & 1 deletion docs/tutorial/tutorial_htpasswd.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
);
foreach ( $status as $line )
{
list( $key, $value ) = each( $line );
$value = current( $line );
$key = key( $line );
echo $err[$key][$value] . "\n";
}
}
Expand Down
3 changes: 2 additions & 1 deletion docs/tutorial/tutorial_ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
);
foreach ( $status as $line )
{
list( $key, $value ) = each( $line );
$value = current( $line );
$key = key( $line );
echo $err[$key][$value] . "\n";
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/tutorial_multiple_credentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

foreach ( $status as $line => $error )
{
list( $key, $value ) = each( $error );
$value = current( $error ); $key = key( $error );
echo $err[$line][$key][$value] . "\n";
}
}
Expand Down
3 changes: 2 additions & 1 deletion docs/tutorial/tutorial_openid_dumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
);
foreach ( $status as $line )
{
list( $key, $value ) = each( $line );
$value = current( $line );
$key = key( $line );
echo $err[$key][$value] . "\n";
}
?>
Expand Down
4 changes: 3 additions & 1 deletion docs/tutorial/tutorial_openid_smart.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
$err["session"] = "";
for ( $i = 0; $i < count( $status ); $i++ )
{
list( $key, $value ) = each( $status[$i] );
$value = current( $status[$i] );
$key = key( $status[$i] );

switch ( $key )
{
case 'ezcAuthenticationOpenidFilter':
Expand Down
3 changes: 2 additions & 1 deletion docs/tutorial/tutorial_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
);
foreach ( $status as $line )
{
list( $key, $value ) = each( $line );
$value = current( $line );
$key = key( $line );
echo $err[$key][$value] . "\n";
}
}
Expand Down
3 changes: 2 additions & 1 deletion docs/tutorial/tutorial_typekey.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
);
foreach ( $status as $line )
{
list( $key, $value ) = each( $line );
$value = current( $line );
$key = key( $line );
echo $err[$key][$value] . "\n";
}
?>
Expand Down
6 changes: 4 additions & 2 deletions src/authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
* );
* foreach ( $status as $line )
* {
* list( $key, $value ) = each( $line );
* $value = current( $line );
* $key = key( $line );
* echo $err[$key][$value] . "\n";
* }
* }
Expand Down Expand Up @@ -263,7 +264,8 @@ public function run()
// status of the Authentication object
foreach ( $statuses as $status )
{
list( $key, $value ) = each( $status );
$value = current( $status );
$key = key( $status );
$this->status->append( $key, $value );
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/filters/group/group_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
* );
* foreach ( $status as $line => $error )
* {
* list( $key, $value ) = each( $error );
* $value = current( $error ); $key = key( $error );
* echo $err[$line][$key][$value] . "\n";
* }
* }
Expand Down Expand Up @@ -133,7 +133,7 @@
*
* foreach ( $status as $line => $error )
* {
* list( $key, $value ) = each( $error );
* $value = current( $error ); $key = key( $error );
* echo $err[$line][$key][$value] . "\n";
* }
* }
Expand Down
3 changes: 2 additions & 1 deletion src/filters/htpasswd/htpasswd_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
* );
* foreach ( $status as $line )
* {
* list( $key, $value ) = each( $line );
* $value = current( $line );
* $key = key( $line );
* echo $err[$key][$value] . "\n";
* }
* }
Expand Down
3 changes: 2 additions & 1 deletion src/filters/ldap/ldap_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
* );
* foreach ( $status as $line )
* {
* list( $key, $value ) = each( $line );
* $value = current( $line );
* $key = key( $line );
* echo $err[$key][$value] . "\n";
* }
* }
Expand Down
3 changes: 2 additions & 1 deletion src/filters/openid/openid_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@
* );
* foreach ( $status as $line )
* {
* list( $key, $value ) = each( $line );
* $value = current( $line );
* $key = key( $line );
* echo $err[$key][$value] . "\n";
* }
* ?>
Expand Down
3 changes: 2 additions & 1 deletion src/filters/typekey/typekey_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
* );
* foreach ( $status as $line )
* {
* list( $key, $value ) = each( $line );
* $value = current( $line );
* $key = key( $line );
* echo $err[$key][$value] . "\n";
* }
* ?>
Expand Down
3 changes: 2 additions & 1 deletion src/session/authentication_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
* );
* foreach ( $status as $line )
* {
* list( $key, $value ) = each( $line );
* $value = current( $line );
* $key = key( $line );
* echo $err[$key][$value] . "\n";
* }
* }
Expand Down