Skip to content
Snippets Groups Projects
Unverified Commit ff203bc9 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Coding style

parent ebd0bcd5
No related branches found
No related tags found
No related merge requests found
...@@ -63,9 +63,9 @@ class backup_lifecycle_workflow { ...@@ -63,9 +63,9 @@ class backup_lifecycle_workflow {
$this->writer->setIndent(true); $this->writer->setIndent(true);
$this->writer->startDocument(); $this->writer->startDocument();
$this->writer->startElement("workflow"); $this->writer->startElement("workflow");
$this->writeWorkflow(); $this->write_workflow();
$this->writeSteps(); $this->write_steps();
$this->writeTriggers(); $this->write_triggers();
$this->writer->endElement(); $this->writer->endElement();
$this->writer->endDocument(); $this->writer->endDocument();
fwrite($handle, $this->writer->flush()); fwrite($handle, $this->writer->flush());
...@@ -85,10 +85,11 @@ class backup_lifecycle_workflow { ...@@ -85,10 +85,11 @@ class backup_lifecycle_workflow {
die(); die();
} }
/** /**
* Write the workflow with all its attributes to the xmlwriter. * Write the workflow with all its attributes to the xmlwriter.
*/ */
private function writeWorkflow() { private function write_workflow() {
foreach (get_object_vars($this->workflow) as $prop => $value) { foreach (get_object_vars($this->workflow) as $prop => $value) {
$this->writer->writeAttribute($prop, $value); $this->writer->writeAttribute($prop, $value);
} }
...@@ -97,7 +98,7 @@ class backup_lifecycle_workflow { ...@@ -97,7 +98,7 @@ class backup_lifecycle_workflow {
/** /**
* Write all trigger of the workflow with all their attributes to the xmlwriter. * Write all trigger of the workflow with all their attributes to the xmlwriter.
*/ */
private function writeTriggers() { private function write_triggers() {
foreach ($this->trigger as $trigger) { foreach ($this->trigger as $trigger) {
$this->writer->startElement("trigger"); $this->writer->startElement("trigger");
foreach (get_object_vars($trigger) as $prop => $value) { foreach (get_object_vars($trigger) as $prop => $value) {
...@@ -118,7 +119,7 @@ class backup_lifecycle_workflow { ...@@ -118,7 +119,7 @@ class backup_lifecycle_workflow {
/** /**
* Write all steps of the workflow with all their attributes to the xmlwriter. * Write all steps of the workflow with all their attributes to the xmlwriter.
*/ */
private function writeSteps() { private function write_steps() {
foreach ($this->steps as $step) { foreach ($this->steps as $step) {
$this->writer->startElement("step"); $this->writer->startElement("step");
foreach (get_object_vars($step) as $prop => $value) { foreach (get_object_vars($step) as $prop => $value) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment