[Pkg-owncloud-commits] [php-sabre-vobject] 26/43: Less expensive test first

David Prévot taffit at moszumanska.debian.org
Sat Sep 5 15:23:50 UTC 2015


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

taffit pushed a commit to tag 4.0.0-alpha2
in repository php-sabre-vobject.

commit 8661bf8468dd7fe72304f670dfae107526b73f1d
Author: Dominik Tobschall <dominik at fruux.com>
Date:   Thu Jul 30 09:51:07 2015 +0200

    Less expensive test first
---
 lib/BirthdayCalendarGenerator.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/BirthdayCalendarGenerator.php b/lib/BirthdayCalendarGenerator.php
index 8133fb2..05df509 100644
--- a/lib/BirthdayCalendarGenerator.php
+++ b/lib/BirthdayCalendarGenerator.php
@@ -124,6 +124,11 @@ class BirthdayCalendarGenerator {
             // VCardConverter handling the X-APPLE-OMIT-YEAR property for us.
             $object = $object->convert(Document::VCARD40);
 
+            // Skip if the card has no FN property.
+            if (!isset($object->FN)) {
+                continue;
+            }
+
             // Skip if the BDAY property is not of the right type.
             if (!$object->BDAY instanceof Property\VCard\DateAndOrTime) {
                 continue;
@@ -136,11 +141,6 @@ class BirthdayCalendarGenerator {
                 continue;
             }
 
-            // Skip if the card has no FN property.
-            if (!isset($object->FN)) {
-                continue;
-            }
-
             // Set a year if it's not set.
             $unknownYear = false;
 

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