[Pkg-owncloud-commits] [php-sabre-vobject] 300/341: Coding standards.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:59 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 f1a9a2dc7d25ca57823703b4230de3eccf8627f4
Author: Evert Pot <me at evertpot.com>
Date:   Sat Jul 4 01:31:56 2015 -0400

    Coding standards.
---
 lib/Component.php                              | 4 ++--
 lib/Property.php                               | 2 +-
 tests/VObject/Property/ICalendar/RecurTest.php | 2 +-
 tests/VObject/Property/TextTest.php            | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/Component.php b/lib/Component.php
index 87653b8..197371f 100644
--- a/lib/Component.php
+++ b/lib/Component.php
@@ -661,8 +661,8 @@ class Component extends Node {
     function destroy() {
 
         parent::destroy();
-        foreach($this->children as $childGroup) {
-            foreach($childGroup as $child) {
+        foreach ($this->children as $childGroup) {
+            foreach ($childGroup as $child) {
                 $child->destroy();
             }
         }
diff --git a/lib/Property.php b/lib/Property.php
index 09495d4..cb05d2a 100644
--- a/lib/Property.php
+++ b/lib/Property.php
@@ -652,7 +652,7 @@ abstract class Property extends Node {
     function destroy() {
 
         parent::destroy();
-        foreach($this->parameters as $param) {
+        foreach ($this->parameters as $param) {
             $param->destroy();
         }
         $this->parameters = [];
diff --git a/tests/VObject/Property/ICalendar/RecurTest.php b/tests/VObject/Property/ICalendar/RecurTest.php
index 846fc28..4fb6bc2 100644
--- a/tests/VObject/Property/ICalendar/RecurTest.php
+++ b/tests/VObject/Property/ICalendar/RecurTest.php
@@ -14,7 +14,7 @@ class RecurTest extends \PHPUnit_Framework_TestCase {
         $this->assertInstanceOf('Sabre\VObject\Property\ICalendar\Recur', $recur);
 
         $this->assertEquals(['FREQ' => 'DAILY'], $recur->getParts());
-        $recur->setParts(['freq'   => 'MONTHLY']);
+        $recur->setParts(['freq'    => 'MONTHLY']);
 
         $this->assertEquals(['FREQ' => 'MONTHLY'], $recur->getParts());
 
diff --git a/tests/VObject/Property/TextTest.php b/tests/VObject/Property/TextTest.php
index fe44d7a..a5c79ff 100644
--- a/tests/VObject/Property/TextTest.php
+++ b/tests/VObject/Property/TextTest.php
@@ -10,7 +10,7 @@ class TextTest extends \PHPUnit_Framework_TestCase {
 
         $doc = new VCard([
             'VERSION' => '2.1',
-            'PROP'   => $propValue
+            'PROP'    => $propValue
         ], false);
 
         // Adding quoted-printable, because we're testing if it gets removed

-- 
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