Completed
Push — master ( 276db7...0bd148 )
by Rakesh
07:30 queued 03:39
created
lib/Zend/Gdata/App/FeedSourceParent.php 1 patch
Switch Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -166,29 +166,29 @@
 block discarded – undo
166 166
     {
167 167
         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
168 168
         switch ($absoluteNodeName) {
169
-        case $this->lookupNamespace('atom') . ':' . 'generator':
170
-            $generator = new Zend_Gdata_App_Extension_Generator();
171
-            $generator->transferFromDOM($child);
172
-            $this->_generator = $generator;
173
-            break;
174
-        case $this->lookupNamespace('atom') . ':' . 'icon':
175
-            $icon = new Zend_Gdata_App_Extension_Icon();
176
-            $icon->transferFromDOM($child);
177
-            $this->_icon = $icon;
178
-            break;
179
-        case $this->lookupNamespace('atom') . ':' . 'logo':
180
-            $logo = new Zend_Gdata_App_Extension_Logo();
181
-            $logo->transferFromDOM($child);
182
-            $this->_logo = $logo;
183
-            break;
184
-        case $this->lookupNamespace('atom') . ':' . 'subtitle':
185
-            $subtitle = new Zend_Gdata_App_Extension_Subtitle();
186
-            $subtitle->transferFromDOM($child);
187
-            $this->_subtitle = $subtitle;
188
-            break;
189
-        default:
190
-            parent::takeChildFromDOM($child);
191
-            break;
169
+            case $this->lookupNamespace('atom') . ':' . 'generator':
170
+                $generator = new Zend_Gdata_App_Extension_Generator();
171
+                $generator->transferFromDOM($child);
172
+                $this->_generator = $generator;
173
+                break;
174
+            case $this->lookupNamespace('atom') . ':' . 'icon':
175
+                $icon = new Zend_Gdata_App_Extension_Icon();
176
+                $icon->transferFromDOM($child);
177
+                $this->_icon = $icon;
178
+                break;
179
+            case $this->lookupNamespace('atom') . ':' . 'logo':
180
+                $logo = new Zend_Gdata_App_Extension_Logo();
181
+                $logo->transferFromDOM($child);
182
+                $this->_logo = $logo;
183
+                break;
184
+            case $this->lookupNamespace('atom') . ':' . 'subtitle':
185
+                $subtitle = new Zend_Gdata_App_Extension_Subtitle();
186
+                $subtitle->transferFromDOM($child);
187
+                $this->_subtitle = $subtitle;
188
+                break;
189
+            default:
190
+                parent::takeChildFromDOM($child);
191
+                break;
192 192
         }
193 193
     }
194 194
 
Please login to merge, or discard this patch.
lib/Zend/Gdata/App/Util.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public static function formatTimestamp($timestamp)
44 44
     {
45 45
         $rfc3339 = '/^(\d{4})\-?(\d{2})\-?(\d{2})((T|t)(\d{2})\:?(\d{2})' .
46
-                   '\:?(\d{2})(\.\d{1,})?((Z|z)|([\+\-])(\d{2})\:?(\d{2})))?$/';
46
+                    '\:?(\d{2})(\.\d{1,})?((Z|z)|([\+\-])(\d{2})\:?(\d{2})))?$/';
47 47
 
48 48
         if (ctype_digit((string)$timestamp)) {
49 49
             return gmdate('Y-m-d\TH:i:sP', $timestamp);
@@ -61,15 +61,15 @@  discard block
 block discarded – undo
61 61
     }
62 62
 
63 63
     /** Find the greatest key that is less than or equal to a given upper
64
-      * bound, and return the value associated with that key.
65
-      *
66
-      * @param integer|null $maximumKey The upper bound for keys. If null, the
67
-      *        maxiumum valued key will be found.
68
-      * @param array $collection An two-dimensional array of key/value pairs
69
-      *        to search through.
70
-      * @returns mixed The value corresponding to the located key.
71
-      * @throws Zend_Gdata_App_Exception Thrown if $collection is empty.
72
-      */
64
+     * bound, and return the value associated with that key.
65
+     *
66
+     * @param integer|null $maximumKey The upper bound for keys. If null, the
67
+     *        maxiumum valued key will be found.
68
+     * @param array $collection An two-dimensional array of key/value pairs
69
+     *        to search through.
70
+     * @returns mixed The value corresponding to the located key.
71
+     * @throws Zend_Gdata_App_Exception Thrown if $collection is empty.
72
+     */
73 73
     public static function findGreatestBoundedValue($maximumKey, $collection)
74 74
     {
75 75
         $found = false;
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,10 +92,11 @@
 block discarded – undo
92 92
             // will have a matching namespce. If that fails, we decrement the
93 93
             // version until we find a match.
94 94
             while (!$found && $foundKey >= 0) {
95
-                if (array_key_exists($foundKey, $collection))
96
-                    $found = true;
97
-                else
98
-                    $foundKey--;
95
+                if (array_key_exists($foundKey, $collection)) {
96
+                                    $found = true;
97
+                } else {
98
+                                    $foundKey--;
99
+                }
99 100
             }
100 101
         }
101 102
 
Please login to merge, or discard this patch.
lib/Zend/Gdata/App/Extension/Category.php 2 patches
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -69,17 +69,17 @@
 block discarded – undo
69 69
     protected function takeAttributeFromDOM($attribute)
70 70
     {
71 71
         switch ($attribute->localName) {
72
-        case 'term':
73
-            $this->_term = $attribute->nodeValue;
74
-            break;
75
-        case 'scheme':
76
-            $this->_scheme = $attribute->nodeValue;
77
-            break;
78
-        case 'label':
79
-            $this->_label = $attribute->nodeValue;
80
-            break;
81
-        default:
82
-            parent::takeAttributeFromDOM($attribute);
72
+            case 'term':
73
+                $this->_term = $attribute->nodeValue;
74
+                break;
75
+            case 'scheme':
76
+                $this->_scheme = $attribute->nodeValue;
77
+                break;
78
+            case 'label':
79
+                $this->_label = $attribute->nodeValue;
80
+                break;
81
+            default:
82
+                parent::takeAttributeFromDOM($attribute);
83 83
         }
84 84
     }
85 85
 
Please login to merge, or discard this 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 2 patches
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -65,14 +65,14 @@
 block discarded – undo
65 65
     protected function takeAttributeFromDOM($attribute)
66 66
     {
67 67
         switch ($attribute->localName) {
68
-        case 'uri':
69
-            $this->_uri = $attribute->nodeValue;
70
-            break;
71
-        case 'version':
72
-            $this->_version= $attribute->nodeValue;
73
-            break;
74
-        default:
75
-            parent::takeAttributeFromDOM($attribute);
68
+            case 'uri':
69
+                $this->_uri = $attribute->nodeValue;
70
+                break;
71
+            case 'version':
72
+                $this->_version= $attribute->nodeValue;
73
+                break;
74
+            default:
75
+                parent::takeAttributeFromDOM($attribute);
76 76
         }
77 77
     }
78 78
 
Please login to merge, or discard this 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/Extension/Link.php 1 patch
Switch Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -85,26 +85,26 @@
 block discarded – undo
85 85
     protected function takeAttributeFromDOM($attribute)
86 86
     {
87 87
         switch ($attribute->localName) {
88
-        case 'href':
89
-            $this->_href = $attribute->nodeValue;
90
-            break;
91
-        case 'rel':
92
-            $this->_rel = $attribute->nodeValue;
93
-            break;
94
-        case 'type':
95
-            $this->_type = $attribute->nodeValue;
96
-            break;
97
-        case 'hreflang':
98
-            $this->_hrefLang = $attribute->nodeValue;
99
-            break;
100
-        case 'title':
101
-            $this->_title = $attribute->nodeValue;
102
-            break;
103
-        case 'length':
104
-            $this->_length = $attribute->nodeValue;
105
-            break;
106
-        default:
107
-            parent::takeAttributeFromDOM($attribute);
88
+            case 'href':
89
+                $this->_href = $attribute->nodeValue;
90
+                break;
91
+            case 'rel':
92
+                $this->_rel = $attribute->nodeValue;
93
+                break;
94
+            case 'type':
95
+                $this->_type = $attribute->nodeValue;
96
+                break;
97
+            case 'hreflang':
98
+                $this->_hrefLang = $attribute->nodeValue;
99
+                break;
100
+            case 'title':
101
+                $this->_title = $attribute->nodeValue;
102
+                break;
103
+            case 'length':
104
+                $this->_length = $attribute->nodeValue;
105
+                break;
106
+            default:
107
+                parent::takeAttributeFromDOM($attribute);
108 108
         }
109 109
     }
110 110
 
Please login to merge, or discard this patch.
lib/Zend/Gdata/App/Extension/Control.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -66,14 +66,14 @@
 block discarded – undo
66 66
     {
67 67
         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
68 68
         switch ($absoluteNodeName) {
69
-        case $this->lookupNamespace('app') . ':' . 'draft':
70
-            $draft = new Zend_Gdata_App_Extension_Draft();
71
-            $draft->transferFromDOM($child);
72
-            $this->_draft = $draft;
73
-            break;
74
-        default:
75
-            parent::takeChildFromDOM($child);
76
-            break;
69
+            case $this->lookupNamespace('app') . ':' . 'draft':
70
+                $draft = new Zend_Gdata_App_Extension_Draft();
71
+                $draft->transferFromDOM($child);
72
+                $this->_draft = $draft;
73
+                break;
74
+            default:
75
+                parent::takeChildFromDOM($child);
76
+                break;
77 77
         }
78 78
     }
79 79
 
Please login to merge, or discard this patch.
lib/Zend/Gdata/App/Extension/Person.php 1 patch
Switch Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -85,24 +85,24 @@
 block discarded – undo
85 85
     {
86 86
         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
87 87
         switch ($absoluteNodeName) {
88
-        case $this->lookupNamespace('atom') . ':' . 'name':
89
-            $name = new Zend_Gdata_App_Extension_Name();
90
-            $name->transferFromDOM($child);
91
-            $this->_name = $name;
92
-            break;
93
-        case $this->lookupNamespace('atom') . ':' . 'email':
94
-            $email = new Zend_Gdata_App_Extension_Email();
95
-            $email->transferFromDOM($child);
96
-            $this->_email = $email;
97
-            break;
98
-        case $this->lookupNamespace('atom') . ':' . 'uri':
99
-            $uri = new Zend_Gdata_App_Extension_Uri();
100
-            $uri->transferFromDOM($child);
101
-            $this->_uri = $uri;
102
-            break;
103
-        default:
104
-            parent::takeChildFromDOM($child);
105
-            break;
88
+            case $this->lookupNamespace('atom') . ':' . 'name':
89
+                $name = new Zend_Gdata_App_Extension_Name();
90
+                $name->transferFromDOM($child);
91
+                $this->_name = $name;
92
+                break;
93
+            case $this->lookupNamespace('atom') . ':' . 'email':
94
+                $email = new Zend_Gdata_App_Extension_Email();
95
+                $email->transferFromDOM($child);
96
+                $this->_email = $email;
97
+                break;
98
+            case $this->lookupNamespace('atom') . ':' . 'uri':
99
+                $uri = new Zend_Gdata_App_Extension_Uri();
100
+                $uri->transferFromDOM($child);
101
+                $this->_uri = $uri;
102
+                break;
103
+            default:
104
+                parent::takeChildFromDOM($child);
105
+                break;
106 106
         }
107 107
     }
108 108
 
Please login to merge, or discard this patch.
lib/Zend/Gdata/App/Extension/Content.php 1 patch
Switch Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,11 +59,11 @@
 block discarded – undo
59 59
     protected function takeAttributeFromDOM($attribute)
60 60
     {
61 61
         switch ($attribute->localName) {
62
-        case 'src':
63
-            $this->_src = $attribute->nodeValue;
64
-            break;
65
-        default:
66
-            parent::takeAttributeFromDOM($attribute);
62
+            case 'src':
63
+                $this->_src = $attribute->nodeValue;
64
+                break;
65
+            default:
66
+                parent::takeAttributeFromDOM($attribute);
67 67
         }
68 68
     }
69 69
 
Please login to merge, or discard this patch.