Skip to content

Commit

Permalink
Fix GatewaySupport features view
Browse files Browse the repository at this point in the history
  • Loading branch information
akDeveloper committed Jul 14, 2011
1 parent c674c54 commit a693b80
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/support/GatewaySupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@ public function supported_gateways()

public function features()
{
$tabs = "\t\t\t";
print "Name$tabs";
print "Name" . str_repeat(' ', 26);
foreach ($this->actions as $action) {
print $action . $tabs;
print $action . str_repeat(' ', 30 - strlen($action));
}
print "\n";
print "\r";
foreach ($this->supported_gateways as $gateway) {
$methods = array();
$ref = new ReflectionClass($gateway);
print $ref->getStaticPropertyValue('display_name') . $tabs;
$display_name = $ref->getStaticPropertyValue('display_name');
print $display_name . str_repeat(' ', 30 - strlen($display_name));
foreach ($this->actions as $action) {
if (method_exists($gateway, $action)) {
print "Y" . $tabs;
print "Y" . str_repeat(' ', 29);
} else {
print "N" . $tabs;
print "N" . str_repeat(' ', 29);
}
}
print "\n";
print "\r";
}
}

Expand Down

0 comments on commit a693b80

Please sign in to comment.