Completed
Push — master ( 276db7...0bd148 )
by Rakesh
07:30 queued 03:39
created
lib/Zend/Gdata/Gapps/GroupQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     public function setDirectOnly($value)
138 138
     {
139 139
         if ($value !== null) {
140
-            if($value == true) {
140
+            if ($value == true) {
141 141
                 $this->_params['directOnly'] = 'true';
142 142
             } else {
143 143
                 $this->_params['directOnly'] = 'false';
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         if (array_key_exists('directOnly', $this->_params)) {
158 158
 
159
-            if($this->_params['directOnly'] == 'true') {
159
+            if ($this->_params['directOnly'] == 'true') {
160 160
                 return true;
161 161
             } else {
162 162
                 return false;
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             $uri .= '/' . $this->_groupId;
216 216
         }
217 217
 
218
-        if(array_key_exists('member', $this->_params)) {
218
+        if (array_key_exists('member', $this->_params)) {
219 219
             $uri .= '/';
220 220
         }
221 221
 
Please login to merge, or discard this patch.
lib/Zend/Gdata/Spreadsheets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
      */
296 296
     public function updateCell($row, $col, $inputValue, $key, $wkshtId = 'default')
297 297
     {
298
-        $cell = 'R'.$row.'C'.$col;
298
+        $cell = 'R' . $row . 'C' . $col;
299 299
 
300 300
         $query = new Zend_Gdata_Spreadsheets_CellQuery();
301 301
         $query->setSpreadsheetKey($key);
Please login to merge, or discard this patch.
lib/Zend/Gdata/ClientLogin.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $loginUri = self::CLIENTLOGIN_URI,
87 87
         $accountType = 'HOSTED_OR_GOOGLE')
88 88
     {
89
-        if (! ($email && $password)) {
89
+        if (!($email && $password)) {
90 90
             require_once 'Zend/Gdata/App/AuthException.php';
91 91
             throw new Zend_Gdata_App_AuthException(
92 92
                    'Please set your Google credentials before trying to ' .
@@ -112,15 +112,15 @@  discard block
 block discarded – undo
112 112
             )
113 113
         );
114 114
         $client->setParameterPost('accountType', $accountType);
115
-        $client->setParameterPost('Email', (string) $email);
116
-        $client->setParameterPost('Passwd', (string) $password);
117
-        $client->setParameterPost('service', (string) $service);
118
-        $client->setParameterPost('source', (string) $source);
115
+        $client->setParameterPost('Email', (string)$email);
116
+        $client->setParameterPost('Passwd', (string)$password);
117
+        $client->setParameterPost('service', (string)$service);
118
+        $client->setParameterPost('source', (string)$source);
119 119
         if ($loginToken || $loginCaptcha) {
120
-            if($loginToken && $loginCaptcha) {
121
-                $client->setParameterPost('logintoken', (string) $loginToken);
120
+            if ($loginToken && $loginCaptcha) {
121
+                $client->setParameterPost('logintoken', (string)$loginToken);
122 122
                 $client->setParameterPost('logincaptcha',
123
-                        (string) $loginCaptcha);
123
+                        (string)$loginCaptcha);
124 124
             }
125 125
             else {
126 126
                 require_once 'Zend/Gdata/App/AuthException.php';
Please login to merge, or discard this patch.
lib/Zend/Gdata/App/Extension/Category.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     protected $_scheme = null;
44 44
     protected $_label = null;
45 45
 
46
-    public function __construct($term = null, $scheme = null, $label=null)
46
+    public function __construct($term = null, $scheme = null, $label = null)
47 47
     {
48 48
         parent::__construct();
49 49
         $this->_term = $term;
Please login to merge, or discard this patch.
lib/Zend/Gdata/App/Extension/Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             $this->_uri = $attribute->nodeValue;
70 70
             break;
71 71
         case 'version':
72
-            $this->_version= $attribute->nodeValue;
72
+            $this->_version = $attribute->nodeValue;
73 73
             break;
74 74
         default:
75 75
             parent::takeAttributeFromDOM($attribute);
Please login to merge, or discard this patch.
lib/Zend/Gdata/App/Extension/Element.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 class Zend_Gdata_App_Extension_Element extends Zend_Gdata_App_Extension
40 40
 {
41 41
 
42
-    public function __construct($rootElement=null, $rootNamespace=null, $rootNamespaceURI=null, $text=null){
42
+    public function __construct($rootElement = null, $rootNamespace = null, $rootNamespaceURI = null, $text = null) {
43 43
         parent::__construct();
44 44
         $this->_rootElement = $rootElement;
45 45
         $this->_rootNamespace = $rootNamespace;
Please login to merge, or discard this patch.
lib/Zend/Gdata/App/Base.php 1 patch
Spacing   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -263,9 +263,8 @@  discard block
 block discarded – undo
263 263
      */
264 264
     protected function takeAttributeFromDOM($attribute)
265 265
     {
266
-        $arrayIndex = ($attribute->namespaceURI != '')?(
267
-                $attribute->namespaceURI . ':' . $attribute->name):
268
-                $attribute->name;
266
+        $arrayIndex = ($attribute->namespaceURI != '') ? (
267
+                $attribute->namespaceURI . ':' . $attribute->name) : $attribute->name;
269 268
         $this->_extensionAttributes[$arrayIndex] =
270 269
                 array('namespaceUri' => $attribute->namespaceURI,
271 270
                       'name' => $attribute->localName,
@@ -383,7 +382,7 @@  discard block
 block discarded – undo
383 382
         // Check for a memoized result
384 383
         $key = $prefix . ' ' .
385 384
                ($majorVersion === null ? 'NULL' : $majorVersion) .
386
-               ' '. ($minorVersion === null ? 'NULL' : $minorVersion);
385
+               ' ' . ($minorVersion === null ? 'NULL' : $minorVersion);
387 386
         if (array_key_exists($key, self::$_namespaceLookupCache))
388 387
           return self::$_namespaceLookupCache[$key];
389 388
         // If no match, return the prefix by default
@@ -463,7 +462,7 @@  discard block
 block discarded – undo
463 462
      */
464 463
     public function registerAllNamespaces($namespaceArray)
465 464
     {
466
-        foreach($namespaceArray as $namespace) {
465
+        foreach ($namespaceArray as $namespace) {
467 466
                 $this->registerNamespace(
468 467
                     $namespace[0], $namespace[1], $namespace[2], $namespace[3]);
469 468
         }
@@ -481,7 +480,7 @@  discard block
 block discarded – undo
481 480
      */
482 481
     public function __get($name)
483 482
     {
484
-        $method = 'get'.ucfirst($name);
483
+        $method = 'get' . ucfirst($name);
485 484
         if (method_exists($this, $method)) {
486 485
             return call_user_func(array(&$this, $method));
487 486
         } else if (property_exists($this, "_${name}")) {
@@ -507,7 +506,7 @@  discard block
 block discarded – undo
507 506
      */
508 507
     public function __set($name, $val)
509 508
     {
510
-        $method = 'set'.ucfirst($name);
509
+        $method = 'set' . ucfirst($name);
511 510
         if (method_exists($this, $method)) {
512 511
             return call_user_func(array(&$this, $method), $val);
513 512
         } else if (isset($this->{'_' . $name}) || ($this->{'_' . $name} === null)) {
Please login to merge, or discard this patch.
lib/Zend/Gdata/App/BaseMediaSource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      *
83 83
      * @return string
84 84
      */
85
-    public function getSlug(){
85
+    public function getSlug() {
86 86
         return $this->_slug;
87 87
     }
88 88
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @var string The slug value
94 94
      * @return Zend_Gdata_App_MediaSource Provides a fluent interface
95 95
      */
96
-    public function setSlug($value){
96
+    public function setSlug($value) {
97 97
         $this->_slug = $value;
98 98
         return $this;
99 99
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function __get($name)
112 112
     {
113
-        $method = 'get'.ucfirst($name);
113
+        $method = 'get' . ucfirst($name);
114 114
         if (method_exists($this, $method)) {
115 115
             return call_user_func(array(&$this, $method));
116 116
         } else if (property_exists($this, "_${name}")) {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function __set($name, $val)
136 136
     {
137
-        $method = 'set'.ucfirst($name);
137
+        $method = 'set' . ucfirst($name);
138 138
         if (method_exists($this, $method)) {
139 139
             return call_user_func(array(&$this, $method), $val);
140 140
         } else if (isset($this->{'_' . $name}) || ($this->{'_' . $name} === null)) {
Please login to merge, or discard this patch.
lib/Zend/Gdata/YouTube.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
         }
240 240
 
241 241
         if ($developerKey != null) {
242
-            $client->setHeaders('X-GData-Key', 'key='. $developerKey);
242
+            $client->setHeaders('X-GData-Key', 'key=' . $developerKey);
243 243
         }
244 244
 
245 245
         return parent::setHttpClient($client, $applicationId);
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
      * @return array An array containing a token and URL
700 700
      */
701 701
     public function getFormUploadToken($videoEntry,
702
-        $url='https://gdata.youtube.com/action/GetUploadToken')
702
+        $url = 'https://gdata.youtube.com/action/GetUploadToken')
703 703
     {
704 704
         if ($url != null && is_string($url)) {
705 705
             // $response is a Zend_Http_response object
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
                 require_once 'Zend/Gdata/App/InvalidArgumentException.php';
739 739
                 throw new Zend_Gdata_App_InvalidArgumentException(
740 740
                     'Activity feed can only retrieve for activity for up to ' .
741
-                    self::ACTIVITY_FEED_MAX_USERS .  ' users per request');
741
+                    self::ACTIVITY_FEED_MAX_USERS . ' users per request');
742 742
             }
743 743
             $uri = self::ACTIVITY_FEED_URI . '?author=' . $username;
744 744
         }
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
         $inReplyToLinkHref = self::VIDEO_URI . '/' . $commentIdArray[3] .
864 864
             '/comments/' . $commentIdArray[5];
865 865
         $inReplyToLink = $this->newLink($inReplyToLinkHref,
866
-            self::IN_REPLY_TO_SCHEME, $type="application/atom+xml");
866
+            self::IN_REPLY_TO_SCHEME, $type = "application/atom+xml");
867 867
         $links = $newComment->getLink();
868 868
         $links[] = $inReplyToLink;
869 869
         $newComment->setLink($links);
Please login to merge, or discard this patch.