Completed
Push — master ( cf3219...0b31bd )
by Rakesh
03:52
created
lib/Zend/Gdata.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *                                    useObjectMapping() function.
122 122
      */
123 123
     public static function import($uri, $client = null,
124
-        $className='Zend_Gdata_Feed', $useObjectMapping = true)
124
+        $className = 'Zend_Gdata_Feed', $useObjectMapping = true)
125 125
     {
126 126
         $app = new Zend_Gdata($client);
127 127
         $requestData = $app->decodeRequest('GET', $uri);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      *                                    by passing false to the
148 148
      *                                    useObjectMapping() function.
149 149
      */
150
-    public function getFeed($location, $className='Zend_Gdata_Feed')
150
+    public function getFeed($location, $className = 'Zend_Gdata_Feed')
151 151
     {
152 152
 	
153 153
         if (is_string($location)) {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      *                                     by passing false to the
175 175
      *                                     useObjectMapping() function.
176 176
      */
177
-    public function getEntry($location, $className='Zend_Gdata_Entry')
177
+    public function getEntry($location, $className = 'Zend_Gdata_Entry')
178 178
     {
179 179
         if (is_string($location)) {
180 180
             $uri = $location;
Please login to merge, or discard this patch.
lib/Zend/Uri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
 
143 143
         $schemeHandler = new $className($scheme, $schemeSpecific);
144 144
 
145
-        if (! $schemeHandler instanceof Zend_Uri) {
145
+        if (!$schemeHandler instanceof Zend_Uri) {
146 146
             require_once 'Zend/Uri/Exception.php';
147 147
             throw new Zend_Uri_Exception("\"$className\" is not an instance of Zend_Uri");
148 148
         }
Please login to merge, or discard this patch.
lib/Zend/Loader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         if ('Zend_Loader' != $class) {
261 261
             self::loadClass($class);
262 262
             $methods = get_class_methods($class);
263
-            if (!in_array('autoload', (array) $methods)) {
263
+            if (!in_array('autoload', (array)$methods)) {
264 264
                 require_once 'Zend/Exception.php';
265 265
                 throw new Zend_Exception("The class \"$class\" does not have an autoload() method");
266 266
             }
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         if ($once) {
313 313
             return include_once $filespec;
314 314
         } else {
315
-            return include $filespec ;
315
+            return include $filespec;
316 316
         }
317 317
     }
318 318
 
Please login to merge, or discard this patch.
lib/Zend/Exception.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,8 @@
 block discarded – undo
77 77
         if (version_compare(PHP_VERSION, '5.3.0', '<')) {
78 78
             if (null !== ($e = $this->getPrevious())) {
79 79
                 return $e->__toString()
80
-                       . "\n\nNext "
81
-                       . parent::__toString();
80
+                        . "\n\nNext "
81
+                        . parent::__toString();
82 82
             }
83 83
         }
84 84
         return parent::__toString();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
     public function __construct($msg = '', $code = 0, Exception $previous = null)
44 44
     {
45 45
         if (version_compare(PHP_VERSION, '5.3.0', '<')) {
46
-            parent::__construct($msg, (int) $code);
46
+            parent::__construct($msg, (int)$code);
47 47
             $this->_previous = $previous;
48 48
         } else {
49
-            parent::__construct($msg, (int) $code, $previous);
49
+            parent::__construct($msg, (int)$code, $previous);
50 50
         }
51 51
     }
52 52
 
Please login to merge, or discard this patch.
lib/Zend/Uri/Http.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -254,13 +254,13 @@
 block discarded – undo
254 254
         $fragment = strlen($this->_fragment) > 0 ? "#$this->_fragment" : '';
255 255
 
256 256
         return $this->_scheme
257
-             . '://'
258
-             . $auth
259
-             . $this->_host
260
-             . $port
261
-             . $this->_path
262
-             . $query
263
-             . $fragment;
257
+                . '://'
258
+                . $auth
259
+                . $this->_host
260
+                . $port
261
+                . $this->_path
262
+                . $query
263
+                . $fragment;
264 264
     }
265 265
 
266 266
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
         }
495 495
 
496 496
         // Check the port against the allowed values
497
-        return ctype_digit((string) $port) and 1 <= $port and $port <= 65535;
497
+        return ctype_digit((string)$port) and 1 <= $port and $port <= 65535;
498 498
     }
499 499
 
500 500
     /**
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
             throw new Zend_Uri_Exception('Internal error: path validation failed');
555 555
         }
556 556
 
557
-        return (boolean) $status;
557
+        return (boolean)$status;
558 558
     }
559 559
 
560 560
     /**
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
             $query = http_build_query($query, '', '&');
685 685
         } else {
686 686
             // If it is a string, make sure it is valid. If not parse and encode it
687
-            $query = (string) $query;
687
+            $query = (string)$query;
688 688
             if ($this->validateQuery($query) === false) {
689 689
                 parse_str($query, $queryArray);
690 690
                 $query = http_build_query($queryArray, '', '&');
@@ -740,7 +740,7 @@  discard block
 block discarded – undo
740 740
             throw new Zend_Uri_Exception('Internal error: fragment validation failed');
741 741
         }
742 742
 
743
-        return (boolean) $status;
743
+        return (boolean)$status;
744 744
     }
745 745
 
746 746
     /**
Please login to merge, or discard this patch.
lib/Zend/Gdata/Books.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         $this->registerPackage('Zend_Gdata_Books_Extension');
91 91
         parent::__construct($client, $applicationId);
92 92
         $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
93
-     }
93
+        }
94 94
 
95 95
     /**
96 96
      * Retrieves a feed of volumes.
Please login to merge, or discard this patch.
lib/Zend/Gdata/Query.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
     public function __get($name)
397 397
     {
398
-        $method = 'get'.ucfirst($name);
398
+        $method = 'get' . ucfirst($name);
399 399
         if (method_exists($this, $method)) {
400 400
             return call_user_func(array(&$this, $method));
401 401
         } else {
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 
407 407
     public function __set($name, $val)
408 408
     {
409
-        $method = 'set'.ucfirst($name);
409
+        $method = 'set' . ucfirst($name);
410 410
         if (method_exists($this, $method)) {
411 411
             return call_user_func(array(&$this, $method), $val);
412 412
         } else {
Please login to merge, or discard this patch.
lib/Zend/Gdata/Exif/Entry.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -102,14 +102,14 @@
 block discarded – undo
102 102
     {
103 103
         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
104 104
         switch ($absoluteNodeName) {
105
-        case $this->lookupNamespace('exif') . ':' . 'tags':
106
-            $tags = new Zend_Gdata_Exif_Extension_Tags();
107
-            $tags->transferFromDOM($child);
108
-            $this->_tags = $tags;
109
-            break;
110
-        default:
111
-            parent::takeChildFromDOM($child);
112
-            break;
105
+            case $this->lookupNamespace('exif') . ':' . 'tags':
106
+                $tags = new Zend_Gdata_Exif_Extension_Tags();
107
+                $tags->transferFromDOM($child);
108
+                $this->_tags = $tags;
109
+                break;
110
+            default:
111
+                parent::takeChildFromDOM($child);
112
+                break;
113 113
         }
114 114
     }
115 115
 
Please login to merge, or discard this patch.
lib/Zend/Gdata/YouTube/ActivityEntry.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -109,16 +109,16 @@
 block discarded – undo
109 109
     {
110 110
         $element = parent::getDOM($doc, $majorVersion, $minorVersion);
111 111
         if ($this->_videoId !== null) {
112
-          $element->appendChild($this->_videoId->getDOM(
113
-              $element->ownerDocument));
112
+            $element->appendChild($this->_videoId->getDOM(
113
+                $element->ownerDocument));
114 114
         }
115 115
         if ($this->_username !== null) {
116
-          $element->appendChild($this->_username->getDOM(
117
-              $element->ownerDocument));
116
+            $element->appendChild($this->_username->getDOM(
117
+                $element->ownerDocument));
118 118
         }
119 119
         if ($this->_rating !== null) {
120
-          $element->appendChild($this->_rating->getDOM(
121
-              $element->ownerDocument));
120
+            $element->appendChild($this->_rating->getDOM(
121
+                $element->ownerDocument));
122 122
         }
123 123
         return $element;
124 124
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
     public function getActivityType()
212 212
     {
213 213
         $categories = $this->getCategory();
214
-        foreach($categories as $category) {
214
+        foreach ($categories as $category) {
215 215
             if ($category->getScheme() == self::ACTIVITY_CATEGORY_SCHEME) {
216 216
                 return $category->getTerm();
217 217
             }
Please login to merge, or discard this patch.