[libvirt] [libvirt-php][PATCH 06/14] examples: Fix curly braces indent in libvirt.php

Michal Privoznik mprivozn at redhat.com
Fri Jul 8 13:23:15 UTC 2016


The majority of the code has opening curly brace at the very same
line as the function declaration. Except for the two:
_set_last_error() and set_logfile(). Fix them.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 examples/libvirt.php | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/examples/libvirt.php b/examples/libvirt.php
index 9107885..c60889a 100644
--- a/examples/libvirt.php
+++ b/examples/libvirt.php
@@ -12,14 +12,12 @@ class Libvirt {
             $this->connect($uri);
     }
 
-    function _set_last_error()
-    {
+    function _set_last_error() {
         $this->last_error = libvirt_get_last_error();
         return false;
     }
 
-    function set_logfile($filename)
-    {
+    function set_logfile($filename) {
         if (!libvirt_logfile_set($filename))
             return $this->_set_last_error();
 
-- 
2.8.4




More information about the libvir-list mailing list