Znam, znam... ali ovo je jače od mene
PHP kôd:
class Church
{
private static function cronjob ()
{
$people = People::all();
foreach ($people as $candidate)
{
if ( !self::$believers->find ($candidate->id))
{
while ( ! Scare::isScared****less ($candidate->id) )
{
// give some bull****
Preach::story ('You will burn in hell but God loves you!');
Preach::randomStory ();
// add some scary ****
Scare::the****OutOfHim ();
Scare::armageddon ();
// enough?
if (Money::donate ($candidate->id)
{
self::$believers->add ($candidate);
Promise::heaven();
break;
}
}
}
elseif ( ! Money::isDonor ($candidate->id))
{
Promise::byChoice (Money::donate ($candidate->id) ? 'heaven' : 'hell');
}
else
{
Promise::heaven ($candidate->id);
}
Money::ask ($candidate->id);
Scare::the****OutOfHim ();
Scare::armageddon ();
}
if ( self::idle ())
{
if (Enemy::find ())
{
Preach::story ('They want to destroy us and our way of life');
if (self::$believers->findByFaith ('hard core'))
{
War::start ('So help me God');
}
}
elseif (!Enemy::create())
{
Enemy::createRandom ();
War::start ( Cause::random() );
}
}
}
private static function idle()
{
return ! War::started ();
}
}