Completed
Push — develop ( feab9e...47c1de )
by Zack
16:17
created
includes/class-api.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1380,7 +1380,7 @@  discard block
 block discarded – undo
1380 1380
 	$placeholders['label_value:data-label'] = trim( esc_attr( strip_tags( str_replace( '> ', '>', $placeholders['label_value'] ) ) ) );
1381 1381
 	$placeholders['label_value:esc_attr'] = esc_attr( $placeholders['label_value'] );
1382 1382
 
1383
-	if ( empty( $placeholders['label'] ) && ! empty( $placeholders['label_value'] ) ){
1383
+	if ( empty( $placeholders['label'] ) && ! empty( $placeholders['label_value'] ) ) {
1384 1384
 		$placeholders['label'] = '<span class="gv-field-label">{{ label_value }}</span>';
1385 1385
 	}
1386 1386
 
@@ -1419,7 +1419,7 @@  discard block
 block discarded – undo
1419 1419
 	foreach ( $placeholders as $tag => $value ) {
1420 1420
 
1421 1421
 		// If the tag doesn't exist just skip it
1422
-		if ( false === strpos( $html, $open_tag . $tag . $close_tag ) && false === strpos( $html, $open_tag . ' ' . $tag . ' ' . $close_tag ) ){
1422
+		if ( false === strpos( $html, $open_tag . $tag . $close_tag ) && false === strpos( $html, $open_tag . ' ' . $tag . ' ' . $close_tag ) ) {
1423 1423
 			continue;
1424 1424
 		}
1425 1425
 
Please login to merge, or discard this patch.
includes/class-frontend-views.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
 		}
452 452
 
453 453
 		// WooCommerce doesn't $post_id
454
-		if ( empty( $passed_post_id ) )  {
454
+		if ( empty( $passed_post_id ) ) {
455 455
 			return $passed_title;
456 456
 		}
457 457
 
@@ -1206,7 +1206,7 @@  discard block
 block discarded – undo
1206 1206
 					 */
1207 1207
 					$address_part = apply_filters( 'gravityview/sorting/address', 'city', $sort_field_id, $form_id );
1208 1208
 
1209
-					switch( strtolower( $address_part ) ){
1209
+					switch( strtolower( $address_part ) ) {
1210 1210
 						case 'street':
1211 1211
 							$sort_field_id .= '.1';
1212 1212
 							break;
@@ -1296,7 +1296,7 @@  discard block
 block discarded – undo
1296 1296
 		 */
1297 1297
 		$single_entry = apply_filters( 'gravityview/is_single_entry', $single_entry );
1298 1298
 
1299
-		if ( empty( $single_entry ) ){
1299
+		if ( empty( $single_entry ) ) {
1300 1300
 			return false;
1301 1301
 		} else {
1302 1302
 			return $single_entry;
Please login to merge, or discard this patch.
future/includes/class-gv-request.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
 			}
174 174
 
175 175
 			$entry = Multi_Entry::from_entries( array_filter( $multientry ) );
176
-		}  else {
176
+		} else {
177 177
 			/**
178 178
 			 * A regular one.
179 179
 			 */
Please login to merge, or discard this patch.
future/lib/EDD_SL_Plugin_Updater.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,9 @@
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly
13
-if ( ! defined( 'ABSPATH' ) ) exit;
13
+if ( ! defined( 'ABSPATH' ) ) {
14
+	exit;
15
+}
14 16
 
15 17
 /**
16 18
  * Allows plugins to use their own update API.
Please login to merge, or discard this patch.
future/includes/class-gv-shortcode-gvlogic.php 1 patch
Braces   +18 added lines, -9 removed lines patch added patch discarded remove patch
@@ -61,14 +61,16 @@  discard block
 block discarded – undo
61 61
 		$value    = $this->get_value( $atts );
62 62
 
63 63
 		if ( false === $operator && is_null( $value ) ) {
64
-			if ( false !== $atts['if'] ) { // Only-if test
64
+			if ( false !== $atts['if'] ) {
65
+// Only-if test
65 66
 				$match = $authed && ! in_array( strtolower( $atts['if'] ), array( '', '0', 'false', 'no' ) );
66 67
 			} else {
67 68
 				$match = $authed; // Just login test
68 69
 			}
69 70
 
70 71
 			$output = $this->get_output( $match, $atts, $content );
71
-		} else { // Regular test
72
+		} else {
73
+// Regular test
72 74
 
73 75
 			$output = $content;
74 76
 
@@ -199,12 +201,15 @@  discard block
 block discarded – undo
199 201
 		$opens = 0; // inner opens
200 202
 		$found = false; // found split position
201 203
 
202
-		while ( $content ) { // scan
204
+		while ( $content ) {
205
+// scan
203 206
 
204 207
 			if ( ! preg_match( '#(.*?)(\[\/?(gvlogic|else).*?])(.*)#s', $content, $matches ) ) {
205
-				if ( ! $found ) { // We're still iffing.
208
+				if ( ! $found ) {
209
+// We're still iffing.
206 210
 					$if .= $content;
207
-				} else { // We are elsing
211
+				} else {
212
+// We are elsing
208 213
 					$else .= $content;
209 214
 				}
210 215
 				break; // No more shortcodes
@@ -212,9 +217,11 @@  discard block
 block discarded – undo
212 217
 
213 218
 			list( $_, $before_shortcode, $shortcode, $_, $after_shortcode ) = $matches;
214 219
 
215
-			if ( ! $found ) { // We're still iffing.
220
+			if ( ! $found ) {
221
+// We're still iffing.
216 222
 				$if .= $before_shortcode;
217
-			} else { // We are elsing
223
+			} else {
224
+// We are elsing
218 225
 				$else .= $before_shortcode;
219 226
 			}
220 227
 
@@ -238,9 +245,11 @@  discard block
 block discarded – undo
238 245
 				}
239 246
 
240 247
 				// Tack on the shortcode
241
-				if ( ! $found ) { // We're still iffing.
248
+				if ( ! $found ) {
249
+// We're still iffing.
242 250
 					$if .= $shortcode;
243
-				} else { // We are elsing
251
+				} else {
252
+// We are elsing
244 253
 					$else .= $shortcode;
245 254
 				}
246 255
 			}
Please login to merge, or discard this patch.
trustedlogin/psr/log/Psr/Log/AbstractLogger.php 1 patch
Braces   +9 added lines, -18 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
  * reduce boilerplate code that a simple Logger that does the same thing with
16 16
  * messages regardless of the error level has to implement.
17 17
  */
18
-abstract class AbstractLogger implements LoggerInterface
19
-{
18
+abstract class AbstractLogger implements LoggerInterface {
20 19
     /**
21 20
      * System is unusable.
22 21
      *
@@ -25,8 +24,7 @@  discard block
 block discarded – undo
25 24
      *
26 25
      * @return void
27 26
      */
28
-    public function emergency($message, array $context = array())
29
-    {
27
+    public function emergency($message, array $context = array()) {
30 28
         $this->log(LogLevel::EMERGENCY, $message, $context);
31 29
     }
32 30
 
@@ -41,8 +39,7 @@  discard block
 block discarded – undo
41 39
      *
42 40
      * @return void
43 41
      */
44
-    public function alert($message, array $context = array())
45
-    {
42
+    public function alert($message, array $context = array()) {
46 43
         $this->log(LogLevel::ALERT, $message, $context);
47 44
     }
48 45
 
@@ -56,8 +53,7 @@  discard block
 block discarded – undo
56 53
      *
57 54
      * @return void
58 55
      */
59
-    public function critical($message, array $context = array())
60
-    {
56
+    public function critical($message, array $context = array()) {
61 57
         $this->log(LogLevel::CRITICAL, $message, $context);
62 58
     }
63 59
 
@@ -70,8 +66,7 @@  discard block
 block discarded – undo
70 66
      *
71 67
      * @return void
72 68
      */
73
-    public function error($message, array $context = array())
74
-    {
69
+    public function error($message, array $context = array()) {
75 70
         $this->log(LogLevel::ERROR, $message, $context);
76 71
     }
77 72
 
@@ -86,8 +81,7 @@  discard block
 block discarded – undo
86 81
      *
87 82
      * @return void
88 83
      */
89
-    public function warning($message, array $context = array())
90
-    {
84
+    public function warning($message, array $context = array()) {
91 85
         $this->log(LogLevel::WARNING, $message, $context);
92 86
     }
93 87
 
@@ -99,8 +93,7 @@  discard block
 block discarded – undo
99 93
      *
100 94
      * @return void
101 95
      */
102
-    public function notice($message, array $context = array())
103
-    {
96
+    public function notice($message, array $context = array()) {
104 97
         $this->log(LogLevel::NOTICE, $message, $context);
105 98
     }
106 99
 
@@ -114,8 +107,7 @@  discard block
 block discarded – undo
114 107
      *
115 108
      * @return void
116 109
      */
117
-    public function info($message, array $context = array())
118
-    {
110
+    public function info($message, array $context = array()) {
119 111
         $this->log(LogLevel::INFO, $message, $context);
120 112
     }
121 113
 
@@ -127,8 +119,7 @@  discard block
 block discarded – undo
127 119
      *
128 120
      * @return void
129 121
      */
130
-    public function debug($message, array $context = array())
131
-    {
122
+    public function debug($message, array $context = array()) {
132 123
         $this->log(LogLevel::DEBUG, $message, $context);
133 124
     }
134 125
 }
Please login to merge, or discard this patch.
trustedlogin/psr/log/Psr/Log/LoggerAwareTrait.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
 /**
12 12
  * Basic Implementation of LoggerAwareInterface.
13 13
  */
14
-trait LoggerAwareTrait
15
-{
14
+trait LoggerAwareTrait {
16 15
     /**
17 16
      * The logger instance.
18 17
      *
@@ -25,8 +24,7 @@  discard block
 block discarded – undo
25 24
      *
26 25
      * @param LoggerInterface $logger
27 26
      */
28
-    public function setLogger(LoggerInterface $logger)
29
-    {
27
+    public function setLogger(LoggerInterface $logger) {
30 28
         $this->logger = $logger;
31 29
     }
32 30
 }
Please login to merge, or discard this patch.
trustedlogin/psr/log/Psr/Log/LoggerAwareInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 /**
12 12
  * Describes a logger-aware instance.
13 13
  */
14
-interface LoggerAwareInterface
15
-{
14
+interface LoggerAwareInterface {
16 15
     /**
17 16
      * Sets a logger instance on the object.
18 17
      *
Please login to merge, or discard this patch.
trustedlogin/psr/log/Psr/Log/LogLevel.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 /**
12 12
  * Describes log levels.
13 13
  */
14
-class LogLevel
15
-{
14
+class LogLevel {
16 15
     const EMERGENCY = 'emergency';
17 16
     const ALERT     = 'alert';
18 17
     const CRITICAL  = 'critical';
Please login to merge, or discard this patch.