@@ -244,8 +244,7 @@ |
||
| 244 | 244 | |
| 245 | 245 | if ($this->interactive) { |
| 246 | 246 | continue; |
| 247 | - } |
|
| 248 | - else { |
|
| 247 | + } else { |
|
| 249 | 248 | return true; |
| 250 | 249 | } |
| 251 | 250 | } |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | } elseif ( $object == 'r' || $object == 'resource' ) { |
| 82 | 82 | $this->seedResources($type, $name, $id, $date); |
| 83 | 83 | |
| 84 | - } elseif ( $object == 's' || $object == 'snippet' ) { |
|
| 84 | + } elseif ( $object == 's' || $object == 'snippet' ) { |
|
| 85 | 85 | $this->seedSnippets($type, $name, $id); |
| 86 | 86 | |
| 87 | 87 | } elseif ( $object == 'x' || $object == 'systemSettings' ) { |
@@ -572,10 +572,14 @@ |
||
| 572 | 572 | $success= true; |
| 573 | 573 | |
| 574 | 574 | $xmlFile = MODX_CORE_PATH.'model/schema/modx.action.fields.schema.xml'; |
| 575 | - if (!file_exists($xmlFile)) return false; |
|
| 575 | + if (!file_exists($xmlFile)) { |
|
| 576 | + return false; |
|
| 577 | + } |
|
| 576 | 578 | |
| 577 | 579 | $xml = @file_get_contents($xmlFile); |
| 578 | - if (empty($xml)) return false; |
|
| 580 | + if (empty($xml)) { |
|
| 581 | + return false; |
|
| 582 | + } |
|
| 579 | 583 | |
| 580 | 584 | $xml = @simplexml_load_string($xml); |
| 581 | 585 | |