Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
elkuku committed Jul 7, 2018
1 parent 08275db commit e429291
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/Language/Debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ public static function debugPrintTranslateds(bool $untranslatedOnly = false) : v
echo '</table>';
}

public static function debugPrintEvents()
/**
* Print loaded language files.
*
* @return void
*/
public static function debugPrintEvents(): void
{
$events = G11n::getEvents();

Expand All @@ -112,31 +117,37 @@ public static function debugPrintEvents()
echo '<h3>No events recorded.</h3>';
}


echo '<h2 class="g11n-debug-table">Events</h2>';

echo '<table class="g11n-debug-table">';
echo '<tr>';

foreach ($events[0] as $key => $event)
{
echo "<th>$key</th>";
}

echo '</tr>';

foreach ($events as $event)
{
echo '<tr>';

foreach ($event as $e)
{

echo "<td>$e</td>";
}

echo '</tr>';
}

echo '</table>';

}

/**
* @return string
*/
private static function getCSS(): string
{
$css = [];
Expand Down

0 comments on commit e429291

Please sign in to comment.