Completed
Branch master (3e1132)
by Aristeides
03:12
created
includes/controls/class-kirki-controls-number-control.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * number Customizer Control.
4
- *
5
- * @package     Kirki
6
- * @subpackage  Controls
7
- * @copyright   Copyright (c) 2015, Aristeides Stathopoulos
8
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
- * @since       1.0
10
- */
3
+	 * number Customizer Control.
4
+	 *
5
+	 * @package     Kirki
6
+	 * @subpackage  Controls
7
+	 * @copyright   Copyright (c) 2015, Aristeides Stathopoulos
8
+	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+	 * @since       1.0
10
+	 */
11 11
 
12 12
 // Exit if accessed directly
13 13
 if ( ! defined( 'ABSPATH' ) ) {
Please login to merge, or discard this patch.
includes/dynamic-css.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
 	die( 'File can\'t be accessed directly' );
8 8
 }
9 9
 /**
10
- * Make sure we set the correct MIME type
11
- */
10
+	 * Make sure we set the correct MIME type
11
+	 */
12 12
 header( 'Content-Type: text/css' );
13 13
 /**
14
- * Echo the styles
15
- */
14
+	 * Echo the styles
15
+	 */
16 16
 echo Kirki_Styles_Frontend::loop_controls();
Please login to merge, or discard this patch.
includes/controls/class-kirki-controls-sortable-control.php 2 patches
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.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * sortable Customizer Control.
4
- *
5
- * @package     Kirki
6
- * @subpackage  Controls
7
- * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
8
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
- * @since       1.0
10
- */
3
+	 * sortable Customizer Control.
4
+	 *
5
+	 * @package     Kirki
6
+	 * @subpackage  Controls
7
+	 * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
8
+	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+	 * @since       1.0
10
+	 */
11 11
 
12 12
 // Exit if accessed directly
13 13
 if ( ! defined( 'ABSPATH' ) ) {
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/class-kirki-customize-control.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package     Kirki
4
- * @subpackage  Controls
5
- * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
6
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
7
- * @since       1.0
8
- */
3
+	 * @package     Kirki
4
+	 * @subpackage  Controls
5
+	 * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
6
+	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
7
+	 * @since       1.0
8
+	 */
9 9
 
10 10
 // Exit if accessed directly
11 11
 if ( ! defined( 'ABSPATH' ) ) {
Please login to merge, or discard this patch.
includes/class-kirki-enqueue.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Enqueue the scripts that are required by the customizer.
4
- * Any additional scripts that are required by individual controls
5
- * are enqueued in the control classes themselves.
6
- *
7
- * @package     Kirki
8
- * @category    Core
9
- * @author      Aristeides Stathopoulos
10
- * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
11
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
12
- * @since       1.0
13
- */
3
+	 * Enqueue the scripts that are required by the customizer.
4
+	 * Any additional scripts that are required by individual controls
5
+	 * are enqueued in the control classes themselves.
6
+	 *
7
+	 * @package     Kirki
8
+	 * @category    Core
9
+	 * @author      Aristeides Stathopoulos
10
+	 * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
11
+	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
12
+	 * @since       1.0
13
+	 */
14 14
 
15 15
 // Exit if accessed directly
16 16
 if ( ! defined( 'ABSPATH' ) ) {
Please login to merge, or discard this patch.
includes/class-kirki-sanitize-values.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Additional sanitization methods for controls.
4
- * These are used in the field's 'sanitize_callback' argument.
5
- *
6
- * @package     Kirki
7
- * @category    Core
8
- * @author      Aristeides Stathopoulos
9
- * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
10
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
- * @since       1.0
12
- */
3
+	 * Additional sanitization methods for controls.
4
+	 * These are used in the field's 'sanitize_callback' argument.
5
+	 *
6
+	 * @package     Kirki
7
+	 * @category    Core
8
+	 * @author      Aristeides Stathopoulos
9
+	 * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
10
+	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
+	 * @since       1.0
12
+	 */
13 13
 
14 14
 // Exit if accessed directly
15 15
 if ( ! defined( 'ABSPATH' ) ) {
Please login to merge, or discard this patch.
includes/class-kirki-scripts-registry.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Instantiates all other needed scripts.
4
- *
5
- * @package     Kirki
6
- * @category    Core
7
- * @author      Aristeides Stathopoulos
8
- * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
9
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
- * @since       1.0
11
- */
3
+	 * Instantiates all other needed scripts.
4
+	 *
5
+	 * @package     Kirki
6
+	 * @category    Core
7
+	 * @author      Aristeides Stathopoulos
8
+	 * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
9
+	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
+	 * @since       1.0
11
+	 */
12 12
 
13 13
 // Exit if accessed directly
14 14
 if ( ! defined( 'ABSPATH' ) ) {
Please login to merge, or discard this patch.
includes/class-kirki-toolkit.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The main Kirki object
4
- *
5
- * @package     Kirki
6
- * @category    Core
7
- * @author      Aristeides Stathopoulos
8
- * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
9
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
- * @since       1.0
11
- */
3
+	 * The main Kirki object
4
+	 *
5
+	 * @package     Kirki
6
+	 * @category    Core
7
+	 * @author      Aristeides Stathopoulos
8
+	 * @copyright   Copyright (c) 2016, Aristeides Stathopoulos
9
+	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
+	 * @since       1.0
11
+	 */
12 12
 
13 13
 // Exit if accessed directly
14 14
 if ( ! defined( 'ABSPATH' ) ) {
Please login to merge, or discard this patch.