Fixed formatting to match PSR-2
parent
2938be5a2d
commit
04cae3c295
@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace pdt256\Shipping;
|
namespace pdt256\Shipping;
|
||||||
|
|
||||||
class Validator {
|
class Validator
|
||||||
public static function checkIfNull($value, $name) {
|
{
|
||||||
if ($value === null) {
|
public static function checkIfNull($value, $name)
|
||||||
throw new \LogicException("$name is not set");
|
{
|
||||||
}
|
if ($value === null) {
|
||||||
}
|
throw new \LogicException("$name is not set");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue