| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 9 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 20 | public static function rewriteSetStructure()  | 
            ||
| 21 |     { | 
            ||
| 22 | $config = Configuration::get();  | 
            ||
| 23 | $rewrite = isset($config['rewrite']) ? $config['rewrite'] : [];  | 
            ||
| 24 | $rewrite = isset($rewrite['structure']) ? $rewrite['structure'] : '/%postname%/';  | 
            ||
| 25 | |||
| 26 |         CLI::execCommand('rewrite', ['structure', "'{$rewrite}'"], ['hard' => '']); | 
            ||
| 27 |         CLI::execCommand('rewrite', ['flush'], ['hard' => '']); | 
            ||
| 28 | }  | 
            ||
| 29 | }  | 
            ||
| 30 |