Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Drupal\custom_module\Plugin;
use Drupal\monolog\Logger\Logger;
use Raven_Client;
use Monolog\Handler\RavenHandler;
class HolcimRavenHandler extends RavenHandler {
<?php
function f($x, $y) {
if($x > $y)
return;
if($x % 2)
print f($x+1, $y);
else print f(2*$x - 1, $y);
print $x . " ";
}
$x = 21;