I hereby claim:
- I am dlundgren on github.
- I am dlundgren (https://keybase.io/dlundgren) on keybase.
- I have a public key whose fingerprint is E53D 10BF C923 98E3 AA6D 8992 01F7 FF18 26F5 4D7F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
namespace Domain\Shared; | |
// create this separately | |
use Domain\Exception\InvalidProperty; | |
use Domain\Exception\Immutable; | |
/** | |
* Allows public access to the private properties of an object. | |
* |
<?php | |
/** | |
* Class BlocklistDe | |
* | |
* Parses a BlockListDe list text file and converts multiple hosts into CIDR notation | |
* if possible | |
* | |
* @author David Lundgren | |
* @license MIT | |
*/ |
<?php | |
/** | |
* Partitions the array in a linear fashion. | |
* | |
* This is similar to array_chunk | |
* | |
* @param array $ary The array to partition | |
* @param int $partitions How many partitions should the array be split into. | |
* Default is to calculate off of the input array length | |
* @return array |
<?php | |
namespace dlundgren\Symfony\Component\DependencyInjection; | |
use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException; | |
use Symfony\Component\DependencyInjection\Exception\ParameterCircularReferenceException; | |
use Symfony\Component\DependencyInjection\Exception\RuntimeException; | |
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; | |
/** | |
* Holds parameters. |
<?php | |
/** | |
* Checks if the timezone is set and valid. | |
* | |
* @param none | |
* @return bool True if the timezone is set and valid, false otherwise. | |
*/ | |
function isTimezoneSetAndValid () { | |
$tz = date_default_timezone_get(); | |
if (empty($tz)) { |