| @@ 67-72 (lines=6) @@ | ||
| 64 | $fbp = []; |
|
| 65 | // handle initializer |
|
| 66 | if (!empty($definition[self::INITIALIZERS_LABEL])) { |
|
| 67 | if (empty($definition[self::INITIALIZERS_LABEL][self::DATA_LABEL])) { |
|
| 68 | throw new DumperException("Defintion has " . |
|
| 69 | self::INITIALIZERS_LABEL . " but no |
|
| 70 | " . self::DATA_LABEL . " node" |
|
| 71 | ); |
|
| 72 | } |
|
| 73 | ||
| 74 | if (empty($definition[self::INITIALIZERS_LABEL][self::TARGET_LABEL])) { |
|
| 75 | throw new DumperException("Defintion has " . |
|
| @@ 74-79 (lines=6) @@ | ||
| 71 | ); |
|
| 72 | } |
|
| 73 | ||
| 74 | if (empty($definition[self::INITIALIZERS_LABEL][self::TARGET_LABEL])) { |
|
| 75 | throw new DumperException("Defintion has " . |
|
| 76 | self::INITIALIZERS_LABEL . " but no |
|
| 77 | " . self::TARGET_LABEL . " node" |
|
| 78 | ); |
|
| 79 | } |
|
| 80 | ||
| 81 | array_push( |
|
| 82 | $fbp, |
|