| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 106 | protected function getWistiaID() { |
||
| 107 | if(preg_match('~wistia_async_([a-z0-9]+)\s~',$this->html,$match)) { |
||
| 108 | $this->wistiaID = trim($match[1]); |
||
| 109 | |||
| 110 | Utils::writeln(sprintf("Found Wistia.net ID %s ", |
||
| 111 | $this->wistiaID |
||
| 112 | )); |
||
| 113 | } |
||
| 114 | else { |
||
| 115 | return false; |
||
| 116 | } |
||
| 117 | } |
||
| 118 | } |
||
| 119 |