Completed
Branch master (b13b1d)
by Michael
19:31
created
include/class/boot/AdminPageFrameworkLoader_Bootstrap.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  * 
11 11
  */
12 12
 
13
-if ( ! class_exists( 'AdminPageFramework_PluginBootstrap' ) ) {
13
+if ( !class_exists( 'AdminPageFramework_PluginBootstrap' ) ) {
14 14
     return;
15 15
 }
16 16
  
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
         
32 32
         // Include the include lists. The including file reassigns the list(array) to the $_aClassFiles variable.
33 33
         $_aClassFiles   = array();
34
-        $_bLoaded       = include( dirname( $this->sFilePath ) . '/include/admin-page-framework-loader-include-class-file-list.php' );
35
-        if ( ! $_bLoaded ) {
34
+        $_bLoaded       = include( dirname( $this->sFilePath ).'/include/admin-page-framework-loader-include-class-file-list.php' );
35
+        if ( !$_bLoaded ) {
36 36
             return $_aClassFiles;
37 37
         }
38 38
         return $_aClassFiles;
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             if ( $_oRequirementCheck->check() ) {            
62 62
                 $_oRequirementCheck->deactivatePlugin( 
63 63
                     $this->sFilePath, 
64
-                    __( 'Deactivating the plugin', 'admin-page-framework-loader' ),  // additional message
64
+                    __( 'Deactivating the plugin', 'admin-page-framework-loader' ), // additional message
65 65
                     true    // is in the activation hook. This will exit the script.
66 66
                 );
67 67
             }        
@@ -76,20 +76,20 @@  discard block
 block discarded – undo
76 76
     public function setLocalization() {
77 77
         
78 78
         // This plugin does not have messages to be displayed in the front end.
79
-        if ( ! $this->bIsAdmin ) { 
79
+        if ( !$this->bIsAdmin ) { 
80 80
             return; 
81 81
         }
82 82
         
83 83
         load_plugin_textdomain( 
84 84
             AdminPageFrameworkLoader_Registry::TEXT_DOMAIN, 
85 85
             false, 
86
-            dirname( plugin_basename( $this->sFilePath ) ) . '/' . AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
86
+            dirname( plugin_basename( $this->sFilePath ) ).'/'.AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
87 87
         );
88 88
             
89 89
         load_plugin_textdomain( 
90 90
             'admin-page-framework', 
91 91
             false, 
92
-            dirname( plugin_basename( $this->sFilePath ) ) . '/' . AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
92
+            dirname( plugin_basename( $this->sFilePath ) ).'/'.AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
93 93
         );        
94 94
         
95 95
     }        
@@ -112,33 +112,33 @@  discard block
 block discarded – undo
112 112
             
113 113
             // Loader plugin admin pages.
114 114
             new AdminPageFrameworkLoader_AdminPage( 
115
-                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ],    // the option key
115
+                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ], // the option key
116 116
                 $this->sFilePath   // caller script path
117 117
             );
118 118
         
119 119
             new AdminPageFrameworkLoader_AdminPageMetaBox_Notification(
120
-                null,                                           // meta box id - passing null will make it auto generate
120
+                null, // meta box id - passing null will make it auto generate
121 121
                 __( 'Notification', 'admin-page-framework-loader' ), // title
122 122
                 array( // page slugs
123 123
                     AdminPageFrameworkLoader_Registry::$aAdminPages[ 'tool' ],
124 124
                     AdminPageFrameworkLoader_Registry::$aAdminPages[ 'addon' ],
125 125
                     AdminPageFrameworkLoader_Registry::$aAdminPages[ 'help' ],
126 126
                 ),
127
-                'side',                                       // context
127
+                'side', // context
128 128
                 'default'                                     // priority
129 129
             );       
130 130
             new AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks(
131
-                null,                                           // meta box id - passing null will make it auto generate
131
+                null, // meta box id - passing null will make it auto generate
132 132
                 __( 'Resources', 'admin-page-framework-loader' ), // title
133 133
                 array( // page slugs
134 134
                     AdminPageFrameworkLoader_Registry::$aAdminPages[ 'help' ],
135 135
                 ),
136
-                'side',                                       // context
136
+                'side', // context
137 137
                 'default'                                     // priority            
138 138
             );
139 139
             
140 140
             new AdminPageFrameworkLoader_NetworkAdmin(
141
-                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ],    // the option key
141
+                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ], // the option key
142 142
                 $this->sFilePath   // caller script path            
143 143
             );
144 144
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
          */
158 158
         private function _shouldShowAdminPages() {
159 159
             
160
-            if ( ! $this->bIsAdmin ) {
160
+            if ( !$this->bIsAdmin ) {
161 161
                 return false;
162 162
             }
163 163
             if ( defined( 'APFL_SILENT_MODE' ) && APFL_SILENT_MODE ) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                 AdminPageFrameworkLoader_Registry::NAME
59 59
             );
60 60
             
61
-            if ( $_oRequirementCheck->check() ) {            
61
+            if ( $_oRequirementCheck->check() ) {
62 62
                 $_oRequirementCheck->deactivatePlugin( 
63 63
                     $this->sFilePath, 
64 64
                     __( 'Deactivating the plugin', 'admin-page-framework-loader' ),  // additional message
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     public function setLocalization() {
77 77
         
78 78
         // This plugin does not have messages to be displayed in the front end.
79
-        if ( ! $this->bIsAdmin ) { 
79
+        if ( ! $this->bIsAdmin ) {
80 80
             return; 
81 81
         }
82 82
         
Please login to merge, or discard this patch.
include/class/boot/AdminPageFrameworkLoader_Option.php 2 patches
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
      * Stores the option values.
29 29
      */
30 30
     public $aOptions = array(
31
-        'welcomed'              => false,       // if the welcome screen is displayed, this will be true.
32
-        'enable_admin_pages'    => true,        // whether or not to enable the admin pages of the loader plugin.
31
+        'welcomed'              => false, // if the welcome screen is displayed, this will be true.
32
+        'enable_admin_pages'    => true, // whether or not to enable the admin pages of the loader plugin.
33 33
         'enable_demo'           => false,
34
-        'version_upgraded_from' => null,        // the version number that the user has upgraded from
35
-        'version_saved'         => null,        // represents the option version.
34
+        'version_upgraded_from' => null, // the version number that the user has upgraded from
35
+        'version_saved'         => null, // represents the option version.
36 36
     );
37 37
          
38 38
     /**
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
      * 
53 53
      * @since      3.5.0
54 54
      */
55
-    static public function getInstance( $sOptionKey='' ) {
55
+    static public function getInstance( $sOptionKey = '' ) {
56 56
         
57 57
         $sOptionKey = $sOptionKey 
58 58
             ? $sOptionKey
59
-            : AdminPageFrameworkLoader_Registry::$aOptionKeys['main'];
59
+            : AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ];
60 60
         
61 61
         if ( isset( self::$aInstances[ $sOptionKey ] ) ) {
62 62
             return self::$aInstances[ $sOptionKey ];
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function __construct( $sOptionKey ) {
75 75
         
76
-        $this->bIsNetworkAdmin  = is_network_admin();   // must be done first
76
+        $this->bIsNetworkAdmin  = is_network_admin(); // must be done first
77 77
         $this->sOptionKey       = $sOptionKey;
78 78
         $this->aOptions         = $this->_getFormattedOptions( $sOptionKey );
79 79
          
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function hasUpgraded() {
100 100
         
101
-        $_sOptionVersion  = $this->get( 'version_saved' );
102
-        if ( ! $_sOptionVersion ) {
101
+        $_sOptionVersion = $this->get( 'version_saved' );
102
+        if ( !$_sOptionVersion ) {
103 103
             return false;
104 104
         }
105 105
         $_sOptionVersion        = $this->_getVersionByDepth( $_sOptionVersion );
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
          * Returns a stating part of version by the given depth.
112 112
          * @since       3.5.0
113 113
          */
114
-        private function _getVersionByDepth( $sVersion, $iDepth=2 ) {
115
-            if ( ! $iDepth ) {
114
+        private function _getVersionByDepth( $sVersion, $iDepth = 2 ) {
115
+            if ( !$iDepth ) {
116 116
                 return $sVersion;
117 117
             }
118 118
             $_aParts = explode( '.', $sVersion );
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     /**
124 124
      * Deletes the option from the database.
125 125
      */
126
-    public function delete()  {
126
+    public function delete() {
127 127
         return $this->bIsNetworkAdmin
128 128
             ? delete_site_option( $this->sOptionKey )
129 129
             : delete_option( $this->sOptionKey );
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * Saves the options.
134 134
      */
135
-    public function save( $aOptions=null ) {
135
+    public function save( $aOptions = null ) {
136 136
 
137 137
         $_aOptions = $aOptions ? $aOptions : $this->aOptions;
138 138
         return $this->bIsNetworkAdmin
@@ -151,15 +151,15 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function set( /* $asKeys, $mValue */ ) {
153 153
         
154
-        $_aParameters   = func_get_args();
155
-        if ( ! isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) {
154
+        $_aParameters = func_get_args();
155
+        if ( !isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) {
156 156
             return;
157 157
         }
158 158
         $_asKeys        = $_aParameters[ 0 ];
159 159
         $_mValue        = $_aParameters[ 1 ];
160 160
         
161 161
         // string, integer, float, boolean
162
-        if ( ! is_array( $_asKeys ) ) {
162
+        if ( !is_array( $_asKeys ) ) {
163 163
             $this->aOptions[ $_asKeys ] = $_mValue;
164 164
             return;
165 165
         }
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public function update( /* $asKeys, $mValue */ ) {
176 176
         
177
-        $_aParameters   = func_get_args();
178
-        call_user_func_array( array( $this, 'set' ),  $_aParameters );
177
+        $_aParameters = func_get_args();
178
+        call_user_func_array( array( $this, 'set' ), $_aParameters );
179 179
         $this->save();
180 180
 
181 181
     }
@@ -189,11 +189,11 @@  discard block
 block discarded – undo
189 189
         
190 190
         $_mDefault  = null;
191 191
         $_aKeys     = func_get_args();
192
-        if ( ! isset( $_aKeys[ 0 ] ) ) {
192
+        if ( !isset( $_aKeys[ 0 ] ) ) {
193 193
             return null;
194 194
         }
195 195
         if ( is_array( $_aKeys[ 0 ] ) ) {
196
-            $_aKeys     =  $_aKeys[ 0 ];
196
+            $_aKeys     = $_aKeys[ 0 ];
197 197
             $_mDefault  = isset( $_aKeys[ 1 ] )
198 198
                 ? $_aKeys[ 1 ]
199 199
                 : null;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     /**
124 124
      * Deletes the option from the database.
125 125
      */
126
-    public function delete()  {
126
+    public function delete() {
127 127
         return $this->bIsNetworkAdmin
128 128
             ? delete_site_option( $this->sOptionKey )
129 129
             : delete_option( $this->sOptionKey );
Please login to merge, or discard this patch.
include/class/event/AdminPageFrameworkLoader_Event.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function __construct() {
25 25
         
26 26
         new AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion(
27
-            AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_action_get_development_version'  // action name
27
+            AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_action_get_development_version'  // action name
28 28
         );
29 29
                 
30 30
     }
Please login to merge, or discard this patch.
class/event/AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function replyToDoAction() {
41 41
         AdminPageFramework_WPUtility::setTransient(
42
-            AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX . 'devver',
42
+            AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX.'devver',
43 43
             $this->_getVersion(), // data - if an error occurs, an empty string will be given
44 44
             604800 // for one week
45 45
         );        
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $_sPageBody = $this->_getPageBody();
56 56
             $_aHeaders  = $_oUtil->getScriptData( 
57 57
                 $_sPageBody, 
58
-                '',  /// context
58
+                '', /// context
59 59
                 array( 'version' => 'Version' ) 
60 60
             );
61 61
             return $_oUtil->getElement(
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * 
27 27
      * @since       3.6.2
28 28
      */
29
-    public function __construct( $sActionName ) {  
29
+    public function __construct( $sActionName ) {
30 30
         add_action(
31 31
             $sActionName,
32 32
             array( $this, 'replyToDoAction' )
Please login to merge, or discard this patch.
include/class/utility/AdminPageFrameworkLoader_FeedList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * 
48 48
      * @return      array
49 49
      */
50
-    public function get( $iItems=0 ) {
50
+    public function get( $iItems = 0 ) {
51 51
         
52 52
         $_aOutput   = array();
53 53
         $_aURLs     = $this->_aURLs;
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             return $_aOutput;
57 57
         }
58 58
                                  
59
-        $_oFeed     = fetch_feed( $_aURLs );
59
+        $_oFeed = fetch_feed( $_aURLs );
60 60
         foreach ( $_oFeed->get_items() as $_oItem ) {
61 61
             $_aOutput[ $_oItem->get_title() ] = array( 
62 62
                 'content'        => $_oItem->get_content(),
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                 'title'          => $_oItem->get_title(),
65 65
                 'date'           => $_oItem->get_date( 'j F Y, g:i a' ),
66 66
                 'author'         => $_oItem->get_author(),
67
-                'link'           => $_oItem->get_permalink(),    // get_link() may be used as well        
67
+                'link'           => $_oItem->get_permalink(), // get_link() may be used as well        
68 68
             );
69 69
         }
70 70
 
Please login to merge, or discard this patch.
uninstall.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
  */
31 31
 $_sMaingPluginFileName  = 'admin-page-framework-loader.php';
32 32
 if ( file_exists( dirname( __FILE__ ). '/' . $_sMaingPluginFileName ) ) {
33
-   include( $_sMaingPluginFileName );
33
+    include( $_sMaingPluginFileName );
34 34
 }
35 35
 
36 36
 if ( class_exists( 'AdminPageFrameworkLoader_Registry' ) ) :
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@  discard block
 block discarded – undo
9 9
  * @since        3.5.0
10 10
  */
11 11
 
12
-if ( ! defined( 'ABSPATH' ) ) {
12
+if ( !defined( 'ABSPATH' ) ) {
13 13
     exit;
14 14
 }
15
-if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
15
+if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
16 16
     exit;
17 17
 }
18 18
 
@@ -21,15 +21,15 @@  discard block
 block discarded – undo
21 21
  * We are going to load the main file to get the registry class. And in the main file, 
22 22
  * if this constant is set, it will return after declaring the registry class.
23 23
  **/
24
-if ( ! defined( 'DOING_UNINSTALL' ) ) {
25
-    define( 'DOING_UNINSTALL', true  );
24
+if ( !defined( 'DOING_UNINSTALL' ) ) {
25
+    define( 'DOING_UNINSTALL', true );
26 26
 }
27 27
 
28 28
 /**
29 29
  * Set the main plugin file name here.
30 30
  */
31
-$_sMaingPluginFileName  = 'admin-page-framework-loader.php';
32
-if ( file_exists( dirname( __FILE__ ). '/' . $_sMaingPluginFileName ) ) {
31
+$_sMaingPluginFileName = 'admin-page-framework-loader.php';
32
+if ( file_exists( dirname( __FILE__ ).'/'.$_sMaingPluginFileName ) ) {
33 33
    include( $_sMaingPluginFileName );
34 34
 }
35 35
 
@@ -41,12 +41,12 @@  discard block
 block discarded – undo
41 41
     // Delete transients
42 42
     $_aPrefixes = array(
43 43
         AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX, // the plugin transients
44
-        'apf_',      // the admin page framework transients
44
+        'apf_', // the admin page framework transients
45 45
     );
46
-    foreach( $_aPrefixes as $_sPrefix ) {
47
-        if ( ! $_sPrefix ) { continue; }
48
-        $GLOBALS['wpdb']->query( "DELETE FROM `" . $GLOBALS['table_prefix'] . "options` WHERE `option_name` LIKE ( '_transient_%{$_sPrefix}%' )" );
49
-        $GLOBALS['wpdb']->query( "DELETE FROM `" . $GLOBALS['table_prefix'] . "options` WHERE `option_name` LIKE ( '_transient_timeout_%{$_sPrefix}%' )" );    
46
+    foreach ( $_aPrefixes as $_sPrefix ) {
47
+        if ( !$_sPrefix ) { continue; }
48
+        $GLOBALS[ 'wpdb' ]->query( "DELETE FROM `".$GLOBALS[ 'table_prefix' ]."options` WHERE `option_name` LIKE ( '_transient_%{$_sPrefix}%' )" );
49
+        $GLOBALS[ 'wpdb' ]->query( "DELETE FROM `".$GLOBALS[ 'table_prefix' ]."options` WHERE `option_name` LIKE ( '_transient_timeout_%{$_sPrefix}%' )" );    
50 50
     }
51 51
     
52 52
 endif;
53 53
\ No newline at end of file
Please login to merge, or discard this patch.
development/factory/_abstract/AdminPageFramework_Factory_Model.php 3 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -299,8 +299,6 @@
 block discarded – undo
299 299
      * @since       DEVVER      Changed back the visibility scope to protected as there is the `getFieldErrors()` public method.
300 300
      * @access      protected
301 301
      * @internal
302
-     * @param       string      $sID        deprecated
303
-     * @param       boolean     $bDelete    whether or not the transient should be deleted after retrieving it. 
304 302
      * @return      array
305 303
      * @deprecated  DEVVER      Use `getFieldErrors()` instead. Kept for backward compatibility.
306 304
      */
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             'title'      => null,
65 65
             'help_aside' => null,
66 66
         );
67
-        if ( ! $aFieldset[ 'help' ] ) {
67
+        if ( !$aFieldset[ 'help' ] ) {
68 68
             return;
69 69
         }
70 70
         $this->oHelpPane->_addHelpTextForFormFields( 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     public function _replyToModifySectionsets( $aSectionsets ) {    
102 102
         
103 103
         return $this->oUtil->addAndApplyFilter( 
104
-            $this,  // caller factory object
104
+            $this, // caller factory object
105 105
             "sections_{$this->oProp->sClassName}", 
106 106
             $aSectionsets
107 107
         );
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     public function _replyToModifyFieldsets( $aFieldsets, $aSectionsets ) {
122 122
 
123 123
         // Apply filters to added fieldsets
124
-        foreach( $aFieldsets as $_sSectionPath => $_aFields ) {
124
+        foreach ( $aFieldsets as $_sSectionPath => $_aFields ) {
125 125
             $_aSectionPath  = explode( '|', $_sSectionPath );
126 126
             $_sFilterSuffix = implode( '_', $_aSectionPath );
127 127
             $aFieldsets[ $_sSectionPath ] = $this->oUtil->addAndApplyFilter(
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                 $_aFields
131 131
             ); 
132 132
         }
133
-        $aFieldsets =  $this->oUtil->addAndApplyFilter( 
133
+        $aFieldsets = $this->oUtil->addAndApplyFilter( 
134 134
             $this,
135 135
             "fields_{$this->oProp->sClassName}",
136 136
             $aFieldsets
@@ -170,12 +170,12 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function _replyToModifyFieldsetDefinition( $aFieldset /*, $aSectionsets */ ) {
172 172
         
173
-        $_sFieldPart    = '_' . implode( '_', $aFieldset[ '_field_path_array' ] );
173
+        $_sFieldPart    = '_'.implode( '_', $aFieldset[ '_field_path_array' ] );
174 174
         $_sSectionPart  = implode( '_', $aFieldset[ '_section_path_array' ] );
175 175
         $_sSectionPart  = $this->oUtil->getAOrB(
176 176
             '_default' === $_sSectionPart,
177 177
             '',
178
-            '_' . $_sSectionPart
178
+            '_'.$_sSectionPart
179 179
         );
180 180
         return $this->oUtil->addAndApplyFilter(
181 181
             $this,
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     public function _replyToGetSavedFormData() {
258 258
         return $this->oUtil->addAndApplyFilter(
259 259
             $this, // the caller factory object
260
-            'options_' . $this->oProp->sClassName,
260
+            'options_'.$this->oProp->sClassName,
261 261
             $this->oProp->aOptions      // subject value to be filtered
262 262
         );
263 263
     }
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
          * An alias of `_setLastInputs()`.
335 335
          * @deprecated      DEVVER
336 336
          */
337
-        public function _setLastInput( $aLastInputs )  {
337
+        public function _setLastInput( $aLastInputs ) {
338 338
             return $this->setLastInputs( $aLastInputs );
339 339
         }    
340 340
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * but it requires to call the setUp() method in the overridden method so it's not that useful.
46 46
      * @internal
47 47
      */
48
-    protected function _setUp() { 
48
+    protected function _setUp() {
49 49
         $this->setUp();
50 50
     }    
51 51
     
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @since       DEVVER
99 99
      * @return      array       The modified sectionsets definition array.
100 100
      */    
101
-    public function _replyToModifySectionsets( $aSectionsets ) {    
101
+    public function _replyToModifySectionsets( $aSectionsets ) {
102 102
         
103 103
         return $this->oUtil->addAndApplyFilter( 
104 104
             $this,  // caller factory object
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function _replyToFormatFieldsetDefinition( $aFieldset, $aSectionsets ) {
203 203
 
204
-        if ( empty( $aFieldset ) ) { 
204
+        if ( empty( $aFieldset ) ) {
205 205
             return $aFieldset; 
206 206
         }
207 207
         return $aFieldset;
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
          * An alias of `_setLastInputs()`.
335 335
          * @deprecated      DEVVER
336 336
          */
337
-        public function _setLastInput( $aLastInputs )  {
337
+        public function _setLastInput( $aLastInputs ) {
338 338
             return $this->setLastInputs( $aLastInputs );
339 339
         }    
340 340
 
Please login to merge, or discard this patch.
development/factory/_abstract/form/AdminPageFramework_Form_Model.php 4 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -391,7 +391,6 @@  discard block
 block discarded – undo
391 391
      * 
392 392
      * @since       DEVVER
393 393
      * @param       array       $aSavedData
394
-     * @param       boolean     $bOnlyFieldsets     Whether to format only the fieldsets. The taxonomy field factory uses this parameter.
395 394
      */
396 395
     protected function _formatElementDefinitions( array $aSavedData ) {
397 396
                 
@@ -427,7 +426,6 @@  discard block
 block discarded – undo
427 426
      * Changed the name from `_getFieldErrors()`. 
428 427
      * @access      public      The field type class accesses this method to render nested fields.
429 428
      * @internal
430
-     * @param       boolean     $bDelete    whether or not the transient should be deleted after retrieving it. 
431 429
      * @return      array
432 430
      */
433 431
     public function getFieldErrors() {
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
      * @since       DEVVER
44 44
      * @return      array
45 45
      */
46
-    public function getSubmittedData( array $aDataToParse, $bExtractFromFieldStructure=true, $bStripSlashes=true ) {
46
+    public function getSubmittedData( array $aDataToParse, $bExtractFromFieldStructure = true, $bStripSlashes = true ) {
47 47
                 
48 48
         // Extracts the form data from the subject data for parsing
49
-        $_aSubmittedFormData    = $bExtractFromFieldStructure
49
+        $_aSubmittedFormData = $bExtractFromFieldStructure
50 50
             ? $this->castArrayContents( 
51 51
                 $this->getDataStructureFromAddedFieldsets(), // form data (options) structure
52 52
                 $aDataToParse   // the subject data array, usually $_POST.
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             : $aDataToParse;
55 55
 
56 56
         // 3.6.0 - sorts dynamic eleemnts.        
57
-        $_aSubmittedFormData    = $this->getSortedInputs( $_aSubmittedFormData ); 
57
+        $_aSubmittedFormData = $this->getSortedInputs( $_aSubmittedFormData ); 
58 58
         
59 59
         return $bStripSlashes
60 60
             ? stripslashes_deep( $_aSubmittedFormData ) // fixes magic quotes
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
             array_merge(
80 80
                 $this->getElementAsArray( 
81 81
                     $_POST,
82
-                    '__repeatable_elements_' . $this->aArguments[ 'structure_type' ],
82
+                    '__repeatable_elements_'.$this->aArguments[ 'structure_type' ],
83 83
                     array()
84 84
                 ),
85 85
                 $this->getElementAsArray( 
86 86
                     $_POST,
87
-                    '__sortable_elements_' . $this->aArguments[ 'structure_type' ],
87
+                    '__sortable_elements_'.$this->aArguments[ 'structure_type' ],
88 88
                     array()
89 89
                 )
90 90
             )
@@ -147,9 +147,9 @@  discard block
 block discarded – undo
147 147
      * Changed the name from `getFieldsModel()`.
148 148
      * @return      array
149 149
      */
150
-    public function getDataStructureFromAddedFieldsets()  {
150
+    public function getDataStructureFromAddedFieldsets() {
151 151
                     
152
-        $_aFormDataStructure  = array();
152
+        $_aFormDataStructure = array();
153 153
         foreach ( $this->getAsArray( $this->aFieldsets ) as $_sSectionID => $_aFieldsets ) {
154 154
 
155 155
             if ( $_sSectionID != '_default' ) {                
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             }
159 159
             
160 160
             // For default field items.
161
-            foreach( $_aFieldsets as $_sFieldID => $_aFieldset ) {
161
+            foreach ( $_aFieldsets as $_sFieldID => $_aFieldset ) {
162 162
                 $_aFormDataStructure[ $_aFieldset[ 'field_id' ] ] = $_aFieldset;
163 163
             }
164 164
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             $aSubject,
191 191
             $this->getElementAsArray(
192 192
                 $_POST,
193
-                '__repeatable_elements_' . $this->aArguments[ 'structure_type' ]
193
+                '__repeatable_elements_'.$this->aArguments[ 'structure_type' ]
194 194
             )
195 195
         );
196 196
         return $_oFilterRepeatableElements->get();
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     public function _replyToRegisterFormItems( /* $oScreen */ ) {
204 204
 
205 205
         // Check if the form should be created or not.
206
-        if ( ! $this->isInThePage() ) {
206
+        if ( !$this->isInThePage() ) {
207 207
             return;
208 208
         }
209 209
                 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
             $this->aArguments,
237 237
             $this->aFieldsets,
238 238
             self::$_aResources,
239
-            $this->aFieldTypeDefinitions,   // must be called after performing `_setFieldTypeDefinitions()`.
239
+            $this->aFieldTypeDefinitions, // must be called after performing `_setFieldTypeDefinitions()`.
240 240
             $this->aCallbacks
241 241
         );
242 242
         self::$_aResources = $_oFieldResources->get(); // updates the property
@@ -253,10 +253,10 @@  discard block
 block discarded – undo
253 253
         $this->callBack(
254 254
             $this->aCallbacks[ 'handle_form_data' ],
255 255
             array(
256
-                $this->aSavedData,      // 1st parameter
257
-                $this->aArguments,      // 2nd parameter
258
-                $this->aSectionsets,    // 3rd parameter
259
-                $this->aFieldsets,      // 4th parameter
256
+                $this->aSavedData, // 1st parameter
257
+                $this->aArguments, // 2nd parameter
258
+                $this->aSectionsets, // 3rd parameter
259
+                $this->aFieldsets, // 4th parameter
260 260
             )
261 261
         );        
262 262
 
@@ -270,15 +270,15 @@  discard block
 block discarded – undo
270 270
             $this->aSectionsets = $this->callBack(
271 271
                 $this->aCallbacks[ 'secitonsets_before_registration' ],
272 272
                 array(
273
-                    $this->aSectionsets,    // 1st parameter
273
+                    $this->aSectionsets, // 1st parameter
274 274
                 )
275 275
             );
276 276
             // Let the main routine modify the fieldsets definition array.
277 277
             $this->aFieldsets = $this->callBack(
278 278
                 $this->aCallbacks[ 'fieldsets_before_registration' ],
279 279
                 array(
280
-                    $this->aFieldsets,    // 1st parameter
281
-                    $this->aSectionsets,  // 2nd parameter
280
+                    $this->aFieldsets, // 1st parameter
281
+                    $this->aSectionsets, // 2nd parameter
282 282
                 )
283 283
             );
284 284
 
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
              */
366 366
             private function _getLastInputs() {
367 367
                 
368
-                $_sKey      = 'apf_tfd' . md5( 'temporary_form_data_' . $this->aArguments[ 'caller_id' ] . get_current_user_id() );
368
+                $_sKey      = 'apf_tfd'.md5( 'temporary_form_data_'.$this->aArguments[ 'caller_id' ].get_current_user_id() );
369 369
                 $_vValue    = $this->getTransient( $_sKey );
370 370
                 $this->deleteTransient( $_sKey );
371 371
                 if ( is_array( $_vValue ) ) {
@@ -457,9 +457,9 @@  discard block
 block discarded – undo
457 457
      */
458 458
     public function setLastInputs( array $aLastInputs ) {
459 459
         return $this->setTransient( 
460
-            'apf_tfd' . md5( 'temporary_form_data_' . $this->aArguments[ 'caller_id' ] . get_current_user_id() ),
460
+            'apf_tfd'.md5( 'temporary_form_data_'.$this->aArguments[ 'caller_id' ].get_current_user_id() ),
461 461
             $aLastInputs, 
462
-            60*60 
462
+            60 * 60 
463 463
         );
464 464
     }  
465 465
   
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 array( $this, '_replyToRegisterFormItems' ),
30 30
                 100 // priority - low value is set as meta boxes use the `current_screen` action hook for `setUp()`.
31 31
             );
32
-        } else {                
32
+        } else {
33 33
             add_action(
34 34
                 $this->aArguments[ 'action_hook_form_registration' ],
35 35
                 array( $this, '_replyToRegisterFormItems' )
@@ -147,12 +147,12 @@  discard block
 block discarded – undo
147 147
      * Changed the name from `getFieldsModel()`.
148 148
      * @return      array
149 149
      */
150
-    public function getDataStructureFromAddedFieldsets()  {
150
+    public function getDataStructureFromAddedFieldsets() {
151 151
                     
152 152
         $_aFormDataStructure  = array();
153 153
         foreach ( $this->getAsArray( $this->aFieldsets ) as $_sSectionID => $_aFieldsets ) {
154 154
 
155
-            if ( $_sSectionID != '_default' ) {                
155
+            if ( $_sSectionID != '_default' ) {
156 156
                 $_aFormDataStructure[ $_sSectionID ] = $_aFieldsets;
157 157
                 continue;
158 158
             }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      * @param       array       $aSubject       The subject array to modify. Usually the saved option data.
186 186
      * @return      array       The modified options array.
187 187
      */
188
-    public function dropRepeatableElements( array $aSubject ) {        
188
+    public function dropRepeatableElements( array $aSubject ) {
189 189
         $_oFilterRepeatableElements = new AdminPageFramework_Form_Model___Modifier_FilterRepeatableElements( 
190 190
             $aSubject,
191 191
             $this->getElementAsArray(
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.
factory/_abstract/form/errors/AdminPageFramework_Form___FieldError.php 3 patches
Doc Comments   -5 removed lines patch added patch discarded remove patch
@@ -60,10 +60,6 @@  discard block
 block discarded – undo
60 60
      * `
61 61
      * @since        DEVVER
62 62
      * @access       public
63
-     * @param        string      $sMessage       the text message to be displayed.
64
-     * @param        string      $sType          (optional) the type of the message, either "error" or "updated"  is used.
65
-     * @param        array       $asAttributes   (optional) the tag attribute array applied to the message container HTML element. If a string is given, it is used as the ID attribute value.
66
-     * @param        boolean     $bOverride      (optional) If true, only one message will be shown in the next page load. false: do not override when there is a message of the same id. true: override the previous one.
67 63
      * @return       void
68 64
      */
69 65
     public function set( $aErrors ) {
@@ -107,7 +103,6 @@  discard block
 block discarded – undo
107 103
      * Retrieves the settings error array set by the user in the validation callback.
108 104
      * 
109 105
      * @since       DEVVER
110
-     * @param       boolean     $bDelete    whether or not the transient should be deleted after retrieving it. 
111 106
      * @return      array
112 107
      */
113 108
     public function get() {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
          * @return      void
92 92
          */ 
93 93
         public function _replyToSaveFieldErrors() {
94
-            if ( ! isset( self::$_aErrors ) ) { 
94
+            if ( !isset( self::$_aErrors ) ) { 
95 95
                 return; 
96 96
             }
97 97
             $this->setTransient( 
98
-                "apf_field_erros_" . get_current_user_id(),  
98
+                "apf_field_erros_".get_current_user_id(),  
99 99
                 self::$_aErrors, 
100 100
                 300     // store it for 5 minutes ( 60 seconds * 5 )
101 101
             );    
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         static $_aFieldErrors;
116 116
         
117 117
         // Find the transient.
118
-        $_sTransientKey = "apf_field_erros_" . get_current_user_id();
118
+        $_sTransientKey = "apf_field_erros_".get_current_user_id();
119 119
         $_sID           = md5( $this->sCallerID );
120 120
         
121 121
         $_aFieldErrors  = isset( $_aFieldErrors ) 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
          * @internal
146 146
          */
147 147
         public function _replyToDeleteFieldErrors() {
148
-            $this->deleteTransient( "apf_field_erros_" . get_current_user_id() );
148
+            $this->deleteTransient( "apf_field_erros_".get_current_user_id() );
149 149
         }                
150 150
         
151 151
 }
152 152
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
          * @return      void
92 92
          */ 
93 93
         public function _replyToSaveFieldErrors() {
94
-            if ( ! isset( self::$_aErrors ) ) { 
94
+            if ( ! isset( self::$_aErrors ) ) {
95 95
                 return; 
96 96
             }
97 97
             $this->setTransient( 
Please login to merge, or discard this patch.