Completed
Push — master ( 276db7...0bd148 )
by Rakesh
07:30 queued 03:39
created
lib/Zend/Gdata/Media/Entry.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
      * Returns the entry's mediaGroup object.
113 113
      *
114 114
      * @return Zend_Gdata_Media_Extension_MediaGroup
115
-    */
115
+     */
116 116
     public function getMediaGroup()
117 117
     {
118 118
         return $this->_mediaGroup;
Please login to merge, or discard this patch.
lib/Zend/Gdata/Gapps.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
         // completes. (See ZF-5949)
160 160
         $response = $e->getResponse();
161 161
         if (!$response) {
162
-          require_once('Zend/Gdata/App/IOException.php');
163
-          throw new Zend_Gdata_App_IOException('No HTTP response received (possible connection failure)');
162
+            require_once('Zend/Gdata/App/IOException.php');
163
+            throw new Zend_Gdata_App_IOException('No HTTP response received (possible connection failure)');
164 164
         }
165 165
 
166 166
         try {
@@ -334,18 +334,18 @@  discard block
 block discarded – undo
334 334
      *          instead of the default domain for this service instance.
335 335
      * @throws Zend_Gdata_App_InvalidArgumentException
336 336
      */
337
-     public function getBaseUrl($domain = null)
338
-     {
339
-         if ($domain !== null) {
340
-             return self::APPS_BASE_FEED_URI . '/' . $domain;
341
-         } else if ($this->_domain !== null) {
342
-             return self::APPS_BASE_FEED_URI . '/' . $this->_domain;
343
-         } else {
344
-             require_once 'Zend/Gdata/App/InvalidArgumentException.php';
345
-             throw new Zend_Gdata_App_InvalidArgumentException(
346
-                     'Domain must be specified.');
347
-         }
348
-     }
337
+        public function getBaseUrl($domain = null)
338
+        {
339
+            if ($domain !== null) {
340
+                return self::APPS_BASE_FEED_URI . '/' . $domain;
341
+            } else if ($this->_domain !== null) {
342
+                return self::APPS_BASE_FEED_URI . '/' . $this->_domain;
343
+            } else {
344
+                require_once 'Zend/Gdata/App/InvalidArgumentException.php';
345
+                throw new Zend_Gdata_App_InvalidArgumentException(
346
+                        'Domain must be specified.');
347
+            }
348
+        }
349 349
 
350 350
     /**
351 351
      * Retrieve a UserFeed containing multiple UserEntry objects.
@@ -858,18 +858,18 @@  discard block
 block discarded – undo
858 858
             $class = $matches[1];
859 859
             $foundClassName = null;
860 860
             foreach ($this->_registeredPackages as $name) {
861
-                 try {
862
-                     // Autoloading disabled on next line for compatibility
863
-                     // with magic factories. See ZF-6660.
864
-                     if (!class_exists($name . '_' . $class, false)) {
861
+                    try {
862
+                        // Autoloading disabled on next line for compatibility
863
+                        // with magic factories. See ZF-6660.
864
+                        if (!class_exists($name . '_' . $class, false)) {
865 865
                         require_once 'Zend/Loader.php';
866 866
                         @Zend_Loader::loadClass($name . '_' . $class);
867
-                     }
868
-                     $foundClassName = $name . '_' . $class;
869
-                     break;
870
-                 } catch (Zend_Exception $e) {
871
-                     // package wasn't here- continue searching
872
-                 }
867
+                        }
868
+                        $foundClassName = $name . '_' . $class;
869
+                        break;
870
+                    } catch (Zend_Exception $e) {
871
+                        // package wasn't here- continue searching
872
+                    }
873 873
             }
874 874
             if ($foundClassName != null) {
875 875
                 $reflectionObj = new ReflectionClass($foundClassName);
Please login to merge, or discard this patch.
lib/Zend/Gdata/Photos/PhotoQuery.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,10 +58,10 @@
 block discarded – undo
58 58
      * @param string $value The ID of the photo to retrieve, or null to
59 59
      *          clear.
60 60
      */
61
-     public function setPhotoId($value)
62
-     {
63
-         $this->_photoId = $value;
64
-     }
61
+        public function setPhotoId($value)
62
+        {
63
+            $this->_photoId = $value;
64
+        }
65 65
 
66 66
     /**
67 67
      * Get the photo ID which is to be returned.
Please login to merge, or discard this patch.
lib/Zend/Gdata/Photos/AlbumQuery.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -69,13 +69,13 @@  discard block
 block discarded – undo
69 69
      *          clear.
70 70
      * @return Zend_Gdata_Photos_AlbumQuery The query object.
71 71
      */
72
-     public function setAlbumName($value)
73
-     {
74
-         $this->_albumId = null;
75
-         $this->_albumName = $value;
72
+        public function setAlbumName($value)
73
+        {
74
+            $this->_albumId = null;
75
+            $this->_albumName = $value;
76 76
 
77
-         return $this;
78
-     }
77
+            return $this;
78
+        }
79 79
 
80 80
     /**
81 81
      * Get the album name which is to be returned.
@@ -100,13 +100,13 @@  discard block
 block discarded – undo
100 100
      *          clear.
101 101
      * @return Zend_Gdata_Photos_AlbumQuery The query object.
102 102
      */
103
-     public function setAlbumId($value)
104
-     {
105
-         $this->_albumName = null;
106
-         $this->_albumId = $value;
103
+        public function setAlbumId($value)
104
+        {
105
+            $this->_albumName = null;
106
+            $this->_albumId = $value;
107 107
 
108
-         return $this;
109
-     }
108
+            return $this;
109
+        }
110 110
 
111 111
     /**
112 112
      * Get the album ID which is to be returned.
Please login to merge, or discard this patch.
lib/Zend/Gdata/Photos/UserQuery.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -132,14 +132,14 @@  discard block
 block discarded – undo
132 132
      * @param string $value The user to retrieve, or null for the default
133 133
      *          user.
134 134
      */
135
-     public function setUser($value)
136
-     {
137
-         if ($value !== null) {
138
-             $this->_user = $value;
139
-         } else {
140
-             $this->_user = Zend_Gdata_Photos::DEFAULT_USER;
141
-         }
142
-     }
135
+        public function setUser($value)
136
+        {
137
+            if ($value !== null) {
138
+                $this->_user = $value;
139
+            } else {
140
+                $this->_user = Zend_Gdata_Photos::DEFAULT_USER;
141
+            }
142
+        }
143 143
 
144 144
     /**
145 145
      * Get the user which is to be returned.
@@ -162,14 +162,14 @@  discard block
 block discarded – undo
162 162
      * @param string $value The visibility to filter by, or null to use the
163 163
      *          default value.
164 164
      */
165
-     public function setAccess($value)
166
-     {
167
-         if ($value !== null) {
168
-             $this->_params['access'] = $value;
169
-         } else {
170
-             unset($this->_params['access']);
171
-         }
172
-     }
165
+        public function setAccess($value)
166
+        {
167
+            if ($value !== null) {
168
+                $this->_params['access'] = $value;
169
+            } else {
170
+                unset($this->_params['access']);
171
+            }
172
+        }
173 173
 
174 174
     /**
175 175
      * Get the visibility filter for entries returned.
@@ -194,14 +194,14 @@  discard block
 block discarded – undo
194 194
      * @param string $value The tag to filter by, or null if no
195 195
      *          filter is to be applied.
196 196
      */
197
-     public function setTag($value)
198
-     {
199
-         if ($value !== null) {
200
-             $this->_params['tag'] = $value;
201
-         } else {
202
-             unset($this->_params['tag']);
203
-         }
204
-     }
197
+        public function setTag($value)
198
+        {
199
+            if ($value !== null) {
200
+                $this->_params['tag'] = $value;
201
+            } else {
202
+                unset($this->_params['tag']);
203
+            }
204
+        }
205 205
 
206 206
     /**
207 207
      * Get the tag filter for entries returned.
@@ -226,14 +226,14 @@  discard block
 block discarded – undo
226 226
      * @param string $value The kind to filter by, or null if no
227 227
      *          filter is to be applied.
228 228
      */
229
-     public function setKind($value)
230
-     {
231
-         if ($value !== null) {
232
-             $this->_params['kind'] = $value;
233
-         } else {
234
-             unset($this->_params['kind']);
235
-         }
236
-     }
229
+        public function setKind($value)
230
+        {
231
+            if ($value !== null) {
232
+                $this->_params['kind'] = $value;
233
+            } else {
234
+                unset($this->_params['kind']);
235
+            }
236
+        }
237 237
 
238 238
     /**
239 239
      * Get the kind of entries to be returned.
@@ -258,14 +258,14 @@  discard block
 block discarded – undo
258 258
      * @param string $value The image size to filter by, or null if no
259 259
      *          filter is to be applied.
260 260
      */
261
-     public function setImgMax($value)
262
-     {
263
-         if ($value !== null) {
264
-             $this->_params['imgmax'] = $value;
265
-         } else {
266
-             unset($this->_params['imgmax']);
267
-         }
268
-     }
261
+        public function setImgMax($value)
262
+        {
263
+            if ($value !== null) {
264
+                $this->_params['imgmax'] = $value;
265
+            } else {
266
+                unset($this->_params['imgmax']);
267
+            }
268
+        }
269 269
 
270 270
     /**
271 271
      * Get the maximum image size filter for entries returned.
@@ -290,14 +290,14 @@  discard block
 block discarded – undo
290 290
      * @param string $value The thumbnail size to filter by, or null if no
291 291
      *          filter is to be applied.
292 292
      */
293
-     public function setThumbsize($value)
294
-     {
295
-         if ($value !== null) {
296
-             $this->_params['thumbsize'] = $value;
297
-         } else {
298
-             unset($this->_params['thumbsize']);
299
-         }
300
-     }
293
+        public function setThumbsize($value)
294
+        {
295
+            if ($value !== null) {
296
+                $this->_params['thumbsize'] = $value;
297
+            } else {
298
+                unset($this->_params['thumbsize']);
299
+            }
300
+        }
301 301
 
302 302
     /**
303 303
      * Get the thumbnail size filter for entries returned.
Please login to merge, or discard this patch.
lib/Zend/Gdata/Analytics/Extension/TableId.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      */
77 77
     protected function takeChildFromDOM($child)
78 78
     {
79
-       $this->_value = $child->nodeValue;
79
+        $this->_value = $child->nodeValue;
80 80
     }
81 81
 
82 82
     /**
Please login to merge, or discard this patch.
lib/Zend/Gdata/App.php 1 patch
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -64,15 +64,15 @@  discard block
 block discarded – undo
64 64
 {
65 65
 
66 66
     /** Default major protocol version.
67
-      *
68
-      * @see _majorProtocolVersion
69
-      */
67
+     *
68
+     * @see _majorProtocolVersion
69
+     */
70 70
     const DEFAULT_MAJOR_PROTOCOL_VERSION = 1;
71 71
 
72 72
     /** Default minor protocol version.
73
-      *
74
-      * @see _minorProtocolVersion
75
-      */
73
+     *
74
+     * @see _minorProtocolVersion
75
+     */
76 76
     const DEFAULT_MINOR_PROTOCOL_VERSION = null;
77 77
 
78 78
     /**
@@ -135,32 +135,32 @@  discard block
 block discarded – undo
135 135
     protected static $_maxRedirects = 5;
136 136
 
137 137
     /**
138
-      * Indicates the major protocol version that should be used.
139
-      * At present, recognized values are either 1 or 2. However, any integer
140
-      * value >= 1 is considered valid.
141
-      *
142
-      * Under most circumtances, this will be automatically set by
143
-      * Zend_Gdata_App subclasses.
144
-      *
145
-      * @see setMajorProtocolVersion()
146
-      * @see getMajorProtocolVersion()
147
-      */
138
+     * Indicates the major protocol version that should be used.
139
+     * At present, recognized values are either 1 or 2. However, any integer
140
+     * value >= 1 is considered valid.
141
+     *
142
+     * Under most circumtances, this will be automatically set by
143
+     * Zend_Gdata_App subclasses.
144
+     *
145
+     * @see setMajorProtocolVersion()
146
+     * @see getMajorProtocolVersion()
147
+     */
148 148
     protected $_majorProtocolVersion;
149 149
 
150 150
     /**
151
-      * Indicates the minor protocol version that should be used. Can be set
152
-      * to either an integer >= 0, or NULL if no minor version should be sent
153
-      * to the server.
154
-      *
155
-      * At present, this field is not used by any Google services, but may be
156
-      * used in the future.
157
-      *
158
-      * Under most circumtances, this will be automatically set by
159
-      * Zend_Gdata_App subclasses.
160
-      *
161
-      * @see setMinorProtocolVersion()
162
-      * @see getMinorProtocolVersion()
163
-      */
151
+     * Indicates the minor protocol version that should be used. Can be set
152
+     * to either an integer >= 0, or NULL if no minor version should be sent
153
+     * to the server.
154
+     *
155
+     * At present, this field is not used by any Google services, but may be
156
+     * used in the future.
157
+     *
158
+     * Under most circumtances, this will be automatically set by
159
+     * Zend_Gdata_App subclasses.
160
+     *
161
+     * @see setMinorProtocolVersion()
162
+     * @see getMinorProtocolVersion()
163
+     */
164 164
     protected $_minorProtocolVersion;
165 165
 
166 166
     /**
@@ -489,10 +489,10 @@  discard block
 block discarded – undo
489 489
      *               'method', 'url', 'data', 'headers', 'contentType'
490 490
      */
491 491
     public function prepareRequest($method,
492
-                                   $url = null,
493
-                                   $headers = array(),
494
-                                   $data = null,
495
-                                   $contentTypeOverride = null)
492
+                                    $url = null,
493
+                                    $headers = array(),
494
+                                    $data = null,
495
+                                    $contentTypeOverride = null)
496 496
     {
497 497
         // As a convenience, if $headers is null, we'll convert it back to
498 498
         // an empty array.
@@ -825,15 +825,15 @@  discard block
 block discarded – undo
825 825
 	
826 826
 	
827 827
         if (!class_exists($className, false)) {
828
-          require_once 'Zend/Loader.php';
829
-          @Zend_Loader::loadClass($className);
828
+            require_once 'Zend/Loader.php';
829
+            @Zend_Loader::loadClass($className);
830 830
         }
831 831
 
832 832
         // Load the feed as an XML DOMDocument object
833 833
         @ini_set('track_errors', 1);
834 834
         $doc = new DOMDocument();
835 835
         //$doc = @Zend_Xml_Security::scan($string, $doc);
836
-		$doc->loadXML($string);
836
+        $doc->loadXML($string);
837 837
         @ini_restore('track_errors');
838 838
 
839 839
 
@@ -965,11 +965,11 @@  discard block
 block discarded – undo
965 965
                 'DELETE', null, $headers, $data);
966 966
         }
967 967
         return $this->performHttpRequest($requestData['method'],
968
-                                         $requestData['url'],
969
-                                         $requestData['headers'],
970
-                                         '',
971
-                                         $requestData['contentType'],
972
-                                         $remainingRedirects);
968
+                                            $requestData['url'],
969
+                                            $requestData['headers'],
970
+                                            '',
971
+                                            $requestData['contentType'],
972
+                                            $remainingRedirects);
973 973
     }
974 974
 
975 975
     /**
@@ -988,8 +988,8 @@  discard block
 block discarded – undo
988 988
         $extraHeaders = array())
989 989
     {
990 990
         if (!class_exists($className, false)) {
991
-          require_once 'Zend/Loader.php';
992
-          @Zend_Loader::loadClass($className);
991
+            require_once 'Zend/Loader.php';
992
+            @Zend_Loader::loadClass($className);
993 993
         }
994 994
 
995 995
         $response = $this->post($data, $uri, null, null, $extraHeaders);
@@ -1029,8 +1029,8 @@  discard block
 block discarded – undo
1029 1029
         }
1030 1030
 
1031 1031
         if (!class_exists($className, false)) {
1032
-          require_once 'Zend/Loader.php';
1033
-          @Zend_Loader::loadClass($className);
1032
+            require_once 'Zend/Loader.php';
1033
+            @Zend_Loader::loadClass($className);
1034 1034
         }
1035 1035
 
1036 1036
         $response = $this->put($data, $uri, null, null, $extraHeaders);
@@ -1064,21 +1064,21 @@  discard block
 block discarded – undo
1064 1064
             $class = $matches[1];
1065 1065
             $foundClassName = null;
1066 1066
             foreach ($this->_registeredPackages as $name) {
1067
-                 try {
1068
-                     // Autoloading disabled on next line for compatibility
1069
-                     // with magic factories. See ZF-6660.
1070
-                     if (!class_exists($name . '_' . $class, false)) {
1067
+                    try {
1068
+                        // Autoloading disabled on next line for compatibility
1069
+                        // with magic factories. See ZF-6660.
1070
+                        if (!class_exists($name . '_' . $class, false)) {
1071 1071
                         require_once 'Zend/Loader.php';
1072 1072
                         @Zend_Loader::loadClass($name . '_' . $class);
1073
-                     }
1074
-                     $foundClassName = $name . '_' . $class;
1075
-                     break;
1076
-                 } catch (Zend_Exception $e) {
1077
-                     // package wasn't here- continue searching
1078
-                 } catch (ErrorException $e) {
1079
-                     // package wasn't here- continue searching
1080
-                     // @see ZF-7013 and ZF-11959
1081
-                 }
1073
+                        }
1074
+                        $foundClassName = $name . '_' . $class;
1075
+                        break;
1076
+                    } catch (Zend_Exception $e) {
1077
+                        // package wasn't here- continue searching
1078
+                    } catch (ErrorException $e) {
1079
+                        // package wasn't here- continue searching
1080
+                        // @see ZF-7013 and ZF-11959
1081
+                    }
1082 1082
             }
1083 1083
             if ($foundClassName != null) {
1084 1084
                 $reflectionObj = new ReflectionClass($foundClassName);
Please login to merge, or discard this patch.
lib/Zend/Gdata/Gapps/Query.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
  *
38 38
  * This class should never be instantiated directly. Instead, instantiate a
39 39
  * class which inherits from this class.
40
-  *
40
+ *
41 41
  * @category   Zend
42 42
  * @package    Zend_Gdata
43 43
  * @subpackage Gapps
@@ -105,19 +105,19 @@  discard block
 block discarded – undo
105 105
      * @param string $domain (optional) A fully-qualified domain to use
106 106
      *          instead of the default domain for this service instance.
107 107
      */
108
-     public function getBaseUrl($domain = null)
109
-     {
110
-         if ($domain !== null) {
111
-             return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $domain;
112
-         }
113
-         else if ($this->_domain !== null) {
114
-             return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $this->_domain;
115
-         }
116
-         else {
117
-             require_once 'Zend/Gdata/App/InvalidArgumentException.php';
118
-             throw new Zend_Gdata_App_InvalidArgumentException(
119
-                 'Domain must be specified.');
120
-         }
121
-     }
108
+        public function getBaseUrl($domain = null)
109
+        {
110
+            if ($domain !== null) {
111
+                return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $domain;
112
+            }
113
+            else if ($this->_domain !== null) {
114
+                return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $this->_domain;
115
+            }
116
+            else {
117
+                require_once 'Zend/Gdata/App/InvalidArgumentException.php';
118
+                throw new Zend_Gdata_App_InvalidArgumentException(
119
+                    'Domain must be specified.');
120
+            }
121
+        }
122 122
 
123 123
 }
Please login to merge, or discard this patch.
lib/Zend/Gdata/Gapps/Extension/Property.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,6 +174,6 @@
 block discarded – undo
174 174
     public function __toString()
175 175
     {
176 176
         return "Property Name: " . $this->getName() .
177
-               "\nProperty Value: " . $this->getValue();
177
+                "\nProperty Value: " . $this->getValue();
178 178
     }
179 179
 }
Please login to merge, or discard this patch.