Completed
Branch dev (a3767f)
by Michael
40:38
created
generator/field/AdminPageFramework_Form_View___Generate_FieldTagID.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             
60 60
         }
61 61
         
62
-       //  @deprecated
62
+        //  @deprecated
63 63
         // protected function _getBaseFieldTagID() {
64 64
 
65 65
             // $_sSectionIndex = isset( $this->aArguments[ '_section_index' ] )
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @return      string
41 41
      */
42 42
     public function getModel() {
43
-        return $this->get() . '__' . $this->sIndexMark;
43
+        return $this->get().'__'.$this->sIndexMark;
44 44
     }
45 45
         /**
46 46
          * @since       3.6.0
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
         protected function _getBaseFieldTagID() {
50 50
 
51 51
             $_sSectionIndex = isset( $this->aArguments[ '_section_index' ] )
52
-                ? '__' . $this->aArguments[ '_section_index' ] 
52
+                ? '__'.$this->aArguments[ '_section_index' ] 
53 53
                 : '';
54 54
             $_sSectionPart = implode( '_', $this->aArguments[ '_section_path_array' ] );
55 55
             $_sFieldPart   = implode( '_', $this->aArguments[ '_field_path_array' ] );
56 56
             return $this->_isSectionSet()
57
-                ? $_sSectionPart . $_sSectionIndex . '_' . $_sFieldPart
57
+                ? $_sSectionPart.$_sSectionIndex.'_'.$_sFieldPart
58 58
                 : $_sFieldPart;
59 59
             
60 60
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * @since       3.6.0       Moved from `AdminPageFramework_FormField`.
31 31
      * @return      string      The generated string value.
32 32
      */
33
-    public function get() {            
33
+    public function get() {
34 34
         return $this->_getFiltered( $this->_getBaseFieldTagID() );
35 35
     }
36 36
     
Please login to merge, or discard this patch.
field/AdminPageFramework_Form_View___Generate_FlatFieldInputName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             '',
39 39
             "|{$this->sIndex}"
40 40
         );                
41
-        return $this->_getFiltered( $this->_getFlatFieldName() . $_sIndex );
41
+        return $this->_getFiltered( $this->_getFlatFieldName().$_sIndex );
42 42
         
43 43
     }
44 44
  
Please login to merge, or discard this patch.
generator/field/AdminPageFramework_Form_View___Generate_FlatFieldName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      * @return      string      The generated field name model.
32 32
      */
33 33
     public function getModel() {
34
-        return $this->get() . '|' . $this->sIndexMark;
34
+        return $this->get().'|'.$this->sIndexMark;
35 35
     }
36 36
         
37 37
         /**
Please login to merge, or discard this patch.
generator/section/AdminPageFramework_Form_View___Generate_SectionName.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,26 +25,26 @@
 block discarded – undo
25 25
         return $this->_getFiltered( $this->_getSectionName() );
26 26
     }
27 27
         
28
-    public function getModel()     {
29
-        return $this->get() . '[' . $this->sIndexMark . ']';
28
+    public function getModel() {
29
+        return $this->get().'['.$this->sIndexMark.']';
30 30
     }
31 31
         
32 32
         /**
33 33
          * @return      string
34 34
          */
35
-        protected function _getSectionName( $isIndex=null ) {
35
+        protected function _getSectionName( $isIndex = null ) {
36 36
 
37 37
             $this->aArguments = $this->aArguments + array(
38 38
                 'section_id' => null,
39 39
                 '_index'     => null,
40 40
             );
41
-            if( isset( $isIndex ) ) {
41
+            if ( isset( $isIndex ) ) {
42 42
                 $this->aArguments[ '_index' ] = $isIndex;
43 43
             }
44 44
             
45 45
             $_aNameParts = $this->aArguments[ '_section_path_array' ];
46 46
             if ( isset( $this->aArguments[ 'section_id' ], $this->aArguments[ '_index' ] ) ) {
47
-                $_aNameParts[] = $this->aArguments[ '_index' ];
47
+                $_aNameParts[ ] = $this->aArguments[ '_index' ];
48 48
             }
49 49
             $_sResult = $this->_getInputNameConstructed( $_aNameParts );
50 50
             return $_sResult;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         return $this->_getFiltered( $this->_getSectionName() );
26 26
     }
27 27
         
28
-    public function getModel()     {
28
+    public function getModel() {
29 29
         return $this->get() . '[' . $this->sIndexMark . ']';
30 30
     }
31 31
         
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_MediaUploader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $_oMsg      = $_aParams[ 0 ];                
58 58
         
59 59
         // means the WordPress version is 3.4.x or below
60
-        if ( ! function_exists( 'wp_enqueue_media' ) ) { 
60
+        if ( !function_exists( 'wp_enqueue_media' ) ) { 
61 61
             return ""; 
62 62
         } 
63 63
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $_oMsg      = $_aParams[ 0 ];                
58 58
         
59 59
         // means the WordPress version is 3.4.x or below
60
-        if ( ! function_exists( 'wp_enqueue_media' ) ) { 
60
+        if ( ! function_exists( 'wp_enqueue_media' ) ) {
61 61
             return ""; 
62 62
         } 
63 63
 
Please login to merge, or discard this patch.
_view/script/AdminPageFramework_Form_View___Script_RepeatableSection.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -399,12 +399,12 @@
 block discarded – undo
399 399
     
400 400
     
401 401
         /**
402
-     * Stores the set container IDs to prevent multiple calls.
403
-     * 
404
-     * Collapsible and tabbed sections can call this method multiple times with the same container ID.
405
-     * 
406
-     * @since       3.4.0
407
-     */
402
+         * Stores the set container IDs to prevent multiple calls.
403
+         * 
404
+         * Collapsible and tabbed sections can call this method multiple times with the same container ID.
405
+         * 
406
+         * @since       3.4.0
407
+         */
408 408
     static private $_aSetContainerIDsForRepeatableSections = array();
409 409
     /**
410 410
      * Returns the enabler script of repeatable sections.
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -415,10 +415,10 @@
 block discarded – undo
415 415
      */
416 416
     static public function getEnabler( $sContainerTagID, $iSectionCount, $aSettings, $oMsg ) {
417 417
         
418
-        if ( empty( $aSettings ) ) { 
418
+        if ( empty( $aSettings ) ) {
419 419
             return ''; 
420 420
         }
421
-        if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForRepeatableSections ) ) { 
421
+        if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForRepeatableSections ) ) {
422 422
             return ''; 
423 423
         }
424 424
         self::$_aSetContainerIDsForRepeatableSections[ $sContainerTagID ] = $sContainerTagID;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -442,7 +442,7 @@
 block discarded – undo
442 442
                 . "<a class='repeatable-section-remove-button button-secondary repeatable-section-button button button-large' href='#' title='{$_sRemove}' {$_sVisibility} data-id='{$sContainerTagID}'>-</a>"
443 443
                 . "<a class='repeatable-section-add-button button-secondary repeatable-section-button button button-large' href='#' title='{$_sAdd}' data-id='{$sContainerTagID}'>+</a>"
444 444
             . "</div>";
445
-        $_sButtonsHTML  = '"' . $_sButtons . '"';
445
+        $_sButtonsHTML  = '"'.$_sButtons.'"';
446 446
         $_aJSArray      = json_encode( $aSettings );
447 447
         $_sScript       = <<<JAVASCRIPTS
448 448
 jQuery( document ).ready( function() {
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
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.
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-2015 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+     * Admin Page Framework
4
+     * 
5
+     * http://en.michaeluno.jp/admin-page-framework/
6
+     * Copyright (c) 2013-2015 Michael Uno; Licensed MIT
7
+     * 
8
+     */
9 9
 
10 10
 /**
11 11
  * Provides methods for creating fields in the taxonomy page (edit-tags.php).
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.