[Pkg-owncloud-commits] [php-sabre-vobject] 171/341: Fix CS.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit 189c2504886735f4f7fde0d93164dd47b2c9c72f
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Thu Jan 22 08:41:53 2015 +0100

    Fix CS.
---
 lib/Component.php | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/lib/Component.php b/lib/Component.php
index 9277759..ee7b1af 100644
--- a/lib/Component.php
+++ b/lib/Component.php
@@ -61,7 +61,7 @@ class Component extends Node {
             // natural way.
             $list = $this->getDefaults();
             $nodes = [];
-            foreach($children as $key=>$value) {
+            foreach ($children as $key=>$value) {
                 if ($value instanceof Node) {
                     if (isset($list[$value->name])) {
                         unset($list[$value->name]);
@@ -71,14 +71,14 @@ class Component extends Node {
                     $list[$key] = $value;
                 }
             }
-            foreach($list as $key=>$value) {
+            foreach ($list as $key=>$value) {
                 $this->add($key, $value);
             }
-            foreach($nodes as $node) {
+            foreach ($nodes as $node) {
                 $this->add($node);
             }
         } else {
-            foreach($children as $k=>$child) {
+            foreach ($children as $k=>$child) {
                 if ($child instanceof Node) {
 
                     // Component or Property
@@ -151,12 +151,12 @@ class Component extends Node {
 
         if (is_string($item)) {
             $children = $this->select($item);
-            foreach($children as $k=>$child) {
+            foreach ($children as $k=>$child) {
                 unset($this->children[$k]);
             }
             return $child;
         } else {
-            foreach($this->children as $k => $child) {
+            foreach ($this->children as $k => $child) {
                 if ($child===$item) {
                     unset($this->children[$k]);
                     return $child;
@@ -189,7 +189,7 @@ class Component extends Node {
     function getComponents() {
 
         $result = [];
-        foreach($this->children as $child) {
+        foreach ($this->children as $child) {
             if ($child instanceof Component) {
                 $result[] = $child;
             }
@@ -224,7 +224,7 @@ class Component extends Node {
         }
 
         $result = [];
-        foreach($this->children as $key=>$child) {
+        foreach ($this->children as $key=>$child) {
 
             if (
                 (
@@ -313,7 +313,7 @@ class Component extends Node {
             }
         );
 
-        foreach($this->children as $child) $str.=$child->serialize();
+        foreach ($this->children as $child) $str.=$child->serialize();
         $str.= "END:" . $this->name . "\r\n";
 
         return $str;
@@ -331,7 +331,7 @@ class Component extends Node {
         $components = [];
         $properties = [];
 
-        foreach($this->children as $child) {
+        foreach ($this->children as $child) {
             if ($child instanceof Component) {
                 $components[] = $child->jsonSerialize();
             } else {
@@ -359,7 +359,7 @@ class Component extends Node {
         $components = [];
         $properties = [];
 
-        foreach($this->children as $child) {
+        foreach ($this->children as $child) {
             if ($child instanceof Component) {
                 $components[] = $child;
             } else {
@@ -495,7 +495,7 @@ class Component extends Node {
     function __unset($name) {
 
         $matches = $this->select($name);
-        foreach($matches as $k=>$child) {
+        foreach ($matches as $k=>$child) {
 
             unset($this->children[$k]);
             $child->parent = null;
@@ -514,7 +514,7 @@ class Component extends Node {
      */
     function __clone() {
 
-        foreach($this->children as $key=>$child) {
+        foreach ($this->children as $key=>$child) {
             $this->children[$key] = clone $child;
             $this->children[$key]->parent = $this;
         }
@@ -580,7 +580,7 @@ class Component extends Node {
 
         $messages = [];
 
-        foreach($this->children as $child) {
+        foreach ($this->children as $child) {
             $name = strtoupper($child->name);
             if (!isset($propertyCounters[$name])) {
                 $propertyCounters[$name] = 1;
@@ -590,7 +590,7 @@ class Component extends Node {
             $messages = array_merge($messages, $child->validate($options));
         }
 
-        foreach($rules as $propName => $rule) {
+        foreach ($rules as $propName => $rule) {
 
             switch($rule) {
                 case '0' :

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list