@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * (= uasort, uksort, usort) |
| 128 | 128 | */ |
| 129 | 129 | protected function _uxsortmRec(ArrayObject $a, array $sortFuncs, |
| 130 | - $depth = 0, $sortMode = '') |
|
| 130 | + $depth = 0, $sortMode = '') |
|
| 131 | 131 | { |
| 132 | 132 | $goOn = (count($sortFuncs) > $depth + 1); |
| 133 | 133 | $it = $a->getIterator(); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | |
| 146 | 146 | if ($goOn) { |
| 147 | 147 | $this->_uxsortmRec($it->current(), $sortFuncs, $depth + 1, |
| 148 | - $sortMode); |
|
| 148 | + $sortMode); |
|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | $it->next(); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function __construct(array $array) |
| 33 | 33 | { |
| 34 | - foreach($array as $key => $value) { |
|
| 34 | + foreach ($array as $key => $value) { |
|
| 35 | 35 | if (is_array($value)) { |
| 36 | 36 | $array[$key] = new self($value); |
| 37 | 37 | } |
@@ -8,6 +8,8 @@ |
||
| 8 | 8 | function ensure($types, array $args) |
| 9 | 9 | { |
| 10 | 10 | static $obj = null; |
| 11 | - if ($obj === null) $obj = new TypeSafety(); |
|
| 11 | + if ($obj === null) { |
|
| 12 | + $obj = new TypeSafety(); |
|
| 13 | + } |
|
| 12 | 14 | $obj->ensure($types, $args); |
| 13 | 15 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | if (!$found) { |
| 51 | 51 | // Error |
| 52 | 52 | throw new Exception('Data structure does not seem to be consistent. ' |
| 53 | - . 'Key "' . $ae[1] . '" could not be found.'); |
|
| 53 | + . 'Key "' . $ae[1] . '" could not be found.'); |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |