Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/Zend/Amf/Parse/Amf3/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Cloud/Infrastructure/Adapter/Rackspace.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions library/Zend/Gdata/Analytics/AccountEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Gdata/Analytics/DataEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions library/Zend/Gdata/Calendar/EventEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Calendar/EventFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 6 additions & 6 deletions library/Zend/Gdata/Calendar/ListEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Calendar/ListFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
20 changes: 10 additions & 10 deletions library/Zend/Gdata/Exif/Extension/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Extension/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Extension/EntryLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Extension/FeedLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Extension/OriginalEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Extension/When.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Gdata/Gapps/EmailListEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Gapps/EmailListRecipientEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Gapps/GroupEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Gapps/MemberEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Gdata/Gapps/NicknameEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Gapps/OwnerEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions library/Zend/Gdata/Gapps/UserEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Geo/Extension/GeoRssWhere.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Gdata/Geo/Extension/GmlPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading