@@ 48-50 (lines=3) @@ | ||
45 | $re = '/var richdocuments_([A-z]+) = (.*);/m'; |
|
46 | preg_match_all($re, $contents, $matches, PREG_SET_ORDER, 0); |
|
47 | $result = []; |
|
48 | foreach ($matches as $match) { |
|
49 | $result[$match[1]] = str_replace("'", "", $match[2]); |
|
50 | } |
|
51 | ||
52 | $this->fileId = $result['fileId']; |
|
53 | $this->wopiToken = $result['token']; |
|
@@ 76-78 (lines=3) @@ | ||
73 | $re = '/var richdocuments_([A-z]+) = (.*);/m'; |
|
74 | preg_match_all($re, $contents, $matches, PREG_SET_ORDER, 0); |
|
75 | $result = []; |
|
76 | foreach ($matches as $match) { |
|
77 | $result[$match[1]] = str_replace("'", "", $match[2]); |
|
78 | } |
|
79 | ||
80 | $this->fileId = $result['fileId']; |
|
81 | $this->wopiToken = $result['token']; |
|
@@ 109-111 (lines=3) @@ | ||
106 | $re = '/var richdocuments_([A-z]+) = (.*);/m'; |
|
107 | preg_match_all($re, $contents, $matches, PREG_SET_ORDER, 0); |
|
108 | $result = []; |
|
109 | foreach ($matches as $match) { |
|
110 | $result[$match[1]] = str_replace("'", "", $match[2]); |
|
111 | } |
|
112 | ||
113 | $this->fileId = $result['fileId']; |
|
114 | $this->wopiToken = $result['token']; |