Conditions | 5 |
Paths | 9 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function doUpdate() { |
||
31 | if ( !$this->callback ) { |
||
32 | return; |
||
33 | } |
||
34 | |||
35 | $autoTrx = $this->dbw->getFlag( DBO_TRX ); |
||
36 | $this->dbw->clearFlag( DBO_TRX ); |
||
37 | try { |
||
38 | /** @var Exception $e */ |
||
39 | $e = null; |
||
40 | call_user_func_array( $this->callback, [ $this->dbw, $this->fname ] ); |
||
41 | } catch ( Exception $e ) { |
||
|
|||
42 | } |
||
43 | if ( $autoTrx ) { |
||
44 | $this->dbw->setFlag( DBO_TRX ); |
||
45 | } |
||
46 | if ( $e ) { |
||
47 | throw $e; |
||
48 | } |
||
49 | } |
||
50 | |||
61 |