Completed
Branch master (0a34ef)
by
unknown
13:11
created
_common/form/_view/css/AdminPageFramework_Form_View___CSS_Section.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
24 24
     protected function _get() {
25 25
         return $this->_getFormSectionRules();
26 26
     }
27
-         /**
28
-         * Returns the CSS rules for form fields.
29
-         * 
30
-         * @since       3.4.0
31
-         * @since       3.7.0      Moved from `AdminPageFramework_CSS`.
32
-         * @internal
33
-         */    
27
+            /**
28
+             * Returns the CSS rules for form fields.
29
+             * 
30
+             * @since       3.4.0
31
+             * @since       3.7.0      Moved from `AdminPageFramework_CSS`.
32
+             * @internal
33
+             */    
34 34
         private function _getFormSectionRules() {
35 35
             
36 36
             return <<<CSSRULES
Please login to merge, or discard this patch.
factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @since   DEVVER
30 30
      */
31 31
     public function add( $sCSSRules ) {
32
-        $this->aAdded[] = $sCSSRules;
32
+        $this->aAdded[ ] = $sCSSRules;
33 33
     }
34 34
     
35 35
     /**
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function get() {
40 40
         
41
-        $_sCSSRules  = $this->_get() . PHP_EOL;
41
+        $_sCSSRules  = $this->_get().PHP_EOL;
42 42
         $_sCSSRules .= $this->_getVersionSpecific();
43 43
         $_sCSSRules .= implode( PHP_EOL, $this->aAdded );
44 44
         return $this->isDebugMode()
Please login to merge, or discard this patch.
_common/form/_view/css/AdminPageFramework_Form_View___CSS_ToolTip.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
- * Admin Page Framework
4
- * 
5
- * http://en.michaeluno.jp/admin-page-framework/
6
- * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+         * Admin Page Framework
4
+         * 
5
+         * http://en.michaeluno.jp/admin-page-framework/
6
+         * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
+         * 
8
+         */
9 9
 
10 10
 /**
11 11
  * Provides methods to return CSS rules for form outputs.
Please login to merge, or discard this patch.
form/_view/css/AdminPageFramework_Form_View___CSS_CollapsibleSection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
     background: none;   /* for Wordpress v3.7.x or below, the background image need to be removed as well */
141 141
 }
142 142
 CSSRULES;
143
-            if ( version_compare( $GLOBALS['wp_version'], '3.8', '<' ) ) {
143
+            if ( version_compare( $GLOBALS[ 'wp_version' ], '3.8', '<' ) ) {
144 144
                 $_sCSSRules .= <<<CSSRULES
145 145
 .admin-page-framework-collapsible-sections-title.accordion-section-title:after,
146 146
 .admin-page-framework-collapsible-section-title.accordion-section-title:after 
Please login to merge, or discard this patch.
_common/form/_view/css/AdminPageFramework_Form_View___CSS_FieldError.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      * @since       DEVVER
22 22
      * @return      string
23 23
      */
24
-    protected function _get() {        
24
+    protected function _get() {
25 25
         return $this->_getRules();
26 26
     }
27 27
         /**
Please login to merge, or discard this patch.
factory/_common/form/_view/AdminPageFramework_Form_View___Description.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
         }
51 51
         
52 52
         $_aOutput = array();
53
-        foreach( $this->aDescriptions as $_sDescription ) {
54
-            $_aOutput[] = "<p class='" . esc_attr( $this->sClassAttribute ) . "'>"
53
+        foreach ( $this->aDescriptions as $_sDescription ) {
54
+            $_aOutput[ ] = "<p class='".esc_attr( $this->sClassAttribute )."'>"
55 55
                     . "<span class='description'>"
56 56
                         . $_sDescription
57 57
                     . "</span>"
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  * @internal
17 17
  * @extends     AdminPageFramework_FrameworkUtility
18 18
  */
19
-class AdminPageFramework_Form_View___Description extends AdminPageFramework_FrameworkUtility {            
19
+class AdminPageFramework_Form_View___Description extends AdminPageFramework_FrameworkUtility {
20 20
 
21 21
     public $aDescriptions   = array();
22 22
     
Please login to merge, or discard this patch.
_view/script/AdminPageFramework_Form_View___Script_CollapsibleSection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         
43 43
         $_aParams               = func_get_args() + array( null );
44 44
         $_oMsg                  = $_aParams[ 0 ];        
45
-        $_sToggleAllButtonHTML  = '"' . self::_getToggleAllButtonHTML( $_oMsg ) . '"';                
45
+        $_sToggleAllButtonHTML  = '"'.self::_getToggleAllButtonHTML( $_oMsg ).'"';                
46 46
            
47 47
         return <<<JAVASCRIPTS
48 48
 ( function( $ ) {
@@ -192,18 +192,18 @@  discard block
 block discarded – undo
192 192
             $_sLabelToggleAll           = $oMsg->get( 'toggle_all' );
193 193
             $_sLabelToggleAllSections   = $oMsg->get( 'toggle_all_collapsible_sections' );
194 194
             $_sDashIconSort             = self::getAOrB( 
195
-                version_compare( $GLOBALS['wp_version'], '3.8', '<' ),  // evaluate
195
+                version_compare( $GLOBALS[ 'wp_version' ], '3.8', '<' ), // evaluate
196 196
                 '', // true
197 197
                 'dashicons dashicons-sort' // false
198 198
             );         
199
-            $_sText                     = self::getAOrB( 
199
+            $_sText = self::getAOrB( 
200 200
                 $_sDashIconSort, // evaluate
201 201
                 '', // true
202 202
                 $_sLabelToggleAll // false
203 203
             );
204 204
             return "<div class='admin-page-framework-collapsible-toggle-all-button-container'>"
205
-                    . "<span class='admin-page-framework-collapsible-toggle-all-button button " . $_sDashIconSort . "'"
206
-                        . " title='" . esc_attr( $_sLabelToggleAllSections ) 
205
+                    . "<span class='admin-page-framework-collapsible-toggle-all-button button ".$_sDashIconSort."'"
206
+                        . " title='".esc_attr( $_sLabelToggleAllSections ) 
207 207
                     . "'>"
208 208
                         . $_sText
209 209
                     . "</span>"
Please login to merge, or discard this patch.
form/_view/script/AdminPageFramework_Form_View___Script_SectionTab.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
      */
130 130
     static public function getEnabler() {
131 131
         
132
-        if ( self::$_bLoadedTabEnablerScript ) { 
132
+        if ( self::$_bLoadedTabEnablerScript ) {
133 133
             return ''; 
134 134
         }
135 135
         self::$_bLoadedTabEnablerScript = true;
Please login to merge, or discard this patch.
form/_view/script/AdminPageFramework_Form_View___Script_SortableSection.php 3 patches
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
- * Admin Page Framework
4
- * 
5
- * http://en.michaeluno.jp/admin-page-framework/
6
- * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+     * Admin Page Framework
4
+     * 
5
+     * http://en.michaeluno.jp/admin-page-framework/
6
+     * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
+     * 
8
+     */
9 9
 
10 10
 /**
11 11
  * Provides JavaScript scripts for the sortable method.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         new self( $oMsg ); 
106 106
         
107 107
         // $aSettings              = $this->getAsArray( $aSettings );        
108
-        $_sScript       = <<<JAVASCRIPTS
108
+        $_sScript = <<<JAVASCRIPTS
109 109
 jQuery( document ).ready( function() {    
110 110
     jQuery( '#{$sContainerTagID}' ).enableAdminPageFrameworkSortableSections( '{$sContainerTagID}' ); 
111 111
 });            
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,10 +94,10 @@
 block discarded – undo
94 94
      */
95 95
     static public function getEnabler( $sContainerTagID, $aSettings, $oMsg ) {
96 96
         
97
-        if ( empty( $aSettings ) ) { 
97
+        if ( empty( $aSettings ) ) {
98 98
             return ''; 
99 99
         }
100
-        if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForSortableSections ) ) { 
100
+        if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForSortableSections ) ) {
101 101
             return ''; 
102 102
         }
103 103
         self::$_aSetContainerIDsForSortableSections[ $sContainerTagID ] = $sContainerTagID;        
Please login to merge, or discard this patch.