Completed
Branch master (3e1132)
by Aristeides
03:12
created
includes/controls/class-kirki-controls-sortable-control.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,9 @@
 block discarded – undo
46 46
 			parent::to_json();
47 47
 
48 48
 			$this->json['choicesLength'] = 0;
49
-			if ( is_array( $this->choices ) && count( $this->choices ) )
50
-				$this->json['choicesLength'] = count( $this->choices );
49
+			if ( is_array( $this->choices ) && count( $this->choices ) ) {
50
+							$this->json['choicesLength'] = count( $this->choices );
51
+			}
51 52
 
52 53
 			$values = $this->value() == '' ? array_keys( $this->choices ) : $this->value();
53 54
 			$filtered_values = array();
Please login to merge, or discard this patch.
includes/class-kirki-helper.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,11 +80,14 @@
 block discarded – undo
80 80
 		public static function array_flatten( array $array ) {
81 81
 			$flat  = array(); // initialize return array
82 82
 			$stack = array_values( $array );
83
-			while ( $stack ) { // process stack until done
83
+			while ( $stack ) {
84
+// process stack until done
84 85
 				$value = array_shift( $stack );
85
-				if ( is_array( $value ) ) { // a value to further process
86
+				if ( is_array( $value ) ) {
87
+// a value to further process
86 88
 					$stack = array_merge( array_keys( $value ), $stack );
87
-				} else { // a value to take
89
+				} else {
90
+// a value to take
88 91
 					$flat[] = $value;
89 92
 				}
90 93
 			}
Please login to merge, or discard this patch.
includes/styles/class-kirki-styles-customizer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 		 *
88 88
 		 * @param string $handle
89 89
 		 * @param string $file
90
-		 * @param array  $deps
90
+		 * @param string[]  $deps
91 91
 		 */
92 92
 		public static function enqueue_customizer_control_script( $handle, $file = null, $deps = array(), $in_footer = false ) {
93 93
 			if ( ( false !== strpos( $file, 'controls/' ) && Kirki_Toolkit::kirki_debug() ) || false === strpos( $file, 'controls/' ) ) {
Please login to merge, or discard this patch.