Evgeny Budakov EvgEvg

View gist:6127006
1 2 3 4 5 6 7 8 9 10
<?php
 
namespace Balanced;
 
/**
* Bootstrapper for Balanced does autoloading and resource initialization.
*/
class Bootstrap
{
const DIR_SEPARATOR = DIRECTORY_SEPARATOR;
View gist:6126988
1 2 3 4 5 6 7 8 9 10
<?php
require_once('vendor/autoload.php');
 
Httpful\Bootstrap::init();
RESTful\Bootstrap::init();
Balanced\Bootstrap::init();
 
// Switch API key depending on config
$API_KEY_SECRET =
Mage::getStoreConfig('payment/payments/test')
View screening.js
1 2 3 4 5 6
// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}
Something went wrong with that request. Please try again.