Completed
Push — master ( 46ab75...0a1a15 )
by
unknown
22s queued 11s
created
classes/models/FrmMigrate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
 				continue;
647 647
 			}
648 648
 
649
-			$this->maybe_convert_migrated_size( $widgets[ $k ]['size'] );
649
+			$this->maybe_convert_migrated_size( $widgets[$k]['size'] );
650 650
 		}
651 651
 
652 652
 		update_option( 'widget_frm_show_form', $widgets );
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
 			if ( ! is_array( $widget ) || ! isset( $widget['size'] ) ) {
765 765
 				continue;
766 766
 			}
767
-			$this->convert_character_to_px( $widgets[ $k ]['size'] );
767
+			$this->convert_character_to_px( $widgets[$k]['size'] );
768 768
 		}
769 769
 
770 770
 		update_option( 'widget_frm_show_form', $widgets );
Please login to merge, or discard this patch.
Formidable/Sniffs/WhiteSpace/BlankLineAfterClosingBraceSniff.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 		}
59 59
 
60 60
 		// For variables, check if followed by an assignment operator.
61
-		if ( $tokens[ $stackPtr ]['code'] === T_VARIABLE ) {
61
+		if ( $tokens[$stackPtr]['code'] === T_VARIABLE ) {
62 62
 			$assignmentTokens = array(
63 63
 				T_EQUAL,
64 64
 				T_PLUS_EQUAL,
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
 				T_COALESCE_EQUAL,
77 77
 			);
78 78
 
79
-			if ( ! in_array( $tokens[ $nextToken ]['code'], $assignmentTokens, true ) ) {
79
+			if ( ! in_array( $tokens[$nextToken]['code'], $assignmentTokens, true ) ) {
80 80
 				return;
81 81
 			}
82
-		} elseif ( $tokens[ $stackPtr ]['code'] === T_STRING ) {
82
+		} elseif ( $tokens[$stackPtr]['code'] === T_STRING ) {
83 83
 			// For function calls, check if followed by an opening parenthesis.
84
-			if ( $tokens[ $nextToken ]['code'] !== T_OPEN_PARENTHESIS ) {
84
+			if ( $tokens[$nextToken]['code'] !== T_OPEN_PARENTHESIS ) {
85 85
 				return;
86 86
 			}
87 87
 		}
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
 		// Find the first token on the current line.
90 90
 		$firstOnLine = $stackPtr;
91 91
 
92
-		for ( $i = $stackPtr - 1; $i >= 0; $i-- ) {
93
-			if ( $tokens[ $i ]['line'] < $tokens[ $stackPtr ]['line'] ) {
92
+		for ( $i = $stackPtr - 1; $i >= 0; $i -- ) {
93
+			if ( $tokens[$i]['line'] < $tokens[$stackPtr]['line'] ) {
94 94
 				break;
95 95
 			}
96 96
 			$firstOnLine = $i;
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 		}
105 105
 
106 106
 		// Now find what's on the previous line.
107
-		$currentLine  = $tokens[ $stackPtr ]['line'];
107
+		$currentLine  = $tokens[$stackPtr]['line'];
108 108
 		$previousLine = $currentLine - 1;
109 109
 
110 110
 		if ( $previousLine < 1 ) {
@@ -114,12 +114,12 @@  discard block
 block discarded – undo
114 114
 		// Find the last non-whitespace token on the previous line.
115 115
 		$lastTokenOnPrevLine = null;
116 116
 
117
-		for ( $i = $stackPtr - 1; $i >= 0; $i-- ) {
118
-			if ( $tokens[ $i ]['line'] < $previousLine ) {
117
+		for ( $i = $stackPtr - 1; $i >= 0; $i -- ) {
118
+			if ( $tokens[$i]['line'] < $previousLine ) {
119 119
 				break;
120 120
 			}
121 121
 
122
-			if ( $tokens[ $i ]['line'] === $previousLine && $tokens[ $i ]['code'] !== T_WHITESPACE ) {
122
+			if ( $tokens[$i]['line'] === $previousLine && $tokens[$i]['code'] !== T_WHITESPACE ) {
123 123
 				$lastTokenOnPrevLine = $i;
124 124
 				break;
125 125
 			}
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 		}
133 133
 
134 134
 		// Check if the last token on the previous line is a closing brace.
135
-		if ( $tokens[ $lastTokenOnPrevLine ]['code'] !== T_CLOSE_CURLY_BRACKET ) {
135
+		if ( $tokens[$lastTokenOnPrevLine]['code'] !== T_CLOSE_CURLY_BRACKET ) {
136 136
 			return;
137 137
 		}
138 138
 
@@ -149,9 +149,9 @@  discard block
 block discarded – undo
149 149
 			}
150 150
 
151 151
 			// Check if this function contains our token.
152
-			if ( isset( $tokens[ $searchPtr ]['scope_opener'] ) && isset( $tokens[ $searchPtr ]['scope_closer'] ) ) {
153
-				$funcStart = $tokens[ $searchPtr ]['scope_opener'];
154
-				$funcEnd   = $tokens[ $searchPtr ]['scope_closer'];
152
+			if ( isset( $tokens[$searchPtr]['scope_opener'] ) && isset( $tokens[$searchPtr]['scope_closer'] ) ) {
153
+				$funcStart = $tokens[$searchPtr]['scope_opener'];
154
+				$funcEnd   = $tokens[$searchPtr]['scope_closer'];
155 155
 
156 156
 				if ( $stackPtr > $funcStart && $stackPtr < $funcEnd ) {
157 157
 					$functionPtr = $searchPtr;
@@ -159,23 +159,23 @@  discard block
 block discarded – undo
159 159
 				}
160 160
 			}
161 161
 
162
-			--$searchPtr;
162
+			-- $searchPtr;
163 163
 		}
164 164
 
165 165
 		if ( null === $functionPtr ) {
166 166
 			return;
167 167
 		}
168 168
 
169
-		$functionStart = $tokens[ $functionPtr ]['scope_opener'];
170
-		$functionEnd   = $tokens[ $functionPtr ]['scope_closer'];
169
+		$functionStart = $tokens[$functionPtr]['scope_opener'];
170
+		$functionEnd   = $tokens[$functionPtr]['scope_closer'];
171 171
 
172 172
 		// Check if the function has any other blank lines.
173 173
 		// PHPCS splits whitespace into separate tokens, so look for consecutive newline tokens.
174 174
 		$hasOtherBlankLines = false;
175 175
 		$lastWasNewline     = false;
176 176
 
177
-		for ( $i = $functionStart + 1; $i < $functionEnd; $i++ ) {
178
-			if ( $tokens[ $i ]['code'] === T_WHITESPACE && $tokens[ $i ]['content'] === "\n" ) {
177
+		for ( $i = $functionStart + 1; $i < $functionEnd; $i ++ ) {
178
+			if ( $tokens[$i]['code'] === T_WHITESPACE && $tokens[$i]['content'] === "\n" ) {
179 179
 				if ( $lastWasNewline ) {
180 180
 					$hasOtherBlankLines = true;
181 181
 					break;
Please login to merge, or discard this patch.