[Pkg-owncloud-commits] [php-sabre-vobject] 36/106: foreach on separate line.
David Prévot
taffit at moszumanska.debian.org
Fri Aug 22 15:10:59 UTC 2014
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 97d3765618d8b7a62c90d6801dc6f103fce2bfdc
Author: Evert Pot <me at evertpot.com>
Date: Wed Jul 23 18:03:40 2014 -0400
foreach on separate line.
---
lib/Sabre/VObject/ITip/Broker.php | 59 ++++++++++++++++++++-------------------
1 file changed, 31 insertions(+), 28 deletions(-)
diff --git a/lib/Sabre/VObject/ITip/Broker.php b/lib/Sabre/VObject/ITip/Broker.php
index e83ddd5..4bc2755 100644
--- a/lib/Sabre/VObject/ITip/Broker.php
+++ b/lib/Sabre/VObject/ITip/Broker.php
@@ -606,39 +606,42 @@ class Broker {
}
$value = isset($vevent->{'RECURRENCE-ID'})?$vevent->{'RECURRENCE-ID'}->getValue():'master';
- if(isset($vevent->ATTENDEE)) foreach($vevent->ATTENDEE as $attendee) {
+ if(isset($vevent->ATTENDEE)) {
+ foreach($vevent->ATTENDEE as $attendee) {
- if ($this->scheduleAgentServerRules &&
- isset($attendee['SCHEDULE-AGENT']) &&
- strtoupper($attendee['SCHEDULE-AGENT']->getValue()) === 'CLIENT'
- ) {
- continue;
- }
- $partStat =
- isset($attendee['PARTSTAT']) ?
- strtoupper($attendee['PARTSTAT']) :
- 'NEEDS-ACTION';
-
- if (isset($attendees[$attendee->getValue()])) {
- $attendees[$attendee->getValue()]['instances'][$value] = array(
- 'id' => $value,
- 'partstat' => $partStat,
- );
- } else {
- $attendees[$attendee->getValue()] = array(
- 'href' => $attendee->getValue(),
- 'instances' => array(
- $value => array(
- 'id' => $value,
- 'partstat' => $partStat,
+ if ($this->scheduleAgentServerRules &&
+ isset($attendee['SCHEDULE-AGENT']) &&
+ strtoupper($attendee['SCHEDULE-AGENT']->getValue()) === 'CLIENT'
+ ) {
+ continue;
+ }
+ $partStat =
+ isset($attendee['PARTSTAT']) ?
+ strtoupper($attendee['PARTSTAT']) :
+ 'NEEDS-ACTION';
+
+ if (isset($attendees[$attendee->getValue()])) {
+ $attendees[$attendee->getValue()]['instances'][$value] = array(
+ 'id' => $value,
+ 'partstat' => $partStat,
+ );
+ } else {
+ $attendees[$attendee->getValue()] = array(
+ 'href' => $attendee->getValue(),
+ 'instances' => array(
+ $value => array(
+ 'id' => $value,
+ 'partstat' => $partStat,
+ ),
),
- ),
- 'name' => isset($attendee['CN'])?(string)$attendee['CN']:null,
- );
+ 'name' => isset($attendee['CN'])?(string)$attendee['CN']:null,
+ );
+ }
+
}
+ $instances[$value] = $vevent;
}
- $instances[$value] = $vevent;
}
--
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