| @@ 172-181 (lines=10) @@ | ||
| 169 | /** |
|
| 170 | * @return mixed |
|
| 171 | */ |
|
| 172 | private function matchRotate() |
|
| 173 | { |
|
| 174 | preg_match(self::ROTATE_PATTERN, $this->trans, $matches); |
|
| 175 | ||
| 176 | $ret = [$matches['a']]; |
|
| 177 | $ret[] = isset($matches['x']) ? $matches['x'] : null; |
|
| 178 | $ret[] = isset($matches['y']) ? $matches['y'] : null; |
|
| 179 | ||
| 180 | return $ret; |
|
| 181 | } |
|
| 182 | ||
| 183 | private function matchSkewX() |
|
| 184 | { |
|
| @@ 202-209 (lines=8) @@ | ||
| 199 | return $ret; |
|
| 200 | } |
|
| 201 | ||
| 202 | private function matchScale() |
|
| 203 | { |
|
| 204 | preg_match(self::SCALE_PATTERN, $this->trans, $matches); |
|
| 205 | $ret[] = isset($matches['x']) ? $matches['x'] : null; |
|
| 206 | $ret[] = isset($matches['y']) ? $matches['y'] : null; |
|
| 207 | ||
| 208 | return $ret; |
|
| 209 | } |
|
| 210 | ||
| 211 | private function matchMatrix() |
|
| 212 | { |
|
| @@ 223-230 (lines=8) @@ | ||
| 220 | return $matrix; |
|
| 221 | } |
|
| 222 | ||
| 223 | private function matchTranslate() |
|
| 224 | { |
|
| 225 | preg_match(self::TRANSLATE_PATTERN, $this->trans, $matches); |
|
| 226 | $ret[] = isset($matches['x']) ? $matches['x'] : null; |
|
| 227 | $ret[] = isset($matches['y']) ? $matches['y'] : null; |
|
| 228 | ||
| 229 | return $ret; |
|
| 230 | } |
|
| 231 | ||
| 232 | /** |
|
| 233 | * @return array |
|