Completed
Push — master ( 85e358...cf3219 )
by Rakesh
04:24 queued 10s
created
lib/Zend/Gdata/YouTube/Extension/MediaContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
71 71
     {
72 72
         $element = parent::getDOM($doc, $majorVersion, $minorVersion);
73
-        if ($this->_format!= null) {
73
+        if ($this->_format != null) {
74 74
             $element->setAttributeNS($this->lookupNamespace('yt'), 'yt:format', $this->_format);
75 75
         }
76 76
         return $element;
Please login to merge, or discard this patch.
lib/Zend/Gdata/YouTube/Extension/MediaCredit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      * @param string $role
69 69
      * @param string $scheme
70 70
      */
71
-    public function __construct($text = null, $role = null,  $scheme = null,
71
+    public function __construct($text = null, $role = null, $scheme = null,
72 72
         $yttype = null)
73 73
     {
74 74
         $this->registerAllNamespaces(Zend_Gdata_Media::$namespaces);
Please login to merge, or discard this patch.
lib/Zend/Gdata/YouTube/VideoQuery.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function setLocation($value)
126 126
     {
127
-        switch($value) {
127
+        switch ($value) {
128 128
             case null:
129 129
                 unset($this->_params['location']);
130 130
             default:
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                         'URL parameter');
137 137
                 }
138 138
 
139
-                foreach($parameters as $param) {
139
+                foreach ($parameters as $param) {
140 140
                     $temp = trim($param);
141 141
                     // strip off the optional exclamation mark for numeric check
142 142
                     if (substr($temp, -1) == '!') {
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      */
177 177
     public function setLocationRadius($value)
178 178
     {
179
-        switch($value) {
179
+        switch ($value) {
180 180
             case null:
181 181
                 unset($this->_params['location-radius']);
182 182
             default:
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
             default:
351 351
                 require_once 'Zend/Gdata/App/InvalidArgumentException.php';
352 352
                 throw new Zend_Gdata_App_InvalidArgumentException(
353
-                    'The safeSearch parameter only supports the values '.
353
+                    'The safeSearch parameter only supports the values ' .
354 354
                     '\'none\', \'moderate\' or \'strict\'.');
355 355
         }
356 356
     }
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
                 continue;
462 462
             }
463 463
 
464
-            switch($name) {
464
+            switch ($name) {
465 465
                 case 'location-radius':
466 466
                     if ($majorProtocolVersion == 1) {
467 467
                         require_once 'Zend/Gdata/App/VersionException.php';
Please login to merge, or discard this patch.
lib/Zend/Gdata/YouTube/VideoEntry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -936,7 +936,7 @@  discard block
 block discarded – undo
936 936
         $this->ensureMediaGroupIsNotNull();
937 937
         $categories = $this->getMediaGroup()->getCategory();
938 938
         if ($categories != null) {
939
-            foreach($categories as $category) {
939
+            foreach ($categories as $category) {
940 940
                 if ($category->getScheme() == self::YOUTUBE_CATEGORY_SCHEMA) {
941 941
                     return $category->getText();
942 942
                 }
@@ -1014,7 +1014,7 @@  discard block
 block discarded – undo
1014 1014
      */
1015 1015
     public function setVideoDeveloperTags($developerTags)
1016 1016
     {
1017
-        foreach($developerTags as $developerTag) {
1017
+        foreach ($developerTags as $developerTag) {
1018 1018
             $this->addVideoDeveloperTag($developerTag);
1019 1019
         }
1020 1020
         return $this;
Please login to merge, or discard this patch.
lib/Zend/Gdata/Spreadsheets/CellQuery.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
     public function setReturnEmpty($value)
333 333
     {
334 334
         if (is_bool($value)) {
335
-            $this->_params['return-empty'] = ($value?'true':'false');
335
+            $this->_params['return-empty'] = ($value ? 'true' : 'false');
336 336
         } else if ($value != null) {
337 337
             $this->_params['return-empty'] = $value;
338 338
         } else {
@@ -366,35 +366,35 @@  discard block
 block discarded – undo
366 366
             $uri = $this->_defaultFeedUri;
367 367
 
368 368
             if ($this->_spreadsheetKey != null) {
369
-                $uri .= '/'.$this->_spreadsheetKey;
369
+                $uri .= '/' . $this->_spreadsheetKey;
370 370
             } else {
371 371
                 require_once 'Zend/Gdata/App/Exception.php';
372 372
                 throw new Zend_Gdata_App_Exception('A spreadsheet key must be provided for cell queries.');
373 373
             }
374 374
 
375 375
             if ($this->_worksheetId != null) {
376
-                $uri .= '/'.$this->_worksheetId;
376
+                $uri .= '/' . $this->_worksheetId;
377 377
             } else {
378 378
                 require_once 'Zend/Gdata/App/Exception.php';
379 379
                 throw new Zend_Gdata_App_Exception('A worksheet id must be provided for cell queries.');
380 380
             }
381 381
 
382 382
             if ($this->_visibility != null) {
383
-                $uri .= '/'.$this->_visibility;
383
+                $uri .= '/' . $this->_visibility;
384 384
             } else {
385 385
                 require_once 'Zend/Gdata/App/Exception.php';
386 386
                 throw new Zend_Gdata_App_Exception('A visibility must be provided for cell queries.');
387 387
             }
388 388
 
389 389
             if ($this->_projection != null) {
390
-                $uri .= '/'.$this->_projection;
390
+                $uri .= '/' . $this->_projection;
391 391
             } else {
392 392
                 require_once 'Zend/Gdata/App/Exception.php';
393 393
                 throw new Zend_Gdata_App_Exception('A projection must be provided for cell queries.');
394 394
             }
395 395
 
396 396
             if ($this->_cellId != null) {
397
-                $uri .= '/'.$this->_cellId;
397
+                $uri .= '/' . $this->_cellId;
398 398
             }
399 399
         } else {
400 400
             $uri = $this->_url;
Please login to merge, or discard this patch.
lib/Zend/Gdata/Spreadsheets/DocumentQuery.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -222,14 +222,14 @@  discard block
 block discarded – undo
222 222
         $uri = '';
223 223
 
224 224
         if ($this->_visibility != null) {
225
-            $uri .= '/'.$this->_visibility;
225
+            $uri .= '/' . $this->_visibility;
226 226
         } else {
227 227
             require_once 'Zend/Gdata/App/Exception.php';
228 228
             throw new Zend_Gdata_App_Exception('A visibility must be provided for document queries.');
229 229
         }
230 230
 
231 231
         if ($this->_projection != null) {
232
-            $uri .= '/'.$this->_projection;
232
+            $uri .= '/' . $this->_projection;
233 233
         } else {
234 234
             require_once 'Zend/Gdata/App/Exception.php';
235 235
             throw new Zend_Gdata_App_Exception('A projection must be provided for document queries.');
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         $uri = $this->_defaultFeedUri;
249 249
 
250 250
         if ($this->_documentType != null) {
251
-            $uri .= '/'.$this->_documentType;
251
+            $uri .= '/' . $this->_documentType;
252 252
         } else {
253 253
             require_once 'Zend/Gdata/App/Exception.php';
254 254
             throw new Zend_Gdata_App_Exception('A document type must be provided for document queries.');
@@ -257,18 +257,18 @@  discard block
 block discarded – undo
257 257
         if ($this->_documentType == 'spreadsheets') {
258 258
             $uri .= $this->appendVisibilityProjection();
259 259
             if ($this->_spreadsheetKey != null) {
260
-                $uri .= '/'.$this->_spreadsheetKey;
260
+                $uri .= '/' . $this->_spreadsheetKey;
261 261
             }
262 262
         } else if ($this->_documentType == 'worksheets') {
263 263
             if ($this->_spreadsheetKey != null) {
264
-                $uri .= '/'.$this->_spreadsheetKey;
264
+                $uri .= '/' . $this->_spreadsheetKey;
265 265
             } else {
266 266
                 require_once 'Zend/Gdata/App/Exception.php';
267 267
                 throw new Zend_Gdata_App_Exception('A spreadsheet key must be provided for worksheet document queries.');
268 268
             }
269 269
             $uri .= $this->appendVisibilityProjection();
270 270
             if ($this->_worksheetId != null) {
271
-                $uri .= '/'.$this->_worksheetId;
271
+                $uri .= '/' . $this->_worksheetId;
272 272
             }
273 273
         }
274 274
 
Please login to merge, or discard this patch.
lib/Zend/Gdata/Spreadsheets/ListQuery.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -258,35 +258,35 @@
 block discarded – undo
258 258
         $uri = $this->_defaultFeedUri;
259 259
 
260 260
         if ($this->_spreadsheetKey != null) {
261
-            $uri .= '/'.$this->_spreadsheetKey;
261
+            $uri .= '/' . $this->_spreadsheetKey;
262 262
         } else {
263 263
             require_once 'Zend/Gdata/App/Exception.php';
264 264
             throw new Zend_Gdata_App_Exception('A spreadsheet key must be provided for list queries.');
265 265
         }
266 266
 
267 267
         if ($this->_worksheetId != null) {
268
-            $uri .= '/'.$this->_worksheetId;
268
+            $uri .= '/' . $this->_worksheetId;
269 269
         } else {
270 270
             require_once 'Zend/Gdata/App/Exception.php';
271 271
             throw new Zend_Gdata_App_Exception('A worksheet id must be provided for list queries.');
272 272
         }
273 273
 
274 274
         if ($this->_visibility != null) {
275
-            $uri .= '/'.$this->_visibility;
275
+            $uri .= '/' . $this->_visibility;
276 276
         } else {
277 277
             require_once 'Zend/Gdata/App/Exception.php';
278 278
             throw new Zend_Gdata_App_Exception('A visibility must be provided for list queries.');
279 279
         }
280 280
 
281 281
         if ($this->_projection != null) {
282
-            $uri .= '/'.$this->_projection;
282
+            $uri .= '/' . $this->_projection;
283 283
         } else {
284 284
             require_once 'Zend/Gdata/App/Exception.php';
285 285
             throw new Zend_Gdata_App_Exception('A projection must be provided for list queries.');
286 286
         }
287 287
 
288 288
         if ($this->_rowId != null) {
289
-            $uri .= '/'.$this->_rowId;
289
+            $uri .= '/' . $this->_rowId;
290 290
         }
291 291
 
292 292
         $uri .= $this->getQueryString();
Please login to merge, or discard this patch.
lib/Zend/Gdata/Calendar/EventQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
     {
396 396
         if ($value !== null) {
397 397
             if (is_bool($value)) {
398
-                $this->_params['singleevents'] = ($value?'true':'false');
398
+                $this->_params['singleevents'] = ($value ? 'true' : 'false');
399 399
             } elseif ($value == 'true' | $value == 'false') {
400 400
                 $this->_params['singleevents'] = $value;
401 401
             } else {
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     {
445 445
         if ($value !== null) {
446 446
             if (is_bool($value)) {
447
-                $this->_params['futureevents'] = ($value?'true':'false');
447
+                $this->_params['futureevents'] = ($value ? 'true' : 'false');
448 448
             } elseif ($value == 'true' | $value == 'false') {
449 449
                 $this->_params['futureevents'] = $value;
450 450
             } else {
Please login to merge, or discard this patch.
lib/Zend/Gdata/Extension/When.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
             return $this->_valueString;
119 119
         else {
120 120
             return 'Starts: ' . $this->getStartTime() . ' ' .
121
-                   'Ends: ' .  $this->getEndTime();
121
+                   'Ends: ' . $this->getEndTime();
122 122
         }
123 123
     }
124 124
 
Please login to merge, or discard this patch.