Completed
Push — master ( 32345e...fde4fb )
by Bhanu
105:15 queued 50:04
created
public/cart/vendor/rs-plugin/php/vimeo/class-vimeo.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
 		//call the API and decode the response
30 30
 		if($type=="user"){
31 31
 			$url = "https://vimeo.com/api/v2/".$value."/videos.json";
32
-		}
33
-		else{
32
+		} else{
34 33
 			$url = "https://vimeo.com/api/v2/".$type."/".$value."/videos.json";
35 34
 		}
36 35
 		
@@ -47,7 +46,9 @@  discard block
 block discarded – undo
47 46
 	 */
48 47
 	private function vimeo_output_array($videos,$count){
49 48
 		foreach ($videos as $video) {
50
-			if($count-- == 0) break;
49
+			if($count-- == 0) {
50
+			    break;
51
+			}
51 52
 
52 53
 			$stream = array();
53 54
 
Please login to merge, or discard this patch.
public/cart/vendor/rs-plugin/php/flickr/class-flickr.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,9 @@
 block discarded – undo
258 258
 			$encoded = $alphabet[$mod] . $encoded;
259 259
 			$num = intval($div);
260 260
 		}
261
-		if ($num) $encoded = $alphabet[$num] . $encoded;
261
+		if ($num) {
262
+		    $encoded = $alphabet[$num] . $encoded;
263
+		}
262 264
 		return $encoded;
263 265
 	}
264 266
 }
Please login to merge, or discard this patch.
vendor/pingplusplus/pingpp-php/lib/PingppObject.php 1 patch
Braces   +30 added lines, -22 removed lines patch added patch discarded remove patch
@@ -40,14 +40,16 @@  discard block
 block discarded – undo
40 40
         $this->_retrieveOptions = array();
41 41
         if (is_array($id)) {
42 42
             foreach ($id as $key => $value) {
43
-                if ($key != 'id')
44
-                    $this->_retrieveOptions[$key] = $value;
43
+                if ($key != 'id') {
44
+                                    $this->_retrieveOptions[$key] = $value;
45
+                }
45 46
             }
46 47
             $id = $id['id'];
47 48
         }
48 49
 
49
-        if ($id)
50
-            $this->id = $id;
50
+        if ($id) {
51
+                    $this->id = $id;
52
+        }
51 53
     }
52 54
 
53 55
     // Standard accessor magic methods
@@ -67,8 +69,9 @@  discard block
 block discarded – undo
67 69
             // TODO: may want to clear from $_transientValues.  (Won't be user-visible.)
68 70
             $this->_values[$k] = $v;
69 71
         }
70
-        if (!self::$permanentAttributes->includes($k))
71
-            $this->_unsavedValues->add($k);
72
+        if (!self::$permanentAttributes->includes($k)) {
73
+                    $this->_unsavedValues->add($k);
74
+        }
72 75
     }
73 76
     public function __isset($k)
74 77
     {
@@ -156,25 +159,29 @@  discard block
 block discarded – undo
156 159
         // Wipe old state before setting new.  This is useful for e.g. updating a
157 160
         // customer, where there is no persistent card parameter.  Mark those values
158 161
         // which don't persist as transient
159
-        if ($partial)
160
-            $removed = new Util\Set();
161
-        else
162
-            $removed = array_diff(array_keys($this->_values), array_keys(get_object_vars($values)));
162
+        if ($partial) {
163
+                    $removed = new Util\Set();
164
+        } else {
165
+                    $removed = array_diff(array_keys($this->_values), array_keys(get_object_vars($values)));
166
+        }
163 167
 
164 168
         foreach ($removed as $k) {
165
-            if (self::$permanentAttributes->includes($k))
166
-                continue;
169
+            if (self::$permanentAttributes->includes($k)) {
170
+                            continue;
171
+            }
167 172
             unset($this->$k);
168 173
         }
169 174
 
170 175
         foreach ($values as $k => $v) {
171
-            if (self::$permanentAttributes->includes($k))
172
-                continue;
176
+            if (self::$permanentAttributes->includes($k)) {
177
+                            continue;
178
+            }
173 179
 
174
-            if (self::$nestedUpdatableAttributes->includes($k) && is_object($v))
175
-                $this->_values[$k] = AttachedObject::constructFrom($v, $opts);
176
-            else
177
-                $this->_values[$k] = Util\Util::convertToPingppObject($v, $opts);
180
+            if (self::$nestedUpdatableAttributes->includes($k) && is_object($v)) {
181
+                            $this->_values[$k] = AttachedObject::constructFrom($v, $opts);
182
+            } else {
183
+                            $this->_values[$k] = Util\Util::convertToPingppObject($v, $opts);
184
+            }
178 185
 
179 186
             $this->_transientValues->discard($k);
180 187
             $this->_unsavedValues->discard($k);
@@ -231,10 +238,11 @@  discard block
 block discarded – undo
231 238
 
232 239
     public function __toArray($recursive = false)
233 240
     {
234
-        if ($recursive)
235
-            return Util\Util::convertPingppObjectToArray($this->_values);
236
-        else
237
-            return $this->_values;
241
+        if ($recursive) {
242
+                    return Util\Util::convertPingppObjectToArray($this->_values);
243
+        } else {
244
+                    return $this->_values;
245
+        }
238 246
     }
239 247
 
240 248
     public function __toStdObject()
Please login to merge, or discard this patch.
vendor/pingplusplus/pingpp-php/lib/Util/Util.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,13 +15,15 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public static function isList($array)
17 17
     {
18
-        if (!is_array($array))
19
-            return false;
18
+        if (!is_array($array)) {
19
+                    return false;
20
+        }
20 21
 
21 22
         // TODO: generally incorrect, but it's correct given Pingpp's response
22 23
         foreach (array_keys($array) as $k) {
23
-            if (!is_numeric($k))
24
-                return false;
24
+            if (!is_numeric($k)) {
25
+                            return false;
26
+            }
25 27
         }
26 28
         return true;
27 29
     }
@@ -101,8 +103,9 @@  discard block
 block discarded – undo
101 103
         );
102 104
         if (self::isList($resp)) {
103 105
             $mapped = array();
104
-            foreach ($resp as $i)
105
-                array_push($mapped, self::convertToPingppObject($i, $opts));
106
+            foreach ($resp as $i) {
107
+                            array_push($mapped, self::convertToPingppObject($i, $opts));
108
+            }
106 109
             return $mapped;
107 110
         } else if (is_object($resp)) {
108 111
             if (isset($resp->object) 
Please login to merge, or discard this patch.
vendor/pingplusplus/pingpp-php/lib/ApiRequestor.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,9 @@
 block discarded – undo
30 30
             return 'false';
31 31
         } else if (is_array($d)) {
32 32
             $res = array();
33
-            foreach ($d as $k => $v)
34
-                $res[$k] = self::_encodeObjects($v, $is_post);
33
+            foreach ($d as $k => $v) {
34
+                            $res[$k] = self::_encodeObjects($v, $is_post);
35
+            }
35 36
             return $res;
36 37
         } else {
37 38
             return Util\Util::utf8($d);
Please login to merge, or discard this patch.
vendor/nikic/php-parser/lib/PhpParser/Parser/Php7.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2458,7 +2458,10 @@
 block discarded – undo
2458 2458
     }
2459 2459
 
2460 2460
     protected function reduceRule409() {
2461
-         foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, true); } } $s->value = preg_replace('~(\r\n|\n|\r)\z~', '', $s->value); if ('' === $s->value) array_pop($this->semStack[$this->stackPos-(3-2)]);; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2461
+         foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, true); } } $s->value = preg_replace('~(\r\n|\n|\r)\z~', '', $s->value); if ('' === $s->value) {
2462
+             array_pop($this->semStack[$this->stackPos-(3-2)]);
2463
+         }
2464
+         ; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2462 2465
     }
2463 2466
 
2464 2467
     protected function reduceRule410() {
Please login to merge, or discard this patch.
vendor/nikic/php-parser/lib/PhpParser/Parser/Php5.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2878,7 +2878,10 @@
 block discarded – undo
2878 2878
     }
2879 2879
 
2880 2880
     protected function reduceRule474() {
2881
-         foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, false); } } $s->value = preg_replace('~(\r\n|\n|\r)\z~', '', $s->value); if ('' === $s->value) array_pop($this->semStack[$this->stackPos-(3-2)]);; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2881
+         foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, false); } } $s->value = preg_replace('~(\r\n|\n|\r)\z~', '', $s->value); if ('' === $s->value) {
2882
+             array_pop($this->semStack[$this->stackPos-(3-2)]);
2883
+         }
2884
+         ; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2882 2885
     }
2883 2886
 
2884 2887
     protected function reduceRule475() {
Please login to merge, or discard this patch.
vendor/sebastian/comparator/tests/MockObjectComparatorTest.php 1 patch
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,9 +144,7 @@
 block discarded – undo
144 144
 
145 145
         try {
146 146
             $this->comparator->assertEquals($expected, $actual, $delta);
147
-        }
148
-
149
-        catch (ComparisonFailure $exception) {
147
+        } catch (ComparisonFailure $exception) {
150 148
         }
151 149
 
152 150
         $this->assertNull($exception, 'Unexpected ComparisonFailure');
Please login to merge, or discard this patch.
vendor/sebastian/exporter/src/Exporter.php 1 patch
Braces   +2 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,17 +67,13 @@
 block discarded – undo
67 67
             if (is_array($value)) {
68 68
                 if ($context->contains($data[$key]) !== false) {
69 69
                     $result[] = '*RECURSION*';
70
-                }
71
-
72
-                else {
70
+                } else {
73 71
                     $result[] = sprintf(
74 72
                         'array(%s)',
75 73
                         $this->shortenedRecursiveExport($data[$key], $context)
76 74
                     );
77 75
                 }
78
-            }
79
-
80
-            else {
76
+            } else {
81 77
                 $result[] = $exporter->shortenedExport($value);
82 78
             }
83 79
         }
Please login to merge, or discard this patch.