Completed
Branch master (6574bf)
by
unknown
07:51 queued 04:01
created
form/_model/formatter/AdminPageFramework_Form_Model___FormatSectionset.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -35,47 +35,47 @@  discard block
 block discarded – undo
35 35
         // Optional
36 36
         'page_slug'         => null,
37 37
         'tab_slug'          => null,
38
-        'section_tab_slug'  => null,    // 3.0.0+
38
+        'section_tab_slug'  => null, // 3.0.0+
39 39
         'title'             => null,
40 40
         'description'       => null,
41 41
         'capability'        => null,
42 42
         'if'                => true,    
43
-        'order'             => null,    // do not set the default number here because incremented numbers will be added when registering the sections.
43
+        'order'             => null, // do not set the default number here because incremented numbers will be added when registering the sections.
44 44
         'help'              => null,
45 45
         'help_aside'        => null,
46
-        'repeatable'        => false,   // (boolean|array) 3.0.0+
47
-        'sortable'          => false,   // (boolean|array) 3.6.0+
46
+        'repeatable'        => false, // (boolean|array) 3.0.0+
47
+        'sortable'          => false, // (boolean|array) 3.6.0+
48 48
         'attributes'        => array(   // 3.3.1+
49
-            'class'         => null,    // set null to avoid undefined index warnings.
50
-            'style'         => null,    // set null to avoid undefined index warnings.
49
+            'class'         => null, // set null to avoid undefined index warnings.
50
+            'style'         => null, // set null to avoid undefined index warnings.
51 51
             'tab'           => array(),
52 52
         ),
53 53
         'class'             => array(    // 3.3.1+
54 54
             'tab'           => array(),
55 55
         ),
56
-        'hidden'            => false,    // 3.3.1+
57
-        'collapsible'       => false,    // 3.4.0+ (boolean|array) For the array structure see the $aStructure_CollapsibleArguments property.
58
-        'save'              => true,     // 3.6.0+
56
+        'hidden'            => false, // 3.3.1+
57
+        'collapsible'       => false, // 3.4.0+ (boolean|array) For the array structure see the $aStructure_CollapsibleArguments property.
58
+        'save'              => true, // 3.6.0+
59 59
         
60
-        'content'           => null,     // 3.6.1+  (string) An overriding section-set output.
60
+        'content'           => null, // 3.6.1+  (string) An overriding section-set output.
61 61
         
62
-        'tip'               => null,     // 3.7.0  (string) Tool tip HTML strings. 
62
+        'tip'               => null, // 3.7.0  (string) Tool tip HTML strings. 
63 63
         
64 64
         // Internal
65
-        '_fields_type'      => null,     // @deprecated 3.7.0+ Use the `_structure_type` instead. 3.0.0+ - same as the one of the field definition array. Used to insert debug info at the bottom of sections.        
66
-        '_structure_type'   => null,     // 3.7.0+
67
-        '_is_first_index'   => false,    // 3.4.0+ (boolean) indicates whether it is the first item of the sub-sections (for repeatable sections).
68
-        '_is_last_index'    => false,    // 3.4.0+ (boolean) indicates whether it is the last item of the sub-sections (for repeatable sections).
65
+        '_fields_type'      => null, // @deprecated 3.7.0+ Use the `_structure_type` instead. 3.0.0+ - same as the one of the field definition array. Used to insert debug info at the bottom of sections.        
66
+        '_structure_type'   => null, // 3.7.0+
67
+        '_is_first_index'   => false, // 3.4.0+ (boolean) indicates whether it is the first item of the sub-sections (for repeatable sections).
68
+        '_is_last_index'    => false, // 3.4.0+ (boolean) indicates whether it is the last item of the sub-sections (for repeatable sections).
69 69
         
70
-        '_section_path'         => '',       // 3.7.0+ (string) e.g. my_section|nested_section       
71
-        '_section_path_array'   => '',       // 3.7.0+ (array) an array version of the above section_path argument. Numerically indexed.
72
-        '_nested_depth'         => 0,        // 3.7.0+ (integer) the nested level of the section
70
+        '_section_path'         => '', // 3.7.0+ (string) e.g. my_section|nested_section       
71
+        '_section_path_array'   => '', // 3.7.0+ (array) an array version of the above section_path argument. Numerically indexed.
72
+        '_nested_depth'         => 0, // 3.7.0+ (integer) the nested level of the section
73 73
         
74 74
         // 3.6.0+ - (object) the caller framework factory object. This allows the framework to access the factory property when rendering the section.
75 75
         // 3.7.0+  It no longer stores a factory object but a form object.
76 76
         '_caller_object'    => null,     
77 77
         
78
-        'show_debug_info'   => null,    // 3.8.8+ (boolean) Whether to display debug information. Inherits the page/in-page-tab setting (actually the factory property value of `$bShowDebugInfo` which gets updated by the page/tab setting).
78
+        'show_debug_info'   => null, // 3.8.8+ (boolean) Whether to display debug information. Inherits the page/in-page-tab setting (actually the factory property value of `$bShowDebugInfo` which gets updated by the page/tab setting).
79 79
         
80 80
     );        
81 81
     
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     
95 95
     public $oCaller             = null;
96 96
     
97
-    public $bShowDebugInfo      = true;     // 3.8.8+
97
+    public $bShowDebugInfo      = true; // 3.8.8+
98 98
     
99 99
     /**
100 100
      * Sets up properties.
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $this->sCapability, 
109 109
             $this->iCountOfElements,
110 110
             $this->oCaller,
111
-            $this->bShowDebugInfo,      // 3.8.8+
111
+            $this->bShowDebugInfo, // 3.8.8+
112 112
         );
113 113
         $this->aSectionset          = $_aParameters[ 0 ];
114 114
         $this->sSectionPath         = $_aParameters[ 1 ];
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $this->sCapability          = $_aParameters[ 3 ];
117 117
         $this->iCountOfElements     = $_aParameters[ 4 ];
118 118
         $this->oCaller              = $_aParameters[ 5 ];
119
-        $this->bShowDebugInfo       = $_aParameters[ 6 ];   // 3.8.8+
119
+        $this->bShowDebugInfo       = $_aParameters[ 6 ]; // 3.8.8+
120 120
 
121 121
     }
122 122
     
@@ -131,16 +131,16 @@  discard block
 block discarded – undo
131 131
         $_aSectionPath = explode( '|', $this->sSectionPath );
132 132
         $_aSectionset  = $this->uniteArrays(
133 133
             array( 
134
-                '_fields_type'          => $this->sStructureType,   // @deprecated  3.7.0+
135
-                '_structure_type'       => $this->sStructureType,   // 3.7.0+
136
-                '_section_path'         => $this->sSectionPath,     // 3.7.0+
134
+                '_fields_type'          => $this->sStructureType, // @deprecated  3.7.0+
135
+                '_structure_type'       => $this->sStructureType, // 3.7.0+
136
+                '_section_path'         => $this->sSectionPath, // 3.7.0+
137 137
                 '_section_path_array'   => $_aSectionPath,
138
-                '_nested_depth'         => count( $_aSectionPath ) - 1,    // 3.7.0+ - zero base
138
+                '_nested_depth'         => count( $_aSectionPath ) - 1, // 3.7.0+ - zero base
139 139
             ) 
140 140
             + $this->aSectionset
141 141
             + array(
142 142
                 'capability'        => $this->sCapability,
143
-                'show_debug_info'   => $this->bShowDebugInfo,   // 3.8.8+
143
+                'show_debug_info'   => $this->bShowDebugInfo, // 3.8.8+
144 144
             ),
145 145
             self::$aStructure
146 146
         );
Please login to merge, or discard this patch.
factory/_common/utility/base_utility/AdminPageFramework_Utility.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
      * @return      void
29 29
      * @since       3.8.8
30 30
      */
31
-    static public function showDeprecationNotice( $sDeprecated, $sAlternative='', $sProgramName='Admin Page Framework' ) {
31
+    static public function showDeprecationNotice( $sDeprecated, $sAlternative = '', $sProgramName = 'Admin Page Framework' ) {
32 32
         trigger_error(
33
-            $sProgramName . ': ' . sprintf(
33
+            $sProgramName.': '.sprintf(
34 34
                 $sAlternative
35 35
                     ? '<code>%1$s</code> has been deprecated. Use <code>%2$s</code> instead.'
36 36
                     : '<code>%1$s</code> has been deprecated.',
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
      * @param       callable            $oCallable
53 53
      * @param       string|array        $asParameters       Parameters to pass to the callback function.
54 54
      */
55
-    public function callBack( $oCallable, $asParameters=array() ) {
56
-        $_aParameters   = self::getAsArray( 
55
+    public function callBack( $oCallable, $asParameters = array() ) {
56
+        $_aParameters = self::getAsArray( 
57 57
             $asParameters, 
58 58
             true // preserve empty
59 59
         );
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @since       3.6.3
90 90
      * @return      string      The captured output buffer.
91 91
      */
92
-    static public function getOutputBuffer( $oCallable, array $aParameters=array() ) {
92
+    static public function getOutputBuffer( $oCallable, array $aParameters = array() ) {
93 93
         
94 94
         ob_start(); 
95 95
         echo call_user_func_array( $oCallable, $aParameters );
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         
111 111
         $_iCount     = count( get_object_vars( $oInstance ) );
112 112
         $_sClassName = get_class( $oInstance );
113
-        return '(object) ' . $_sClassName . ': ' . $_iCount . ' properties.';
113
+        return '(object) '.$_sClassName.': '.$_iCount.' properties.';
114 114
         
115 115
     }
116 116
                    
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param       boolean|integer|double|string|array|object|resource|NULL        $mTrue      The value to return when the first parameter value yields false.
128 128
      * @return      mixed
129 129
      */
130
-    static public function getAOrB( $mValue, $mTrue=null, $mFalse=null ) {
130
+    static public function getAOrB( $mValue, $mTrue = null, $mFalse = null ) {
131 131
         return $mValue ? $mTrue : $mFalse;
132 132
     }    
133 133
     
Please login to merge, or discard this patch.
_common/utility/base_utility/AdminPageFramework_Utility_Deprecated.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @deprecated  3.8.0       Use `getLengthSanitized()` instead.
32 32
      * @since       3.8.8       Moved from `AdminPageFramework_Utility_String`.
33 33
      */
34
-    static public function sanitizeLength( $sLength, $sUnit='px' ) {
34
+    static public function sanitizeLength( $sLength, $sUnit = 'px' ) {
35 35
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getLengthSanitized()' );
36 36
         return AdminPageFramework_Utility_String::getLengthSanitized( $sLength, $sUnit );
37 37
     }    
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
      * @since       3.5.3           Moved from `AdminPageFramework_Utility_Array`.
51 51
      * @deprecated  3.5.3           Use `getElement()`. 
52 52
      */
53
-    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault='', $bBlankToDefault=false ) {    
53
+    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault = '', $bBlankToDefault = false ) {    
54 54
                 
55 55
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getElement()' );
56 56
                 
57 57
         // If $vSubject is null,
58
-        if ( ! isset( $vSubject ) ) { 
58
+        if ( !isset( $vSubject ) ) { 
59 59
             return $sDefault; 
60 60
         }
61 61
             
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
             
67 67
         // If $vSubject is not an array, 
68
-        if ( ! is_array( $vSubject ) ) { 
68
+        if ( !is_array( $vSubject ) ) { 
69 69
             return ( string ) $vSubject; 
70 70
         } // consider it as string.
71 71
         
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
      * @since       3.5.3       Moved from `AdminPageFramework_FieldType_Base`.
117 117
      * @deprecated  3.5.3       Use the `getElement()` method.
118 118
      */
119
-    protected function getFieldElementByKey( $asElement, $sKey, $asDefault='' ) {
119
+    protected function getFieldElementByKey( $asElement, $sKey, $asDefault = '' ) {
120 120
         
121 121
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getElement()' );
122 122
         
123
-        if ( ! is_array( $asElement ) || ! isset( $sKey ) ) {
123
+        if ( !is_array( $asElement ) || !isset( $sKey ) ) {
124 124
             return $asElement; 
125 125
         }
126 126
                 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         
144 144
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__ );
145 145
         
146
-        foreach( $aArray as &$vElem ) {
146
+        foreach ( $aArray as &$vElem ) {
147 147
             
148 148
             if ( $vElem ) { break; }
149 149
             unset( $vElem );
@@ -177,15 +177,15 @@  discard block
 block discarded – undo
177 177
         
178 178
         AdminPageFramework_Utility::showDeprecationNotice( __METHOD__, 'AdminPageFramework_WPUtility::getAttributes()' );
179 179
         
180
-        $_sQuoteCharactor   ="'";
180
+        $_sQuoteCharactor   = "'";
181 181
         $_aOutput           = array();
182
-        foreach( $aAttributes as $sAttribute => $sProperty ) {
182
+        foreach ( $aAttributes as $sAttribute => $sProperty ) {
183 183
        
184 184
             // Must be resolved as a string.
185 185
             if ( in_array( gettype( $sProperty ), array( 'array', 'object' ) ) ) {
186 186
                 continue;
187 187
             }
188
-            $_aOutput[] = "{$sAttribute}={$_sQuoteCharactor}{$sProperty}{$_sQuoteCharactor}";
188
+            $_aOutput[ ] = "{$sAttribute}={$_sQuoteCharactor}{$sProperty}{$_sQuoteCharactor}";
189 189
             
190 190
         }
191 191
         return implode( ' ', $_aOutput );
Please login to merge, or discard this patch.
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,27 +50,27 @@
 block discarded – undo
50 50
      * @since       3.5.3           Moved from `AdminPageFramework_Utility_Array`.
51 51
      * @deprecated  3.5.3           Use `getElement()`. 
52 52
      */
53
-    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault='', $bBlankToDefault=false ) {    
53
+    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault='', $bBlankToDefault=false ) {
54 54
                 
55 55
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getElement()' );
56 56
                 
57 57
         // If $vSubject is null,
58
-        if ( ! isset( $vSubject ) ) { 
58
+        if ( ! isset( $vSubject ) ) {
59 59
             return $sDefault; 
60 60
         }
61 61
             
62 62
         // If the $bBlankToDefault flag is set and the subject value is a blank string, return the default value.
63
-        if ( $bBlankToDefault && $vSubject == '' ) { 
63
+        if ( $bBlankToDefault && $vSubject == '' ) {
64 64
             return  $sDefault; 
65 65
         }
66 66
             
67 67
         // If $vSubject is not an array, 
68
-        if ( ! is_array( $vSubject ) ) { 
68
+        if ( ! is_array( $vSubject ) ) {
69 69
             return ( string ) $vSubject; 
70 70
         } // consider it as string.
71 71
         
72 72
         // Consider $vSubject as array.
73
-        if ( isset( $vSubject[ $sKey ] ) ) { 
73
+        if ( isset( $vSubject[ $sKey ] ) ) {
74 74
             return $vSubject[ $sKey ]; 
75 75
         }
76 76
         
Please login to merge, or discard this patch.
development/factory/_common/utility/AdminPageFramework_FrameworkUtility.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @since       3.8.8
24 24
      * @return      void
25 25
      */
26
-    static public function showDeprecationNotice( $sDeprecated, $sAlternative='', $sProgramName='' ) {
26
+    static public function showDeprecationNotice( $sDeprecated, $sAlternative = '', $sProgramName = '' ) {
27 27
         $sProgramName = $sProgramName ? $sProgramName : self::getFrameworkName();
28 28
         parent::showDeprecationNotice( $sDeprecated, $sAlternative, $sProgramName );
29 29
     }
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
             return;
43 43
         }
44 44
 
45
-        foreach( ( array ) $GLOBALS[ '_apf_sub_menus_to_sort' ] as $_sIndex => $_sMenuSlug ) {
46
-            if ( ! isset( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ) ) {
45
+        foreach ( ( array ) $GLOBALS[ '_apf_sub_menus_to_sort' ] as $_sIndex => $_sMenuSlug ) {
46
+            if ( !isset( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ) ) {
47 47
                 continue;
48 48
             }       
49 49
             ksort( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] );
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param       boolean     $bTrimDevVer           Whether the `.dev` suffix should be removed or not.
69 69
      * @return      string
70 70
      */
71
-    static public function getFrameworkVersion( $bTrimDevVer=false ) {
71
+    static public function getFrameworkVersion( $bTrimDevVer = false ) {
72 72
         $_sVersion = AdminPageFramework_Registry::getVersion();
73 73
         return $bTrimDevVer
74 74
             ? self::getSuffixRemoved( $_sVersion, '.dev' )
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @return      string
97 97
      */
98 98
     static public function getFrameworkNameVersion() {
99
-        return self::getFrameworkName() . ' ' . self::getFrameworkVersion();
99
+        return self::getFrameworkName().' '.self::getFrameworkVersion();
100 100
     }
101 101
         
102 102
 }
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_Router.php 2 patches
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
      * 
28 28
      * @since       3.3.0
29 29
      */
30
-    public function __construct( $sOptionKey=null, $sCallerPath=null, $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
30
+    public function __construct( $sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
31 31
         
32 32
         $_sProprtyClassName = isset( $this->aSubClassNames[ 'oProp' ] )
33 33
             ? $this->aSubClassNames[ 'oProp' ]
34
-            : 'AdminPageFramework_Property_' . $this->_sStructureType;
34
+            : 'AdminPageFramework_Property_'.$this->_sStructureType;
35 35
             
36 36
         $this->oProp = new $_sProprtyClassName( 
37 37
             $this, 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         if ( $this->oProp->bIsAdminAjax ) {
48 48
             return;
49 49
         }     
50
-        if ( ! $this->oProp->bIsAdmin ) {
50
+        if ( !$this->oProp->bIsAdmin ) {
51 51
             return;
52 52
         }
53 53
         
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @since       3.3.1       Moved from `AdminPageFramework_Base`.
94 94
      * @internal
95 95
      */
96
-    public function __call( $sMethodName, $aArgs=null ) {     
96
+    public function __call( $sMethodName, $aArgs = null ) {     
97 97
 
98 98
         $_sPageSlug             = $this->oProp->getCurrentPageSlug();
99 99
         $_sTabSlug              = $this->oProp->getCurrentTabSlug( $_sPageSlug );
@@ -104,15 +104,15 @@  discard block
 block discarded – undo
104 104
             'load_pre_',
105 105
         );        
106 106
         
107
-        switch( $this->_getCallbackName( $sMethodName, $_sPageSlug, $_aKnownMethodPrefixes ) ) {
107
+        switch ( $this->_getCallbackName( $sMethodName, $_sPageSlug, $_aKnownMethodPrefixes ) ) {
108 108
                 
109 109
             // add_settings_section() callback 
110 110
             case 'section_pre_':
111
-                return $this->_renderSectionDescription( $sMethodName );    // defined in AdminPageFramework_Setting
111
+                return $this->_renderSectionDescription( $sMethodName ); // defined in AdminPageFramework_Setting
112 112
                 
113 113
             // add_settings_field() callback
114 114
             case 'field_pre_':
115
-                return $this->_renderSettingField( $_mFirstArg, $_sPageSlug );  // defined in AdminPageFramework_Setting
115
+                return $this->_renderSettingField( $_mFirstArg, $_sPageSlug ); // defined in AdminPageFramework_Setting
116 116
             
117 117
             // load-{page} callback            
118 118
             case 'load_pre_':
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
          * @return      string      The found callback method name or the prefix of a known callback method name. An empty string if not found.
131 131
          * @internal
132 132
          */
133
-        private function _getCallbackName( $sMethodName, $sPageSlug, array $aKnownMethodPrefixes=array() ) {
133
+        private function _getCallbackName( $sMethodName, $sPageSlug, array $aKnownMethodPrefixes = array() ) {
134 134
                         
135
-            foreach( $aKnownMethodPrefixes as $_sMethodPrefix ) {
135
+            foreach ( $aKnownMethodPrefixes as $_sMethodPrefix ) {
136 136
                 if ( $this->oUtil->hasPrefix( $_sMethodPrefix, $sMethodName ) ) {
137 137
                     return $_sMethodPrefix;
138 138
                 }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
          */ 
157 157
         protected function _doPageLoadCall( $sMethodName, $sPageSlug, $sTabSlug, $oScreen ) {
158 158
             
159
-            if ( ! $this->_isPageLoadCall( $sMethodName, $sPageSlug, $oScreen->id ) ) {
159
+            if ( !$this->_isPageLoadCall( $sMethodName, $sPageSlug, $oScreen->id ) ) {
160 160
                 return;
161 161
             }
162 162
                       
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             $this->_setShowDebugInfoProperty( $sPageSlug ); // 3.8.8+
167 167
                                     
168 168
             // Do actions in this order, class ->  page -> in-page tab. This order is important as some methods rely on it.
169
-            $this->load();  // 3.7.12+
169
+            $this->load(); // 3.7.12+
170 170
             $this->oUtil->addAndDoActions( 
171 171
                 $this, // the caller object
172 172
                 array( 
@@ -183,10 +183,10 @@  discard block
 block discarded – undo
183 183
             $sTabSlug = $this->oProp->getCurrentTabSlug( $sPageSlug );
184 184
             
185 185
             if ( strlen( $sTabSlug ) ) { 
186
-                $this->_setShowDebugInfoProperty( $sPageSlug, $sTabSlug );  // 3.8.8+
186
+                $this->_setShowDebugInfoProperty( $sPageSlug, $sTabSlug ); // 3.8.8+
187 187
                 $this->oUtil->addAndDoActions( 
188 188
                     $this, // the caller object
189
-                    array( "load_{$sPageSlug}_" . $sTabSlug ),
189
+                    array( "load_{$sPageSlug}_".$sTabSlug ),
190 190
                     $this // the admin page object - this lets third-party scripts use the framework methods.
191 191
                 );         
192 192
             }
@@ -211,10 +211,10 @@  discard block
 block discarded – undo
211 211
              * @since       3.8.8
212 212
              * @return      void
213 213
              */
214
-            private function _setShowDebugInfoProperty( $sPageSlug, $sTabSlug='' ) {
214
+            private function _setShowDebugInfoProperty( $sPageSlug, $sTabSlug = '' ) {
215 215
 
216 216
                 // For the page,
217
-                if ( ! strlen( $sTabSlug ) ) {
217
+                if ( !strlen( $sTabSlug ) ) {
218 218
                     $this->oProp->bShowDebugInfo = $this->oUtil->getElement(
219 219
                         $this->oProp->aPages,
220 220
                         array( $sPageSlug, 'show_debug_info' ),
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
                 if ( substr( $sMethodName, strlen( 'load_pre_' ) ) !== $sPageSlug ) {
260 260
                     return false;
261 261
                 }
262
-                if ( ! isset( $this->oProp->aPageHooks[ $sPageSlug ] ) ) {
262
+                if ( !isset( $this->oProp->aPageHooks[ $sPageSlug ] ) ) {
263 263
                     return false;
264 264
                 }
265 265
                 if ( $sScreenID !== $this->oProp->aPageHooks[ $sPageSlug ] ) {
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
         }
287 287
         
288 288
         // Nothing to do in the network admin area.
289
-        return ! is_network_admin();
289
+        return !is_network_admin();
290 290
         
291 291
     }
292 292
     
@@ -301,11 +301,11 @@  discard block
 block discarded – undo
301 301
     public function _isInThePage() {
302 302
         
303 303
         // If the setUp method is not loaded yet,
304
-        if ( ! did_action( 'set_up_' . $this->oProp->sClassName ) ) {
304
+        if ( !did_action( 'set_up_'.$this->oProp->sClassName ) ) {
305 305
             return true;
306 306
         }    
307 307
 
308
-        if ( ! isset( $_GET[ 'page' ] ) ) { 
308
+        if ( !isset( $_GET[ 'page' ] ) ) { 
309 309
             return false; 
310 310
         }        
311 311
         
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @since       3.3.1       Moved from `AdminPageFramework_Base`.
94 94
      * @internal
95 95
      */
96
-    public function __call( $sMethodName, $aArgs=null ) {     
96
+    public function __call( $sMethodName, $aArgs=null ) {
97 97
 
98 98
         $_sPageSlug             = $this->oProp->getCurrentPageSlug();
99 99
         $_sTabSlug              = $this->oProp->getCurrentTabSlug( $_sPageSlug );
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
             // Note that the if the tab is the first item, and the user arrives the page by clicking on the sidebar menu, the tab slug will be empty unless an in-page tab is added.
183 183
             $sTabSlug = $this->oProp->getCurrentTabSlug( $sPageSlug );
184 184
             
185
-            if ( strlen( $sTabSlug ) ) { 
185
+            if ( strlen( $sTabSlug ) ) {
186 186
                 $this->_setShowDebugInfoProperty( $sPageSlug, $sTabSlug );  // 3.8.8+
187 187
                 $this->oUtil->addAndDoActions( 
188 188
                     $this, // the caller object
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
             return true;
306 306
         }    
307 307
 
308
-        if ( ! isset( $_GET[ 'page' ] ) ) { 
308
+        if ( ! isset( $_GET[ 'page' ] ) ) {
309 309
             return false; 
310 310
         }        
311 311
         
Please login to merge, or discard this patch.
factory/admin_page/_model/format/AdminPageFramework_Format_InPageTab.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 block discarded – undo
31 31
         'page_slug'         => null,
32 32
         'tab_slug'          => null,
33 33
         'title'             => null,
34
-        'order'             => 10,      // (integer)
35
-        'show_in_page_tab'  => true,    // 3.6.0+ (boolean)
36
-        'parent_tab_slug'   => null,    // this needs to be set if the above show_in_page_tab is false so that the framework can mark the parent tab to be active when the hidden page is accessed.
37
-        'url'               => null,    // 3.5.0+ This allows the user set custom link.
38
-        'disabled'          => null,    // 3.5.10+ (boolean) If true, the link will be unlinked.
39
-        'attributes'        => null,    // 3.5.10+ (array) Applies to the navigation tab bar element.    
40
-        'capability'        => null,    // 3.6.0+ (string)
41
-        'if'                => true,    // 3.6.0+ (boolean)
42
-        'show_debug_info'   => null,    // 3.8.8+ (boolean, optional) Whether to show debug information. If not set, the existent `bShowDebugInfo` property value will be used. The initial value here is `null` as the default value will be assigned in the formatting method.
34
+        'order'             => 10, // (integer)
35
+        'show_in_page_tab'  => true, // 3.6.0+ (boolean)
36
+        'parent_tab_slug'   => null, // this needs to be set if the above show_in_page_tab is false so that the framework can mark the parent tab to be active when the hidden page is accessed.
37
+        'url'               => null, // 3.5.0+ This allows the user set custom link.
38
+        'disabled'          => null, // 3.5.10+ (boolean) If true, the link will be unlinked.
39
+        'attributes'        => null, // 3.5.10+ (array) Applies to the navigation tab bar element.    
40
+        'capability'        => null, // 3.6.0+ (string)
41
+        'if'                => true, // 3.6.0+ (boolean)
42
+        'show_debug_info'   => null, // 3.8.8+ (boolean, optional) Whether to show debug information. If not set, the existent `bShowDebugInfo` property value will be used. The initial value here is `null` as the default value will be assigned in the formatting method.
43 43
     );
44 44
     
45 45
     /**
Please login to merge, or discard this patch.
development/factory/page_meta_box/AdminPageFramework_MetaBox_Page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
      * @since       3.0.0
25 25
      * @deprecated  3.7.0      Use     `AdminPageFramework_PageMetaBox` instead.
26 26
      */
27
-    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
27
+    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
28 28
                         
29 29
         parent::__construct( $sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain );
30 30
         
31 31
         $this->oUtil->showDeprecationNotice( 
32
-            'The class, ' . __CLASS__ . ',', // deprecated item
32
+            'The class, '.__CLASS__.',', // deprecated item
33 33
             'AdminPageFramework_PageMetaBox' // alternative
34 34
         );
35 35
         
Please login to merge, or discard this patch.
development/factory/_common/utility/debug/AdminPageFramework_Debug.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      * @since       3.8.9
43 43
      * @return      string
44 44
      */
45
-    static public function getDetails( $mValue, $bEscape=true ) {    
45
+    static public function getDetails( $mValue, $bEscape=true ) {
46 46
         $_sValueWithDetails = self::_getArrayRepresentationSanitized(
47 47
             self::_getLegibleDetails( $mValue )
48 48
         );
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * @param       string          $sFilePath      The file path for a log file.
34 34
      * @return      void
35 35
      */
36
-    static public function dump( $asArray, $sFilePath=null ) {
36
+    static public function dump( $asArray, $sFilePath = null ) {
37 37
         echo self::get( $asArray, $sFilePath );
38 38
     }    
39 39
     
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @since       3.8.9
43 43
      * @return      string
44 44
      */
45
-    static public function getDetails( $mValue, $bEscape=true ) {    
45
+    static public function getDetails( $mValue, $bEscape = true ) {    
46 46
         $_sValueWithDetails = self::_getArrayRepresentationSanitized(
47 47
             self::_getLegibleDetails( $mValue )
48 48
         );
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * @param       string          $sFilePath      The file path for a log file.
65 65
      * @param       boolean         $bEscape        Whether to escape characters.
66 66
      */
67
-    static public function get( $asArray, $sFilePath=null, $bEscape=true ) {
67
+    static public function get( $asArray, $sFilePath = null, $bEscape = true ) {
68 68
 
69 69
         if ( $sFilePath ) {
70 70
             self::log( $asArray, $sFilePath );     
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param       string      $sFilePath      The log file path.
97 97
      * @return      void
98 98
      **/
99
-    static public function log( $mValue, $sFilePath=null ) {
99
+    static public function log( $mValue, $sFilePath = null ) {
100 100
         self::_log( $mValue, $sFilePath );
101 101
     }       
102 102
             
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
      * @since unknown
111 111
      * @deprecated      3.2.0
112 112
      */
113
-    static public function dumpArray( $asArray, $sFilePath=null ) {
114
-        self::showDeprecationNotice( 'AdminPageFramework_Debug::' . __FUNCTION__, 'AdminPageFramework_Debug::dump()' );
113
+    static public function dumpArray( $asArray, $sFilePath = null ) {
114
+        self::showDeprecationNotice( 'AdminPageFramework_Debug::'.__FUNCTION__, 'AdminPageFramework_Debug::dump()' );
115 115
         AdminPageFramework_Debug::dump( $asArray, $sFilePath );
116 116
     }     
117 117
     
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
      * @since       3.0.0 Changed the $bEncloseInTag parameter to bEscape.
125 125
      * @deprecated  3.2.0
126 126
      */
127
-    static public function getArray( $asArray, $sFilePath=null, $bEscape=true ) {
128
-        self::showDeprecationNotice( 'AdminPageFramework_Debug::' . __FUNCTION__, 'AdminPageFramework_Debug::get()' );
127
+    static public function getArray( $asArray, $sFilePath = null, $bEscape = true ) {
128
+        self::showDeprecationNotice( 'AdminPageFramework_Debug::'.__FUNCTION__, 'AdminPageFramework_Debug::get()' );
129 129
         return AdminPageFramework_Debug::get( $asArray, $sFilePath, $bEscape );
130 130
     }
131 131
 
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
      * @since       3.0.3   Changed the default log location and file name.
137 137
      * @deprecated  3.1.0   Use the `log()` method instead.
138 138
      */
139
-    static public function logArray( $asArray, $sFilePath=null ) {
140
-        self::showDeprecationNotice( 'AdminPageFramework_Debug::' . __FUNCTION__, 'AdminPageFramework_Debug::log()' );
139
+    static public function logArray( $asArray, $sFilePath = null ) {
140
+        self::showDeprecationNotice( 'AdminPageFramework_Debug::'.__FUNCTION__, 'AdminPageFramework_Debug::log()' );
141 141
         AdminPageFramework_Debug::log( $asArray, $sFilePath );     
142 142
     }
143 143
     
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @deprecated  3.8.9
151 151
      */
152 152
     static public function getAsString( $mValue ) {
153
-        self::showDeprecationNotice( 'AdminPageFramework_Debug::' . __FUNCTION__ );
153
+        self::showDeprecationNotice( 'AdminPageFramework_Debug::'.__FUNCTION__ );
154 154
         return self::_getLegible( $mValue );
155 155
     }    
156 156
                 
Please login to merge, or discard this patch.
development/factory/_common/utility/debug/AdminPageFramework_Debug_Base.php 2 patches
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
      * @since       3.8.9
23 23
      * @return      string
24 24
      */
25
-    static protected function _getLegibleDetails( $mValue ) {                
26
-        if ( is_array( $mValue ) ) {            
25
+    static protected function _getLegibleDetails( $mValue ) {
26
+        if ( is_array( $mValue ) ) {
27 27
             return '(array, length: ' . count( $mValue ).') ' 
28 28
                 . print_r( self::_getLegibleArray( $mValue ) , true );
29 29
         }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
          * @return      mixed       A modified value.
263 263
          * @since       3.8.9
264 264
          */
265
-        static private function _getArrayMappedNested( $mItem ) {            
265
+        static private function _getArrayMappedNested( $mItem ) {
266 266
             return is_array( $mItem ) 
267 267
                 ? array_map( array( __CLASS__, '_getArrayMappedNested' ), $mItem ) 
268 268
                 : call_user_func( self::$_oCurrentCallableForArrayMapRecursive, $mItem );            
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
      */
27 27
     static protected function _getLegibleDetails( $mValue ) {                
28 28
         if ( is_array( $mValue ) ) {            
29
-            return '(array, length: ' . count( $mValue ).') ' 
30
-                . print_r( self::_getLegibleArray( $mValue ) , true );
29
+            return '(array, length: '.count( $mValue ).') ' 
30
+                . print_r( self::_getLegibleArray( $mValue ), true );
31 31
         }
32 32
         return print_r( self::_getLegibleValue( $mValue ), true );
33 33
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
          */
64 64
         static private function _getObjectName( $mItem ) {
65 65
             if ( is_object( $mItem ) ) {
66
-                return '(object) ' . get_class( $mItem );
66
+                return '(object) '.get_class( $mItem );
67 67
             }
68 68
             return $mItem;
69 69
         }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
          * @return      string
75 75
          */
76 76
         static private function _getLegibleCallable( $asoCallable ) {
77
-            return '(callable) ' . self::_getCallableName( $asoCallable );    
77
+            return '(callable) '.self::_getCallableName( $asoCallable );    
78 78
         }       
79 79
             /**
80 80
              * @since       3.8.9
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                     ? get_class( $asoCallable[ 0 ] )
94 94
                     : ( string ) $asoCallable[ 0 ];
95 95
 
96
-                return $_sSubject . '::' . ( string ) $asoCallable[ 1 ];
96
+                return $_sSubject.'::'.( string ) $asoCallable[ 1 ];
97 97
                 
98 98
             }
99 99
             
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
             if ( method_exists( $oObject, '__toString' ) ) {
108 108
                 return ( string ) $oObject;
109 109
             }
110
-            return '(object) ' . get_class( $oObject ) . ' ' 
111
-                . count( get_object_vars( $oObject ) ) . ' properties.';
110
+            return '(object) '.get_class( $oObject ).' ' 
111
+                . count( get_object_vars( $oObject ) ).' properties.';
112 112
             
113 113
         } 
114 114
         /**
@@ -146,12 +146,12 @@  discard block
 block discarded – undo
146 146
                         return '(null)';
147 147
                     }                    
148 148
                     if ( is_object( $mNonScalar ) ) {
149
-                        return '(' . $_sType . ') ' . get_class( $mNonScalar );
149
+                        return '('.$_sType.') '.get_class( $mNonScalar );
150 150
                     }
151 151
                     if ( is_array( $mNonScalar ) ) {
152
-                        return '(' . $_sType . ') ' . count( $mNonScalar ) . ' elements';
152
+                        return '('.$_sType.') '.count( $mNonScalar ).' elements';
153 153
                     }
154
-                    return '(' . $_sType . ') ' . ( string ) $mNonScalar;
154
+                    return '('.$_sType.') '.( string ) $mNonScalar;
155 155
                     
156 156
                 }
157 157
                 /**
@@ -161,11 +161,11 @@  discard block
 block discarded – undo
161 161
                  */
162 162
                 static private function _getLegibleScalar( $sScalar ) {
163 163
                     if ( is_bool( $sScalar ) ) {
164
-                        return '(boolean) ' . ( $sScalar ? 'true' : 'false' );
164
+                        return '(boolean) '.( $sScalar ? 'true' : 'false' );
165 165
                     }                 
166 166
                     return is_string( $sScalar )
167 167
                         ? self::_getLegibleString( $sScalar )
168
-                        : '(' . gettype( $sScalar ) . ', length: ' . self::_getValueLength( $sScalar ) .  ') ' . $sScalar;
168
+                        : '('.gettype( $sScalar ).', length: '.self::_getValueLength( $sScalar ).') '.$sScalar;
169 169
                 }
170 170
                     /**
171 171
                      * Returns a length of a value.
@@ -198,8 +198,8 @@  discard block
 block discarded – undo
198 198
                         $iCharLimit     = self::$iLegibleStringCharacterLimit;
199 199
                         $_iCharLength   = call_user_func_array( $_aStrLenMethod[ $_iMBSupport ], array( $sString ) );
200 200
                         return $_iCharLength <= $iCharLimit
201
-                            ? '(string, length: ' . $_iCharLength . ') ' . $sString
202
-                            : '(string, length: ' . $_iCharLength . ') ' . call_user_func_array( $_aSubstrMethod[ $_iMBSupport ], array( $sString, 0, $iCharLimit ) )
201
+                            ? '(string, length: '.$_iCharLength.') '.$sString
202
+                            : '(string, length: '.$_iCharLength.') '.call_user_func_array( $_aSubstrMethod[ $_iMBSupport ], array( $sString, 0, $iCharLimit ) )
203 203
                                 . '...';
204 204
                         
205 205
                     }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      * @return      array
243 243
      * @internal
244 244
      */
245
-    static private function _getSlicedByDepth( array $aSubject, $iDepth=0 ) {
245
+    static private function _getSlicedByDepth( array $aSubject, $iDepth = 0 ) {
246 246
 
247 247
         foreach ( $aSubject as $_sKey => $_vValue ) {
248 248
             if ( is_array( $_vValue ) ) {
Please login to merge, or discard this patch.