From 871c387104d135cc50630b3609229b0908fe9e6c Mon Sep 17 00:00:00 2001 From: Paul Mehrer Date: Thu, 26 Feb 2026 11:31:58 +0100 Subject: [PATCH] php85 case semicolon and cast canonical names adjusted --- library/Zend/Amf/Parse/Amf3/Serializer.php | 2 +- .../Infrastructure/Adapter/Rackspace.php | 4 +-- library/Zend/Gdata/Analytics/AccountEntry.php | 6 ++--- library/Zend/Gdata/Analytics/DataEntry.php | 4 +-- library/Zend/Gdata/Calendar/EventEntry.php | 8 +++--- library/Zend/Gdata/Calendar/EventFeed.php | 2 +- library/Zend/Gdata/Calendar/ListEntry.php | 12 ++++----- library/Zend/Gdata/Calendar/ListFeed.php | 2 +- library/Zend/Gdata/Exif/Extension/Tags.php | 20 +++++++------- library/Zend/Gdata/Extension/Comments.php | 2 +- library/Zend/Gdata/Extension/EntryLink.php | 2 +- library/Zend/Gdata/Extension/FeedLink.php | 2 +- .../Zend/Gdata/Extension/OriginalEvent.php | 2 +- library/Zend/Gdata/Extension/When.php | 2 +- library/Zend/Gdata/Gapps/EmailListEntry.php | 4 +-- .../Gdata/Gapps/EmailListRecipientEntry.php | 2 +- library/Zend/Gdata/Gapps/GroupEntry.php | 2 +- library/Zend/Gdata/Gapps/MemberEntry.php | 2 +- library/Zend/Gdata/Gapps/NicknameEntry.php | 4 +-- library/Zend/Gdata/Gapps/OwnerEntry.php | 2 +- library/Zend/Gdata/Gapps/UserEntry.php | 8 +++--- .../Zend/Gdata/Geo/Extension/GeoRssWhere.php | 2 +- library/Zend/Gdata/Geo/Extension/GmlPoint.php | 2 +- library/Zend/Gdata/Kind/EventEntry.php | 22 ++++++++-------- .../Zend/Gdata/Media/Extension/MediaGroup.php | 26 +++++++++---------- library/Zend/Gdata/Photos/AlbumEntry.php | 24 ++++++++--------- library/Zend/Gdata/Photos/AlbumFeed.php | 20 +++++++------- library/Zend/Gdata/Photos/CommentEntry.php | 4 +-- library/Zend/Gdata/Photos/PhotoEntry.php | 26 +++++++++---------- library/Zend/Gdata/Photos/PhotoFeed.php | 24 ++++++++--------- library/Zend/Gdata/Photos/TagEntry.php | 2 +- library/Zend/Gdata/Photos/UserEntry.php | 12 ++++----- library/Zend/Gdata/Photos/UserFeed.php | 6 ++--- library/Zend/Gdata/Spreadsheets/CellEntry.php | 2 +- library/Zend/Gdata/Spreadsheets/CellFeed.php | 4 +-- library/Zend/Gdata/Spreadsheets/ListEntry.php | 2 +- .../Gdata/Spreadsheets/WorksheetEntry.php | 4 +-- library/Zend/Pdf/Resource/Image/Png.php | 2 +- library/Zend/Wildfire/Channel/HttpHeaders.php | 2 +- 39 files changed, 140 insertions(+), 140 deletions(-) diff --git a/library/Zend/Amf/Parse/Amf3/Serializer.php b/library/Zend/Amf/Parse/Amf3/Serializer.php index f4baf0a00..32cca4dbb 100644 --- a/library/Zend/Amf/Parse/Amf3/Serializer.php +++ b/library/Zend/Amf/Parse/Amf3/Serializer.php @@ -116,7 +116,7 @@ public function writeTypeMarker(&$data, $markerType = null, $dataByVal = false) case Zend_Amf_Constants::AMF3_BYTEARRAY: $this->writeByteArray($data); break; - case Zend_Amf_Constants::AMF3_XMLSTRING; + case Zend_Amf_Constants::AMF3_XMLSTRING: $this->writeXml($data); break; default: diff --git a/library/Zend/Cloud/Infrastructure/Adapter/Rackspace.php b/library/Zend/Cloud/Infrastructure/Adapter/Rackspace.php index 9dbc646c4..7de5a6890 100644 --- a/library/Zend/Cloud/Infrastructure/Adapter/Rackspace.php +++ b/library/Zend/Cloud/Infrastructure/Adapter/Rackspace.php @@ -421,10 +421,10 @@ public function monitorInstance($id, $metric, $options = null) break; case Zend_Cloud_Infrastructure_Instance::MONITOR_RAM: if (preg_match('/(\d+)k total/', $output,$match)) { - $total = (integer) $match[1]; + $total = (int) $match[1]; } if (preg_match('/(\d+)k used/', $output,$match)) { - $used = (integer) $match[1]; + $used = (int) $match[1]; } if ($total>0) { $usage= (float) $used/$total; diff --git a/library/Zend/Gdata/Analytics/AccountEntry.php b/library/Zend/Gdata/Analytics/AccountEntry.php index 4896c6e20..0d538e940 100644 --- a/library/Zend/Gdata/Analytics/AccountEntry.php +++ b/library/Zend/Gdata/Analytics/AccountEntry.php @@ -79,17 +79,17 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName){ - case $this->lookupNamespace('analytics') . ':' . 'property'; + case $this->lookupNamespace('analytics') . ':' . 'property': $property = new Zend_Gdata_Analytics_Extension_Property(); $property->transferFromDOM($child); $this->{$property->getName()} = $property; break; - case $this->lookupNamespace('analytics') . ':' . 'tableId'; + case $this->lookupNamespace('analytics') . ':' . 'tableId': $tableId = new Zend_Gdata_Analytics_Extension_TableId(); $tableId->transferFromDOM($child); $this->_tableId = $tableId; break; - case $this->lookupNamespace('ga') . ':' . 'goal'; + case $this->lookupNamespace('ga') . ':' . 'goal': $goal = new Zend_Gdata_Analytics_Extension_Goal(); $goal->transferFromDOM($child); $this->_goal = $goal; diff --git a/library/Zend/Gdata/Analytics/DataEntry.php b/library/Zend/Gdata/Analytics/DataEntry.php index a03ee7b70..355f025a5 100644 --- a/library/Zend/Gdata/Analytics/DataEntry.php +++ b/library/Zend/Gdata/Analytics/DataEntry.php @@ -58,12 +58,12 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('analytics') . ':' . 'dimension'; + case $this->lookupNamespace('analytics') . ':' . 'dimension': $dimension = new Zend_Gdata_Analytics_Extension_Dimension(); $dimension->transferFromDOM($child); $this->_dimensions[] = $dimension; break; - case $this->lookupNamespace('analytics') . ':' . 'metric'; + case $this->lookupNamespace('analytics') . ':' . 'metric': $metric = new Zend_Gdata_Analytics_Extension_Metric(); $metric->transferFromDOM($child); $this->_metrics[] = $metric; diff --git a/library/Zend/Gdata/Calendar/EventEntry.php b/library/Zend/Gdata/Calendar/EventEntry.php index f3b9e186c..9b111e9c7 100644 --- a/library/Zend/Gdata/Calendar/EventEntry.php +++ b/library/Zend/Gdata/Calendar/EventEntry.php @@ -94,22 +94,22 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gCal') . ':' . 'sendEventNotifications'; + case $this->lookupNamespace('gCal') . ':' . 'sendEventNotifications': $sendEventNotifications = new Zend_Gdata_Calendar_Extension_SendEventNotifications(); $sendEventNotifications->transferFromDOM($child); $this->_sendEventNotifications = $sendEventNotifications; break; - case $this->lookupNamespace('gCal') . ':' . 'timezone'; + case $this->lookupNamespace('gCal') . ':' . 'timezone': $timezone = new Zend_Gdata_Calendar_Extension_Timezone(); $timezone->transferFromDOM($child); $this->_timezone = $timezone; break; - case $this->lookupNamespace('atom') . ':' . 'link'; + case $this->lookupNamespace('atom') . ':' . 'link': $link = new Zend_Gdata_Calendar_Extension_Link(); $link->transferFromDOM($child); $this->_link[] = $link; break; - case $this->lookupNamespace('gCal') . ':' . 'quickadd'; + case $this->lookupNamespace('gCal') . ':' . 'quickadd': $quickadd = new Zend_Gdata_Calendar_Extension_QuickAdd(); $quickadd->transferFromDOM($child); $this->_quickadd = $quickadd; diff --git a/library/Zend/Gdata/Calendar/EventFeed.php b/library/Zend/Gdata/Calendar/EventFeed.php index 9e30f9549..f5e138b07 100644 --- a/library/Zend/Gdata/Calendar/EventFeed.php +++ b/library/Zend/Gdata/Calendar/EventFeed.php @@ -80,7 +80,7 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gCal') . ':' . 'timezone'; + case $this->lookupNamespace('gCal') . ':' . 'timezone': $timezone = new Zend_Gdata_Calendar_Extension_Timezone(); $timezone->transferFromDOM($child); $this->_timezone = $timezone; diff --git a/library/Zend/Gdata/Calendar/ListEntry.php b/library/Zend/Gdata/Calendar/ListEntry.php index 9cf3f0a4a..d427ee3c1 100644 --- a/library/Zend/Gdata/Calendar/ListEntry.php +++ b/library/Zend/Gdata/Calendar/ListEntry.php @@ -118,32 +118,32 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gCal') . ':' . 'accesslevel'; + case $this->lookupNamespace('gCal') . ':' . 'accesslevel': $accessLevel = new Zend_Gdata_Calendar_Extension_AccessLevel(); $accessLevel->transferFromDOM($child); $this->_accessLevel = $accessLevel; break; - case $this->lookupNamespace('gCal') . ':' . 'color'; + case $this->lookupNamespace('gCal') . ':' . 'color': $color = new Zend_Gdata_Calendar_Extension_Color(); $color->transferFromDOM($child); $this->_color = $color; break; - case $this->lookupNamespace('gCal') . ':' . 'hidden'; + case $this->lookupNamespace('gCal') . ':' . 'hidden': $hidden = new Zend_Gdata_Calendar_Extension_Hidden(); $hidden->transferFromDOM($child); $this->_hidden = $hidden; break; - case $this->lookupNamespace('gCal') . ':' . 'selected'; + case $this->lookupNamespace('gCal') . ':' . 'selected': $selected = new Zend_Gdata_Calendar_Extension_Selected(); $selected->transferFromDOM($child); $this->_selected = $selected; break; - case $this->lookupNamespace('gCal') . ':' . 'timezone'; + case $this->lookupNamespace('gCal') . ':' . 'timezone': $timezone = new Zend_Gdata_Calendar_Extension_Timezone(); $timezone->transferFromDOM($child); $this->_timezone = $timezone; break; - case $this->lookupNamespace('gd') . ':' . 'where'; + case $this->lookupNamespace('gd') . ':' . 'where': $where = new Zend_Gdata_Extension_Where(); $where->transferFromDOM($child); $this->_where[] = $where; diff --git a/library/Zend/Gdata/Calendar/ListFeed.php b/library/Zend/Gdata/Calendar/ListFeed.php index 26f7243f3..9d766a04a 100644 --- a/library/Zend/Gdata/Calendar/ListFeed.php +++ b/library/Zend/Gdata/Calendar/ListFeed.php @@ -77,7 +77,7 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gCal') . ':' . 'timezone'; + case $this->lookupNamespace('gCal') . ':' . 'timezone': $timezone = new Zend_Gdata_Calendar_Extension_Timezone(); $timezone->transferFromDOM($child); $this->_timezone = $timezone; diff --git a/library/Zend/Gdata/Exif/Extension/Tags.php b/library/Zend/Gdata/Exif/Extension/Tags.php index 23c4ec974..e6e480ea5 100755 --- a/library/Zend/Gdata/Exif/Extension/Tags.php +++ b/library/Zend/Gdata/Exif/Extension/Tags.php @@ -264,52 +264,52 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('exif') . ':' . 'distance'; + case $this->lookupNamespace('exif') . ':' . 'distance': $distance = new Zend_Gdata_Exif_Extension_Distance(); $distance->transferFromDOM($child); $this->_distance = $distance; break; - case $this->lookupNamespace('exif') . ':' . 'exposure'; + case $this->lookupNamespace('exif') . ':' . 'exposure': $exposure = new Zend_Gdata_Exif_Extension_Exposure(); $exposure->transferFromDOM($child); $this->_exposure = $exposure; break; - case $this->lookupNamespace('exif') . ':' . 'flash'; + case $this->lookupNamespace('exif') . ':' . 'flash': $flash = new Zend_Gdata_Exif_Extension_Flash(); $flash->transferFromDOM($child); $this->_flash = $flash; break; - case $this->lookupNamespace('exif') . ':' . 'focallength'; + case $this->lookupNamespace('exif') . ':' . 'focallength': $focalLength = new Zend_Gdata_Exif_Extension_FocalLength(); $focalLength->transferFromDOM($child); $this->_focalLength = $focalLength; break; - case $this->lookupNamespace('exif') . ':' . 'fstop'; + case $this->lookupNamespace('exif') . ':' . 'fstop': $fStop = new Zend_Gdata_Exif_Extension_FStop(); $fStop->transferFromDOM($child); $this->_fStop = $fStop; break; - case $this->lookupNamespace('exif') . ':' . 'imageUniqueID'; + case $this->lookupNamespace('exif') . ':' . 'imageUniqueID': $imageUniqueId = new Zend_Gdata_Exif_Extension_ImageUniqueId(); $imageUniqueId->transferFromDOM($child); $this->_imageUniqueId = $imageUniqueId; break; - case $this->lookupNamespace('exif') . ':' . 'iso'; + case $this->lookupNamespace('exif') . ':' . 'iso': $iso = new Zend_Gdata_Exif_Extension_Iso(); $iso->transferFromDOM($child); $this->_iso = $iso; break; - case $this->lookupNamespace('exif') . ':' . 'make'; + case $this->lookupNamespace('exif') . ':' . 'make': $make = new Zend_Gdata_Exif_Extension_Make(); $make->transferFromDOM($child); $this->_make = $make; break; - case $this->lookupNamespace('exif') . ':' . 'model'; + case $this->lookupNamespace('exif') . ':' . 'model': $model = new Zend_Gdata_Exif_Extension_Model(); $model->transferFromDOM($child); $this->_model = $model; break; - case $this->lookupNamespace('exif') . ':' . 'time'; + case $this->lookupNamespace('exif') . ':' . 'time': $time = new Zend_Gdata_Exif_Extension_Time(); $time->transferFromDOM($child); $this->_time = $time; diff --git a/library/Zend/Gdata/Extension/Comments.php b/library/Zend/Gdata/Extension/Comments.php index 3d6ca8e70..c355bf81b 100644 --- a/library/Zend/Gdata/Extension/Comments.php +++ b/library/Zend/Gdata/Extension/Comments.php @@ -66,7 +66,7 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'feedLink'; + case $this->lookupNamespace('gd') . ':' . 'feedLink': $feedLink = new Zend_Gdata_Extension_FeedLink(); $feedLink->transferFromDOM($child); $this->_feedLink = $feedLink; diff --git a/library/Zend/Gdata/Extension/EntryLink.php b/library/Zend/Gdata/Extension/EntryLink.php index a0c53d012..12831ca6a 100644 --- a/library/Zend/Gdata/Extension/EntryLink.php +++ b/library/Zend/Gdata/Extension/EntryLink.php @@ -73,7 +73,7 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('atom') . ':' . 'entry'; + case $this->lookupNamespace('atom') . ':' . 'entry': $entry = new Zend_Gdata_Entry(); $entry->transferFromDOM($child); $this->_entry = $entry; diff --git a/library/Zend/Gdata/Extension/FeedLink.php b/library/Zend/Gdata/Extension/FeedLink.php index e33ed9c25..26e0ec090 100644 --- a/library/Zend/Gdata/Extension/FeedLink.php +++ b/library/Zend/Gdata/Extension/FeedLink.php @@ -76,7 +76,7 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('atom') . ':' . 'feed'; + case $this->lookupNamespace('atom') . ':' . 'feed': $feed = new Zend_Gdata_Feed(); $feed->transferFromDOM($child); $this->_feed = $feed; diff --git a/library/Zend/Gdata/Extension/OriginalEvent.php b/library/Zend/Gdata/Extension/OriginalEvent.php index af5cd4866..14ec3bd8f 100644 --- a/library/Zend/Gdata/Extension/OriginalEvent.php +++ b/library/Zend/Gdata/Extension/OriginalEvent.php @@ -88,7 +88,7 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'when'; + case $this->lookupNamespace('gd') . ':' . 'when': $when = new Zend_Gdata_Extension_When(); $when->transferFromDOM($child); $this->_when = $when; diff --git a/library/Zend/Gdata/Extension/When.php b/library/Zend/Gdata/Extension/When.php index 38dd59461..2f965951e 100644 --- a/library/Zend/Gdata/Extension/When.php +++ b/library/Zend/Gdata/Extension/When.php @@ -76,7 +76,7 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'reminder'; + case $this->lookupNamespace('gd') . ':' . 'reminder': $reminder = new Zend_Gdata_Extension_Reminder(); $reminder->transferFromDOM($child); $this->_reminders[] = $reminder; diff --git a/library/Zend/Gdata/Gapps/EmailListEntry.php b/library/Zend/Gdata/Gapps/EmailListEntry.php index fe1c7f745..b1224fcb1 100644 --- a/library/Zend/Gdata/Gapps/EmailListEntry.php +++ b/library/Zend/Gdata/Gapps/EmailListEntry.php @@ -121,12 +121,12 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('apps') . ':' . 'emailList'; + case $this->lookupNamespace('apps') . ':' . 'emailList': $emailList = new Zend_Gdata_Gapps_Extension_EmailList(); $emailList->transferFromDOM($child); $this->_emailList = $emailList; break; - case $this->lookupNamespace('gd') . ':' . 'feedLink'; + case $this->lookupNamespace('gd') . ':' . 'feedLink': $feedLink = new Zend_Gdata_Extension_FeedLink(); $feedLink->transferFromDOM($child); $this->_feedLink[] = $feedLink; diff --git a/library/Zend/Gdata/Gapps/EmailListRecipientEntry.php b/library/Zend/Gdata/Gapps/EmailListRecipientEntry.php index 40c70380a..d8b6a9b6e 100644 --- a/library/Zend/Gdata/Gapps/EmailListRecipientEntry.php +++ b/library/Zend/Gdata/Gapps/EmailListRecipientEntry.php @@ -107,7 +107,7 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'who'; + case $this->lookupNamespace('gd') . ':' . 'who': $who = new Zend_Gdata_Extension_Who(); $who->transferFromDOM($child); $this->_who = $who; diff --git a/library/Zend/Gdata/Gapps/GroupEntry.php b/library/Zend/Gdata/Gapps/GroupEntry.php index d5b968a07..74b3e5401 100644 --- a/library/Zend/Gdata/Gapps/GroupEntry.php +++ b/library/Zend/Gdata/Gapps/GroupEntry.php @@ -105,7 +105,7 @@ protected function takeChildFromDOM($child) switch ($absoluteNodeName) { - case $this->lookupNamespace('apps') . ':' . 'property'; + case $this->lookupNamespace('apps') . ':' . 'property': $property = new Zend_Gdata_Gapps_Extension_Property(); $property->transferFromDOM($child); $this->_property[] = $property; diff --git a/library/Zend/Gdata/Gapps/MemberEntry.php b/library/Zend/Gdata/Gapps/MemberEntry.php index 23a50af9c..5bb7b2cfe 100644 --- a/library/Zend/Gdata/Gapps/MemberEntry.php +++ b/library/Zend/Gdata/Gapps/MemberEntry.php @@ -105,7 +105,7 @@ protected function takeChildFromDOM($child) switch ($absoluteNodeName) { - case $this->lookupNamespace('apps') . ':' . 'property'; + case $this->lookupNamespace('apps') . ':' . 'property': $property = new Zend_Gdata_Gapps_Extension_Property(); $property->transferFromDOM($child); $this->_property[] = $property; diff --git a/library/Zend/Gdata/Gapps/NicknameEntry.php b/library/Zend/Gdata/Gapps/NicknameEntry.php index deb278ded..0814cd30a 100644 --- a/library/Zend/Gdata/Gapps/NicknameEntry.php +++ b/library/Zend/Gdata/Gapps/NicknameEntry.php @@ -120,12 +120,12 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('apps') . ':' . 'login'; + case $this->lookupNamespace('apps') . ':' . 'login': $login = new Zend_Gdata_Gapps_Extension_Login(); $login->transferFromDOM($child); $this->_login = $login; break; - case $this->lookupNamespace('apps') . ':' . 'nickname'; + case $this->lookupNamespace('apps') . ':' . 'nickname': $nickname = new Zend_Gdata_Gapps_Extension_Nickname(); $nickname->transferFromDOM($child); $this->_nickname = $nickname; diff --git a/library/Zend/Gdata/Gapps/OwnerEntry.php b/library/Zend/Gdata/Gapps/OwnerEntry.php index 07f303deb..a830ad9b3 100644 --- a/library/Zend/Gdata/Gapps/OwnerEntry.php +++ b/library/Zend/Gdata/Gapps/OwnerEntry.php @@ -105,7 +105,7 @@ protected function takeChildFromDOM($child) switch ($absoluteNodeName) { - case $this->lookupNamespace('apps') . ':' . 'property'; + case $this->lookupNamespace('apps') . ':' . 'property': $property = new Zend_Gdata_Gapps_Extension_Property(); $property->transferFromDOM($child); $this->_property[] = $property; diff --git a/library/Zend/Gdata/Gapps/UserEntry.php b/library/Zend/Gdata/Gapps/UserEntry.php index 9e7ffcc92..733d6eff9 100644 --- a/library/Zend/Gdata/Gapps/UserEntry.php +++ b/library/Zend/Gdata/Gapps/UserEntry.php @@ -150,22 +150,22 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('apps') . ':' . 'login'; + case $this->lookupNamespace('apps') . ':' . 'login': $login = new Zend_Gdata_Gapps_Extension_Login(); $login->transferFromDOM($child); $this->_login = $login; break; - case $this->lookupNamespace('apps') . ':' . 'name'; + case $this->lookupNamespace('apps') . ':' . 'name': $name = new Zend_Gdata_Gapps_Extension_Name(); $name->transferFromDOM($child); $this->_name = $name; break; - case $this->lookupNamespace('apps') . ':' . 'quota'; + case $this->lookupNamespace('apps') . ':' . 'quota': $quota = new Zend_Gdata_Gapps_Extension_Quota(); $quota->transferFromDOM($child); $this->_quota = $quota; break; - case $this->lookupNamespace('gd') . ':' . 'feedLink'; + case $this->lookupNamespace('gd') . ':' . 'feedLink': $feedLink = new Zend_Gdata_Extension_FeedLink(); $feedLink->transferFromDOM($child); $this->_feedLink[] = $feedLink; diff --git a/library/Zend/Gdata/Geo/Extension/GeoRssWhere.php b/library/Zend/Gdata/Geo/Extension/GeoRssWhere.php index dd5e9472d..7db77b6ef 100755 --- a/library/Zend/Gdata/Geo/Extension/GeoRssWhere.php +++ b/library/Zend/Gdata/Geo/Extension/GeoRssWhere.php @@ -101,7 +101,7 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gml') . ':' . 'Point'; + case $this->lookupNamespace('gml') . ':' . 'Point': $point = new Zend_Gdata_Geo_Extension_GmlPoint(); $point->transferFromDOM($child); $this->_point = $point; diff --git a/library/Zend/Gdata/Geo/Extension/GmlPoint.php b/library/Zend/Gdata/Geo/Extension/GmlPoint.php index c29bb8afd..4eec77c06 100755 --- a/library/Zend/Gdata/Geo/Extension/GmlPoint.php +++ b/library/Zend/Gdata/Geo/Extension/GmlPoint.php @@ -101,7 +101,7 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gml') . ':' . 'pos'; + case $this->lookupNamespace('gml') . ':' . 'pos': $pos = new Zend_Gdata_Geo_Extension_GmlPos(); $pos->transferFromDOM($child); $this->_pos = $pos; diff --git a/library/Zend/Gdata/Kind/EventEntry.php b/library/Zend/Gdata/Kind/EventEntry.php index 4f1a328bc..bd8aafec5 100644 --- a/library/Zend/Gdata/Kind/EventEntry.php +++ b/library/Zend/Gdata/Kind/EventEntry.php @@ -169,58 +169,58 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'where'; + case $this->lookupNamespace('gd') . ':' . 'where': $where = new Zend_Gdata_Extension_Where(); $where->transferFromDOM($child); $this->_where[] = $where; break; - case $this->lookupNamespace('gd') . ':' . 'when'; + case $this->lookupNamespace('gd') . ':' . 'when': $when = new Zend_Gdata_Extension_When(); $when->transferFromDOM($child); $this->_when[] = $when; break; - case $this->lookupNamespace('gd') . ':' . 'who'; + case $this->lookupNamespace('gd') . ':' . 'who': $who = new Zend_Gdata_Extension_Who(); $who ->transferFromDOM($child); $this->_who[] = $who; break; - case $this->lookupNamespace('gd') . ':' . 'recurrence'; + case $this->lookupNamespace('gd') . ':' . 'recurrence': $recurrence = new Zend_Gdata_Extension_Recurrence(); $recurrence->transferFromDOM($child); $this->_recurrence = $recurrence; break; - case $this->lookupNamespace('gd') . ':' . 'eventStatus'; + case $this->lookupNamespace('gd') . ':' . 'eventStatus': $eventStatus = new Zend_Gdata_Extension_EventStatus(); $eventStatus->transferFromDOM($child); $this->_eventStatus = $eventStatus; break; - case $this->lookupNamespace('gd') . ':' . 'comments'; + case $this->lookupNamespace('gd') . ':' . 'comments': $comments = new Zend_Gdata_Extension_Comments(); $comments->transferFromDOM($child); $this->_comments = $comments; break; - case $this->lookupNamespace('gd') . ':' . 'transparency'; + case $this->lookupNamespace('gd') . ':' . 'transparency': $transparency = new Zend_Gdata_Extension_Transparency(); $transparency ->transferFromDOM($child); $this->_transparency = $transparency; break; - case $this->lookupNamespace('gd') . ':' . 'visibility'; + case $this->lookupNamespace('gd') . ':' . 'visibility': $visiblity = new Zend_Gdata_Extension_Visibility(); $visiblity ->transferFromDOM($child); $this->_visibility = $visiblity; break; - case $this->lookupNamespace('gd') . ':' . 'recurrenceException'; + case $this->lookupNamespace('gd') . ':' . 'recurrenceException': require_once 'Zend/Gdata/Extension/RecurrenceException.php'; $recurrenceException = new Zend_Gdata_Extension_RecurrenceException(); $recurrenceException ->transferFromDOM($child); $this->_recurrenceException[] = $recurrenceException; break; - case $this->lookupNamespace('gd') . ':' . 'originalEvent'; + case $this->lookupNamespace('gd') . ':' . 'originalEvent': $originalEvent = new Zend_Gdata_Extension_OriginalEvent(); $originalEvent ->transferFromDOM($child); $this->_originalEvent = $originalEvent; break; - case $this->lookupNamespace('gd') . ':' . 'extendedProperty'; + case $this->lookupNamespace('gd') . ':' . 'extendedProperty': $extProp = new Zend_Gdata_Extension_ExtendedProperty(); $extProp->transferFromDOM($child); $this->_extendedProperty[] = $extProp; diff --git a/library/Zend/Gdata/Media/Extension/MediaGroup.php b/library/Zend/Gdata/Media/Extension/MediaGroup.php index 518ab3c6c..1f83e2423 100755 --- a/library/Zend/Gdata/Media/Extension/MediaGroup.php +++ b/library/Zend/Gdata/Media/Extension/MediaGroup.php @@ -258,67 +258,67 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('media') . ':' . 'content'; + case $this->lookupNamespace('media') . ':' . 'content': $content = new Zend_Gdata_Media_Extension_MediaContent(); $content->transferFromDOM($child); $this->_content[] = $content; break; - case $this->lookupNamespace('media') . ':' . 'category'; + case $this->lookupNamespace('media') . ':' . 'category': $category = new Zend_Gdata_Media_Extension_MediaCategory(); $category->transferFromDOM($child); $this->_category[] = $category; break; - case $this->lookupNamespace('media') . ':' . 'copyright'; + case $this->lookupNamespace('media') . ':' . 'copyright': $copyright = new Zend_Gdata_Media_Extension_MediaCopyright(); $copyright->transferFromDOM($child); $this->_copyright = $copyright; break; - case $this->lookupNamespace('media') . ':' . 'credit'; + case $this->lookupNamespace('media') . ':' . 'credit': $credit = new Zend_Gdata_Media_Extension_MediaCredit(); $credit->transferFromDOM($child); $this->_credit[] = $credit; break; - case $this->lookupNamespace('media') . ':' . 'description'; + case $this->lookupNamespace('media') . ':' . 'description': $description = new Zend_Gdata_Media_Extension_MediaDescription(); $description->transferFromDOM($child); $this->_description = $description; break; - case $this->lookupNamespace('media') . ':' . 'hash'; + case $this->lookupNamespace('media') . ':' . 'hash': $hash = new Zend_Gdata_Media_Extension_MediaHash(); $hash->transferFromDOM($child); $this->_hash[] = $hash; break; - case $this->lookupNamespace('media') . ':' . 'keywords'; + case $this->lookupNamespace('media') . ':' . 'keywords': $keywords = new Zend_Gdata_Media_Extension_MediaKeywords(); $keywords->transferFromDOM($child); $this->_keywords = $keywords; break; - case $this->lookupNamespace('media') . ':' . 'player'; + case $this->lookupNamespace('media') . ':' . 'player': $player = new Zend_Gdata_Media_Extension_MediaPlayer(); $player->transferFromDOM($child); $this->_player[] = $player; break; - case $this->lookupNamespace('media') . ':' . 'rating'; + case $this->lookupNamespace('media') . ':' . 'rating': $rating = new Zend_Gdata_Media_Extension_MediaRating(); $rating->transferFromDOM($child); $this->_rating[] = $rating; break; - case $this->lookupNamespace('media') . ':' . 'restriction'; + case $this->lookupNamespace('media') . ':' . 'restriction': $restriction = new Zend_Gdata_Media_Extension_MediaRestriction(); $restriction->transferFromDOM($child); $this->_restriction[] = $restriction; break; - case $this->lookupNamespace('media') . ':' . 'text'; + case $this->lookupNamespace('media') . ':' . 'text': $text = new Zend_Gdata_Media_Extension_MediaText(); $text->transferFromDOM($child); $this->_mediaText[] = $text; break; - case $this->lookupNamespace('media') . ':' . 'thumbnail'; + case $this->lookupNamespace('media') . ':' . 'thumbnail': $thumbnail = new Zend_Gdata_Media_Extension_MediaThumbnail(); $thumbnail->transferFromDOM($child); $this->_thumbnail[] = $thumbnail; break; - case $this->lookupNamespace('media') . ':' . 'title'; + case $this->lookupNamespace('media') . ':' . 'title': $title = new Zend_Gdata_Media_Extension_MediaTitle(); $title->transferFromDOM($child); $this->_title = $title; diff --git a/library/Zend/Gdata/Photos/AlbumEntry.php b/library/Zend/Gdata/Photos/AlbumEntry.php index e790d7166..4e7d476f4 100755 --- a/library/Zend/Gdata/Photos/AlbumEntry.php +++ b/library/Zend/Gdata/Photos/AlbumEntry.php @@ -266,62 +266,62 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'access'; + case $this->lookupNamespace('gphoto') . ':' . 'access': $access = new Zend_Gdata_Photos_Extension_Access(); $access->transferFromDOM($child); $this->_gphotoAccess = $access; break; - case $this->lookupNamespace('gphoto') . ':' . 'location'; + case $this->lookupNamespace('gphoto') . ':' . 'location': $location = new Zend_Gdata_Photos_Extension_Location(); $location->transferFromDOM($child); $this->_gphotoLocation = $location; break; - case $this->lookupNamespace('gphoto') . ':' . 'name'; + case $this->lookupNamespace('gphoto') . ':' . 'name': $name = new Zend_Gdata_Photos_Extension_Name(); $name->transferFromDOM($child); $this->_gphotoName = $name; break; - case $this->lookupNamespace('gphoto') . ':' . 'numphotos'; + case $this->lookupNamespace('gphoto') . ':' . 'numphotos': $numPhotos = new Zend_Gdata_Photos_Extension_NumPhotos(); $numPhotos->transferFromDOM($child); $this->_gphotoNumPhotos = $numPhotos; break; - case $this->lookupNamespace('gphoto') . ':' . 'commentCount'; + case $this->lookupNamespace('gphoto') . ':' . 'commentCount': $commentCount = new Zend_Gdata_Photos_Extension_CommentCount(); $commentCount->transferFromDOM($child); $this->_gphotoCommentCount = $commentCount; break; - case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled'; + case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled': $commentingEnabled = new Zend_Gdata_Photos_Extension_CommentingEnabled(); $commentingEnabled->transferFromDOM($child); $this->_gphotoCommentingEnabled = $commentingEnabled; break; - case $this->lookupNamespace('gphoto') . ':' . 'id'; + case $this->lookupNamespace('gphoto') . ':' . 'id': $id = new Zend_Gdata_Photos_Extension_Id(); $id->transferFromDOM($child); $this->_gphotoId = $id; break; - case $this->lookupNamespace('gphoto') . ':' . 'user'; + case $this->lookupNamespace('gphoto') . ':' . 'user': $user = new Zend_Gdata_Photos_Extension_User(); $user->transferFromDOM($child); $this->_gphotoUser = $user; break; - case $this->lookupNamespace('gphoto') . ':' . 'timestamp'; + case $this->lookupNamespace('gphoto') . ':' . 'timestamp': $timestamp = new Zend_Gdata_Photos_Extension_Timestamp(); $timestamp->transferFromDOM($child); $this->_gphotoTimestamp = $timestamp; break; - case $this->lookupNamespace('gphoto') . ':' . 'nickname'; + case $this->lookupNamespace('gphoto') . ':' . 'nickname': $nickname = new Zend_Gdata_Photos_Extension_Nickname(); $nickname->transferFromDOM($child); $this->_gphotoNickname = $nickname; break; - case $this->lookupNamespace('georss') . ':' . 'where'; + case $this->lookupNamespace('georss') . ':' . 'where': $geoRssWhere = new Zend_Gdata_Geo_Extension_GeoRssWhere(); $geoRssWhere->transferFromDOM($child); $this->_geoRssWhere = $geoRssWhere; break; - case $this->lookupNamespace('media') . ':' . 'group'; + case $this->lookupNamespace('media') . ':' . 'group': $mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup(); $mediaGroup->transferFromDOM($child); $this->_mediaGroup = $mediaGroup; diff --git a/library/Zend/Gdata/Photos/AlbumFeed.php b/library/Zend/Gdata/Photos/AlbumFeed.php index 926477065..498d05005 100755 --- a/library/Zend/Gdata/Photos/AlbumFeed.php +++ b/library/Zend/Gdata/Photos/AlbumFeed.php @@ -178,52 +178,52 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'id'; + case $this->lookupNamespace('gphoto') . ':' . 'id': $id = new Zend_Gdata_Photos_Extension_Id(); $id->transferFromDOM($child); $this->_gphotoId = $id; break; - case $this->lookupNamespace('gphoto') . ':' . 'user'; + case $this->lookupNamespace('gphoto') . ':' . 'user': $user = new Zend_Gdata_Photos_Extension_User(); $user->transferFromDOM($child); $this->_gphotoUser = $user; break; - case $this->lookupNamespace('gphoto') . ':' . 'nickname'; + case $this->lookupNamespace('gphoto') . ':' . 'nickname': $nickname = new Zend_Gdata_Photos_Extension_Nickname(); $nickname->transferFromDOM($child); $this->_gphotoNickname = $nickname; break; - case $this->lookupNamespace('gphoto') . ':' . 'name'; + case $this->lookupNamespace('gphoto') . ':' . 'name': $name = new Zend_Gdata_Photos_Extension_Name(); $name->transferFromDOM($child); $this->_gphotoName = $name; break; - case $this->lookupNamespace('gphoto') . ':' . 'location'; + case $this->lookupNamespace('gphoto') . ':' . 'location': $location = new Zend_Gdata_Photos_Extension_Location(); $location->transferFromDOM($child); $this->_gphotoLocation = $location; break; - case $this->lookupNamespace('gphoto') . ':' . 'access'; + case $this->lookupNamespace('gphoto') . ':' . 'access': $access = new Zend_Gdata_Photos_Extension_Access(); $access->transferFromDOM($child); $this->_gphotoAccess = $access; break; - case $this->lookupNamespace('gphoto') . ':' . 'timestamp'; + case $this->lookupNamespace('gphoto') . ':' . 'timestamp': $timestamp = new Zend_Gdata_Photos_Extension_Timestamp(); $timestamp->transferFromDOM($child); $this->_gphotoTimestamp = $timestamp; break; - case $this->lookupNamespace('gphoto') . ':' . 'numphotos'; + case $this->lookupNamespace('gphoto') . ':' . 'numphotos': $numphotos = new Zend_Gdata_Photos_Extension_NumPhotos(); $numphotos->transferFromDOM($child); $this->_gphotoNumPhotos = $numphotos; break; - case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled'; + case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled': $commentingEnabled = new Zend_Gdata_Photos_Extension_CommentingEnabled(); $commentingEnabled->transferFromDOM($child); $this->_gphotoCommentingEnabled = $commentingEnabled; break; - case $this->lookupNamespace('gphoto') . ':' . 'commentCount'; + case $this->lookupNamespace('gphoto') . ':' . 'commentCount': $commentCount = new Zend_Gdata_Photos_Extension_CommentCount(); $commentCount->transferFromDOM($child); $this->_gphotoCommentCount = $commentCount; diff --git a/library/Zend/Gdata/Photos/CommentEntry.php b/library/Zend/Gdata/Photos/CommentEntry.php index c1409f621..54e95ee7e 100755 --- a/library/Zend/Gdata/Photos/CommentEntry.php +++ b/library/Zend/Gdata/Photos/CommentEntry.php @@ -131,12 +131,12 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'id'; + case $this->lookupNamespace('gphoto') . ':' . 'id': $id = new Zend_Gdata_Photos_Extension_Id(); $id->transferFromDOM($child); $this->_gphotoId = $id; break; - case $this->lookupNamespace('gphoto') . ':' . 'photoid'; + case $this->lookupNamespace('gphoto') . ':' . 'photoid': $photoid = new Zend_Gdata_Photos_Extension_PhotoId(); $photoid->transferFromDOM($child); $this->_gphotoPhotoId = $photoid; diff --git a/library/Zend/Gdata/Photos/PhotoEntry.php b/library/Zend/Gdata/Photos/PhotoEntry.php index 54c4a6500..1962766c9 100755 --- a/library/Zend/Gdata/Photos/PhotoEntry.php +++ b/library/Zend/Gdata/Photos/PhotoEntry.php @@ -294,67 +294,67 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'albumid'; + case $this->lookupNamespace('gphoto') . ':' . 'albumid': $albumId = new Zend_Gdata_Photos_Extension_AlbumId(); $albumId->transferFromDOM($child); $this->_gphotoAlbumId = $albumId; break; - case $this->lookupNamespace('gphoto') . ':' . 'id'; + case $this->lookupNamespace('gphoto') . ':' . 'id': $id = new Zend_Gdata_Photos_Extension_Id(); $id->transferFromDOM($child); $this->_gphotoId = $id; break; - case $this->lookupNamespace('gphoto') . ':' . 'version'; + case $this->lookupNamespace('gphoto') . ':' . 'version': $version = new Zend_Gdata_Photos_Extension_Version(); $version->transferFromDOM($child); $this->_gphotoVersion = $version; break; - case $this->lookupNamespace('gphoto') . ':' . 'width'; + case $this->lookupNamespace('gphoto') . ':' . 'width': $width = new Zend_Gdata_Photos_Extension_Width(); $width->transferFromDOM($child); $this->_gphotoWidth = $width; break; - case $this->lookupNamespace('gphoto') . ':' . 'height'; + case $this->lookupNamespace('gphoto') . ':' . 'height': $height = new Zend_Gdata_Photos_Extension_Height(); $height->transferFromDOM($child); $this->_gphotoHeight = $height; break; - case $this->lookupNamespace('gphoto') . ':' . 'size'; + case $this->lookupNamespace('gphoto') . ':' . 'size': $size = new Zend_Gdata_Photos_Extension_Size(); $size->transferFromDOM($child); $this->_gphotoSize = $size; break; - case $this->lookupNamespace('gphoto') . ':' . 'client'; + case $this->lookupNamespace('gphoto') . ':' . 'client': $client = new Zend_Gdata_Photos_Extension_Client(); $client->transferFromDOM($child); $this->_gphotoClient = $client; break; - case $this->lookupNamespace('gphoto') . ':' . 'checksum'; + case $this->lookupNamespace('gphoto') . ':' . 'checksum': $checksum = new Zend_Gdata_Photos_Extension_Checksum(); $checksum->transferFromDOM($child); $this->_gphotoChecksum = $checksum; break; - case $this->lookupNamespace('gphoto') . ':' . 'timestamp'; + case $this->lookupNamespace('gphoto') . ':' . 'timestamp': $timestamp = new Zend_Gdata_Photos_Extension_Timestamp(); $timestamp->transferFromDOM($child); $this->_gphotoTimestamp = $timestamp; break; - case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled'; + case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled': $commentingEnabled = new Zend_Gdata_Photos_Extension_CommentingEnabled(); $commentingEnabled->transferFromDOM($child); $this->_gphotoCommentingEnabled = $commentingEnabled; break; - case $this->lookupNamespace('gphoto') . ':' . 'commentCount'; + case $this->lookupNamespace('gphoto') . ':' . 'commentCount': $commentCount = new Zend_Gdata_Photos_Extension_CommentCount(); $commentCount->transferFromDOM($child); $this->_gphotoCommentCount = $commentCount; break; - case $this->lookupNamespace('exif') . ':' . 'tags'; + case $this->lookupNamespace('exif') . ':' . 'tags': $exifTags = new Zend_Gdata_Exif_Extension_Tags(); $exifTags->transferFromDOM($child); $this->_exifTags = $exifTags; break; - case $this->lookupNamespace('georss') . ':' . 'where'; + case $this->lookupNamespace('georss') . ':' . 'where': $geoRssWhere = new Zend_Gdata_Geo_Extension_GeoRssWhere(); $geoRssWhere->transferFromDOM($child); $this->_geoRssWhere = $geoRssWhere; diff --git a/library/Zend/Gdata/Photos/PhotoFeed.php b/library/Zend/Gdata/Photos/PhotoFeed.php index 2a3fd0d78..500776a31 100755 --- a/library/Zend/Gdata/Photos/PhotoFeed.php +++ b/library/Zend/Gdata/Photos/PhotoFeed.php @@ -195,62 +195,62 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'id'; + case $this->lookupNamespace('gphoto') . ':' . 'id': $id = new Zend_Gdata_Photos_Extension_Id(); $id->transferFromDOM($child); $this->_gphotoId = $id; break; - case $this->lookupNamespace('gphoto') . ':' . 'version'; + case $this->lookupNamespace('gphoto') . ':' . 'version': $version = new Zend_Gdata_Photos_Extension_Version(); $version->transferFromDOM($child); $this->_gphotoVersion = $version; break; - case $this->lookupNamespace('gphoto') . ':' . 'albumid'; + case $this->lookupNamespace('gphoto') . ':' . 'albumid': $albumid = new Zend_Gdata_Photos_Extension_AlbumId(); $albumid->transferFromDOM($child); $this->_gphotoAlbumId = $albumid; break; - case $this->lookupNamespace('gphoto') . ':' . 'width'; + case $this->lookupNamespace('gphoto') . ':' . 'width': $width = new Zend_Gdata_Photos_Extension_Width(); $width->transferFromDOM($child); $this->_gphotoWidth = $width; break; - case $this->lookupNamespace('gphoto') . ':' . 'height'; + case $this->lookupNamespace('gphoto') . ':' . 'height': $height = new Zend_Gdata_Photos_Extension_Height(); $height->transferFromDOM($child); $this->_gphotoHeight = $height; break; - case $this->lookupNamespace('gphoto') . ':' . 'size'; + case $this->lookupNamespace('gphoto') . ':' . 'size': $size = new Zend_Gdata_Photos_Extension_Size(); $size->transferFromDOM($child); $this->_gphotoSize = $size; break; - case $this->lookupNamespace('gphoto') . ':' . 'client'; + case $this->lookupNamespace('gphoto') . ':' . 'client': $client = new Zend_Gdata_Photos_Extension_Client(); $client->transferFromDOM($child); $this->_gphotoClient = $client; break; - case $this->lookupNamespace('gphoto') . ':' . 'checksum'; + case $this->lookupNamespace('gphoto') . ':' . 'checksum': $checksum = new Zend_Gdata_Photos_Extension_Checksum(); $checksum->transferFromDOM($child); $this->_gphotoChecksum = $checksum; break; - case $this->lookupNamespace('gphoto') . ':' . 'timestamp'; + case $this->lookupNamespace('gphoto') . ':' . 'timestamp': $timestamp = new Zend_Gdata_Photos_Extension_Timestamp(); $timestamp->transferFromDOM($child); $this->_gphotoTimestamp = $timestamp; break; - case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled'; + case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled': $commentingEnabled = new Zend_Gdata_Photos_Extension_CommentingEnabled(); $commentingEnabled->transferFromDOM($child); $this->_gphotoCommentingEnabled = $commentingEnabled; break; - case $this->lookupNamespace('gphoto') . ':' . 'commentCount'; + case $this->lookupNamespace('gphoto') . ':' . 'commentCount': $commentCount = new Zend_Gdata_Photos_Extension_CommentCount(); $commentCount->transferFromDOM($child); $this->_gphotoCommentCount = $commentCount; break; - case $this->lookupNamespace('media') . ':' . 'group'; + case $this->lookupNamespace('media') . ':' . 'group': $mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup(); $mediaGroup->transferFromDOM($child); $this->_mediaGroup = $mediaGroup; diff --git a/library/Zend/Gdata/Photos/TagEntry.php b/library/Zend/Gdata/Photos/TagEntry.php index f436c7937..e6bec23b1 100755 --- a/library/Zend/Gdata/Photos/TagEntry.php +++ b/library/Zend/Gdata/Photos/TagEntry.php @@ -104,7 +104,7 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'weight'; + case $this->lookupNamespace('gphoto') . ':' . 'weight': $weight = new Zend_Gdata_Photos_Extension_Weight(); $weight->transferFromDOM($child); $this->_gphotoWeight = $weight; diff --git a/library/Zend/Gdata/Photos/UserEntry.php b/library/Zend/Gdata/Photos/UserEntry.php index 675ecac22..7de187515 100755 --- a/library/Zend/Gdata/Photos/UserEntry.php +++ b/library/Zend/Gdata/Photos/UserEntry.php @@ -189,32 +189,32 @@ protected function takeChildFromDOM($child) $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'nickname'; + case $this->lookupNamespace('gphoto') . ':' . 'nickname': $nickname = new Zend_Gdata_Photos_Extension_Nickname(); $nickname->transferFromDOM($child); $this->_gphotoNickname = $nickname; break; - case $this->lookupNamespace('gphoto') . ':' . 'thumbnail'; + case $this->lookupNamespace('gphoto') . ':' . 'thumbnail': $thumbnail = new Zend_Gdata_Photos_Extension_Thumbnail(); $thumbnail->transferFromDOM($child); $this->_gphotoThumbnail = $thumbnail; break; - case $this->lookupNamespace('gphoto') . ':' . 'user'; + case $this->lookupNamespace('gphoto') . ':' . 'user': $user = new Zend_Gdata_Photos_Extension_User(); $user->transferFromDOM($child); $this->_gphotoUser = $user; break; - case $this->lookupNamespace('gphoto') . ':' . 'quotacurrent'; + case $this->lookupNamespace('gphoto') . ':' . 'quotacurrent': $quotaCurrent = new Zend_Gdata_Photos_Extension_QuotaCurrent(); $quotaCurrent->transferFromDOM($child); $this->_gphotoQuotaCurrent = $quotaCurrent; break; - case $this->lookupNamespace('gphoto') . ':' . 'quotalimit'; + case $this->lookupNamespace('gphoto') . ':' . 'quotalimit': $quotaLimit = new Zend_Gdata_Photos_Extension_QuotaLimit(); $quotaLimit->transferFromDOM($child); $this->_gphotoQuotaLimit = $quotaLimit; break; - case $this->lookupNamespace('gphoto') . ':' . 'maxPhotosPerAlbum'; + case $this->lookupNamespace('gphoto') . ':' . 'maxPhotosPerAlbum': $maxPhotosPerAlbum = new Zend_Gdata_Photos_Extension_MaxPhotosPerAlbum(); $maxPhotosPerAlbum->transferFromDOM($child); $this->_gphotoMaxPhotosPerAlbum = $maxPhotosPerAlbum; diff --git a/library/Zend/Gdata/Photos/UserFeed.php b/library/Zend/Gdata/Photos/UserFeed.php index 5a653b039..da197dad2 100755 --- a/library/Zend/Gdata/Photos/UserFeed.php +++ b/library/Zend/Gdata/Photos/UserFeed.php @@ -119,17 +119,17 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'user'; + case $this->lookupNamespace('gphoto') . ':' . 'user': $user = new Zend_Gdata_Photos_Extension_User(); $user->transferFromDOM($child); $this->_gphotoUser = $user; break; - case $this->lookupNamespace('gphoto') . ':' . 'nickname'; + case $this->lookupNamespace('gphoto') . ':' . 'nickname': $nickname = new Zend_Gdata_Photos_Extension_Nickname(); $nickname->transferFromDOM($child); $this->_gphotoNickname = $nickname; break; - case $this->lookupNamespace('gphoto') . ':' . 'thumbnail'; + case $this->lookupNamespace('gphoto') . ':' . 'thumbnail': $thumbnail = new Zend_Gdata_Photos_Extension_Thumbnail(); $thumbnail->transferFromDOM($child); $this->_gphotoThumbnail = $thumbnail; diff --git a/library/Zend/Gdata/Spreadsheets/CellEntry.php b/library/Zend/Gdata/Spreadsheets/CellEntry.php index 3f56d2c75..d2ac36922 100644 --- a/library/Zend/Gdata/Spreadsheets/CellEntry.php +++ b/library/Zend/Gdata/Spreadsheets/CellEntry.php @@ -70,7 +70,7 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gs') . ':' . 'cell'; + case $this->lookupNamespace('gs') . ':' . 'cell': $cell = new Zend_Gdata_Spreadsheets_Extension_Cell(); $cell->transferFromDOM($child); $this->_cell = $cell; diff --git a/library/Zend/Gdata/Spreadsheets/CellFeed.php b/library/Zend/Gdata/Spreadsheets/CellFeed.php index 2029fff60..f0eda64be 100644 --- a/library/Zend/Gdata/Spreadsheets/CellFeed.php +++ b/library/Zend/Gdata/Spreadsheets/CellFeed.php @@ -101,12 +101,12 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gs') . ':' . 'rowCount'; + case $this->lookupNamespace('gs') . ':' . 'rowCount': $rowCount = new Zend_Gdata_Spreadsheets_Extension_RowCount(); $rowCount->transferFromDOM($child); $this->_rowCount = $rowCount; break; - case $this->lookupNamespace('gs') . ':' . 'colCount'; + case $this->lookupNamespace('gs') . ':' . 'colCount': $colCount = new Zend_Gdata_Spreadsheets_Extension_ColCount(); $colCount->transferFromDOM($child); $this->_colCount = $colCount; diff --git a/library/Zend/Gdata/Spreadsheets/ListEntry.php b/library/Zend/Gdata/Spreadsheets/ListEntry.php index d05a1371d..011653fa7 100644 --- a/library/Zend/Gdata/Spreadsheets/ListEntry.php +++ b/library/Zend/Gdata/Spreadsheets/ListEntry.php @@ -83,7 +83,7 @@ public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) protected function takeChildFromDOM($child) { switch ($child->namespaceURI) { - case $this->lookupNamespace('gsx'); + case $this->lookupNamespace('gsx'): $custom = new Zend_Gdata_Spreadsheets_Extension_Custom($child->localName); $custom->transferFromDOM($child); $this->addCustom($custom); diff --git a/library/Zend/Gdata/Spreadsheets/WorksheetEntry.php b/library/Zend/Gdata/Spreadsheets/WorksheetEntry.php index 79b0da821..9f5b79b64 100644 --- a/library/Zend/Gdata/Spreadsheets/WorksheetEntry.php +++ b/library/Zend/Gdata/Spreadsheets/WorksheetEntry.php @@ -96,12 +96,12 @@ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { - case $this->lookupNamespace('gs') . ':' . 'rowCount'; + case $this->lookupNamespace('gs') . ':' . 'rowCount': $rowCount = new Zend_Gdata_Spreadsheets_Extension_RowCount(); $rowCount->transferFromDOM($child); $this->_rowCount = $rowCount; break; - case $this->lookupNamespace('gs') . ':' . 'colCount'; + case $this->lookupNamespace('gs') . ':' . 'colCount': $colCount = new Zend_Gdata_Spreadsheets_Extension_ColCount(); $colCount->transferFromDOM($child); $this->_colCount = $colCount; diff --git a/library/Zend/Pdf/Resource/Image/Png.php b/library/Zend/Pdf/Resource/Image/Png.php index ec8426e0f..865c70558 100644 --- a/library/Zend/Pdf/Resource/Image/Png.php +++ b/library/Zend/Pdf/Resource/Image/Png.php @@ -190,7 +190,7 @@ public function __construct($imageFileName) fseek($imageFile, 4, SEEK_CUR); //4 Byte Ending Sequence break; - case 'IEND'; + case 'IEND': break 2; //End the loop too default: diff --git a/library/Zend/Wildfire/Channel/HttpHeaders.php b/library/Zend/Wildfire/Channel/HttpHeaders.php index 7f69cdcc7..6840da9fe 100644 --- a/library/Zend/Wildfire/Channel/HttpHeaders.php +++ b/library/Zend/Wildfire/Channel/HttpHeaders.php @@ -165,7 +165,7 @@ public function getProtocol($uri) protected function _initProtocol($uri) { switch ($uri) { - case Zend_Wildfire_Protocol_JsonStream::PROTOCOL_URI; + case Zend_Wildfire_Protocol_JsonStream::PROTOCOL_URI: return new Zend_Wildfire_Protocol_JsonStream(); } require_once 'Zend/Wildfire/Exception.php';