Browse Source

[ZF-7527]Line endings in Zend/Gdata/Health

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17594 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 years ago
parent
commit
5bcf1b1d60

+ 1 - 2
library/Zend/Gdata/Health/Extension/Ccr.php

@@ -92,12 +92,11 @@ class Zend_Gdata_Health_Extension_Ccr extends Zend_Gdata_App_Extension_Element
      * return extract the user's conditions.
      *
      * @param string $name Name of the function to call
+     * @param unknown $args
      * @return array.<DOMElement> A list of the appropriate CCR data
      */
     public function __call($name, $args)
     {
-        $matches = array();
-
         if (substr($name, 0, 3) === 'get') {
             $category = substr($name, 3);
 

+ 7 - 7
library/Zend/Gdata/Health/ProfileEntry.php

@@ -57,7 +57,7 @@ class Zend_Gdata_Health_ProfileEntry extends Zend_Gdata_Entry
      * @var Zend_Gdata_Health_Extension_Ccr
      */
     protected $_ccrData = null;
-    
+
     /**
      * Constructs a new Zend_Gdata_Health_ProfileEntry object.
      * @param DOMElement $element (optional) The DOMElement on which to base this object.
@@ -85,7 +85,7 @@ class Zend_Gdata_Health_ProfileEntry extends Zend_Gdata_Entry
         if ($this->_ccrData !== null) {
           $element->appendChild($this->_ccrData->getDOM($element->ownerDocument));
         }
-        
+
         return $element;
     }
 
@@ -102,14 +102,14 @@ class Zend_Gdata_Health_ProfileEntry extends Zend_Gdata_Entry
         if (strstr($absoluteNodeName, $this->lookupNamespace('ccr') . ':')) {
             $ccrElement = new Zend_Gdata_Health_Extension_Ccr();
             $ccrElement->transferFromDOM($child);
-            $this->_ccrData = $ccrElement;            
+            $this->_ccrData = $ccrElement;
         } else {
             parent::takeChildFromDOM($child);
-            
+
         }
     }
-    
-    /** 
+
+    /**
      * Sets the profile entry's CCR data
      * @param string $ccrXMLStr The CCR as an xml string
      * @return Zend_Gdata_Health_Extension_Ccr
@@ -125,7 +125,7 @@ class Zend_Gdata_Health_ProfileEntry extends Zend_Gdata_Entry
     }
 
 
-    /** 
+    /**
      * Returns all the CCR data in a profile entry
      * @return Zend_Gdata_Health_Extension_Ccr
      */

+ 1 - 1
library/Zend/Gdata/Health/ProfileFeed.php

@@ -45,7 +45,7 @@ class Zend_Gdata_Health_ProfileFeed extends Zend_Gdata_Feed
      * @var string
      */
     protected $_entryClassName = 'Zend_Gdata_Health_ProfileEntry';
-    
+
     /**
      * Creates a Health Profile feed, representing a user's Health profile
      *

+ 4 - 4
library/Zend/Gdata/Health/ProfileListEntry.php

@@ -80,16 +80,16 @@ class Zend_Gdata_Health_ProfileListEntry extends Zend_Gdata_Entry
     {
         parent::takeChildFromDOM($child);
     }
-        
-    /** 
+
+    /**
      * Retrieves the profile ID for the entry, which is contained in <atom:content>
      * @return string The profile id
      */
     public function getProfileID() {
         return $this->getContent()->text;
     }
-    
-    /** 
+
+    /**
      * Retrieves the profile's title, which is contained in <atom:title>
      * @return string The profile name
      */

+ 1 - 1
library/Zend/Gdata/Health/ProfileListFeed.php

@@ -45,7 +45,7 @@ class Zend_Gdata_Health_ProfileListFeed extends Zend_Gdata_Feed
      * @var string
      */
     protected $_entryClassName = 'Zend_Gdata_Health_ProfileListEntry';
-    
+
     public function getEntries()
     {
         return $this->entry;

+ 18 - 18
library/Zend/Gdata/Health/Query.php

@@ -101,7 +101,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
      */
     public function setCategory($item, $name = null)
     {
-        $this->_category = $item . 
+        $this->_category = $item .
             ($name ? '/' . urlencode('{' . self::ITEM_CATEGORY_NS . '}' . $name) : null);
         return $this;
     }
@@ -133,7 +133,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
     /**
      * Returns the value set for the grouped parameter.
      *
-     * @return string grouped parameter.  
+     * @return string grouped parameter.
      */
     public function getGrouped()
     {
@@ -143,11 +143,11 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
             return null;
         }
     }
-    
+
     /**
      * Setter for the max-results-group parameter.
      *
-     * @param int $value Specifies the maximum number of groups to be 
+     * @param int $value Specifies the maximum number of groups to be
      *     retrieved. Must be an integer value greater than zero. This parameter
      *     is only valid if grouped=true.
      * @return Zend_Gdata_Health_Query Provides a fluent interface
@@ -159,7 +159,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
                 require_once 'Zend/Gdata/App/InvalidArgumentException.php';
                 throw new Zend_Gdata_App_InvalidArgumentException(
                     'The max-results-group parameter must be set to a value
-                    greater than 0 and can only be used if grouped=true'); 
+                    greater than 0 and can only be used if grouped=true');
             } else {
               $this->_params['max-results-group'] = $value;
             }
@@ -170,7 +170,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
     /**
      *  Returns the value set for max-results-group.
      *
-     * @return int Returns max-results-group parameter.  
+     * @return int Returns max-results-group parameter.
      */
     public function getMaxResultsGroup()
     {
@@ -184,9 +184,9 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
     /**
      *  Setter for the max-results-group parameter.
      *
-     * @param int $value Specifies the maximum number of records to be 
-     *     retrieved from each group.  The limits that you specify with this 
-     *     parameter apply to all groups. Must be an integer value greater than 
+     * @param int $value Specifies the maximum number of records to be
+     *     retrieved from each group.  The limits that you specify with this
+     *     parameter apply to all groups. Must be an integer value greater than
      *     zero. This parameter is only valid if grouped=true.
      * @return Zend_Gdata_Health_Query Provides a fluent interface
      */
@@ -195,8 +195,8 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
         if ($value !== null) {
             if ($value <= 0 || $this->getGrouped() !== 'true') {
               throw new Zend_Gdata_App_InvalidArgumentException(
-                  'The max-results-in-group parameter must be set to a value 
-                  greater than 0 and can only be used if grouped=true'); 
+                  'The max-results-in-group parameter must be set to a value
+                  greater than 0 and can only be used if grouped=true');
             } else {
               $this->_params['max-results-in-group'] = $value;
             }
@@ -207,7 +207,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
     /**
      *  Returns the value set for max-results-in-group.
      *
-     * @return int Returns max-results-in-group parameter.  
+     * @return int Returns max-results-in-group parameter.
      */
     public function getMaxResultsInGroup()
     {
@@ -221,9 +221,9 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
     /**
      * Setter for the start-index-group parameter.
      *
-     * @param int $value Retrieves only items whose group ranking is at 
+     * @param int $value Retrieves only items whose group ranking is at
      *     least start-index-group. This should be set to a 1-based index of the
-     *     first group to be retrieved. The range is applied per category. 
+     *     first group to be retrieved. The range is applied per category.
      *     This parameter is only valid if grouped=true.
      * @return Zend_Gdata_Health_Query Provides a fluent interface
      */
@@ -231,7 +231,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
     {
         if ($value !== null && $this->getGrouped() !== 'true') {
             throw new Zend_Gdata_App_InvalidArgumentException(
-                'The start-index-group can only be used if grouped=true'); 
+                'The start-index-group can only be used if grouped=true');
         } else {
           $this->_params['start-index-group'] = $value;
         }
@@ -241,7 +241,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
     /**
      *  Returns the value set for start-index-group.
      *
-     * @return int Returns start-index-group parameter.  
+     * @return int Returns start-index-group parameter.
      */
     public function getStartIndexGroup()
     {
@@ -255,7 +255,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
     /**
      *  Setter for the start-index-in-group parameter.
      *
-     * @param int $value  A 1-based index of the records to be retrieved from 
+     * @param int $value  A 1-based index of the records to be retrieved from
      *     each group. This parameter is only valid if grouped=true.
      * @return Zend_Gdata_Health_Query Provides a fluent interface
      */
@@ -272,7 +272,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
     /**
      * Returns the value set for start-index-in-group.
      *
-     * @return int Returns start-index-in-group parameter.  
+     * @return int Returns start-index-in-group parameter.
      */
     public function getStartIndexInGroup()
     {