Completed
Branch dev (43e9e0)
by
unknown
06:03
created
development/factory/_abstract/_model/AdminPageFramework_Format_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $_aParameters = func_get_args() + array( 
36 36
             $this->aSubject, 
37 37
         );
38
-        $this->aSubject  = $_aParameters[ 0 ];        
38
+        $this->aSubject = $_aParameters[ 0 ];        
39 39
         
40 40
     }
41 41
     
Please login to merge, or discard this patch.
factory/_abstract/_model/AdminPageFramework_InclusionClassFilesHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  * If accessed from a console, include the registry class to laod 'AdminPageFramework_Registry_Base'.
12 12
  */
13 13
 if ( php_sapi_name() === 'cli' ) {
14
-    $_sFrameworkFilePath = dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/admin-page-framework.php';
14
+    $_sFrameworkFilePath = dirname( dirname( dirname( dirname( __FILE__ ) ) ) ).'/admin-page-framework.php';
15 15
     if ( file_exists( $_sFrameworkFilePath ) ) {
16 16
         include_once( $_sFrameworkFilePath );
17 17
     }
Please login to merge, or discard this patch.
development/factory/_abstract/_model/AdminPageFramework_Message.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
         'confirm_perform_task'                  => 'Please confirm your action.', 
83 83
         'specified_option_been_deleted'         => 'The specified options have been deleted.', 
84 84
         'nonce_verification_failed'             => 'A problem occurred while processing the form data. Please try again.', 
85
-        'check_max_input_vars'                  => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s',  // 3.5.11+
86
-        'send_email'                            => 'Is it okay to send the email?',     // 3.3.0+
87
-        'email_sent'                            => 'The email has been sent.',  // 3.3.0+, 3.3.5+ deprecated 
85
+        'check_max_input_vars'                  => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s', // 3.5.11+
86
+        'send_email'                            => 'Is it okay to send the email?', // 3.3.0+
87
+        'email_sent'                            => 'The email has been sent.', // 3.3.0+, 3.3.5+ deprecated 
88 88
         'email_scheduled'                       => 'The email has been scheduled.', // 3.3.5+
89
-        'email_could_not_send'                  => 'There was a problem sending the email',     // 3.3.0+
89
+        'email_could_not_send'                  => 'There was a problem sending the email', // 3.3.0+
90 90
         
91 91
         // AdminPageFramework_PostType
92 92
         'title'                                 => 'Title',     
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
         'upload_file'                           => 'Upload File', 
113 113
         'use_this_file'                         => 'Use This File', 
114 114
         'select_file'                           => 'Select File', 
115
-        'remove_value'                          => 'Remove Value',  // 3.2.0+
116
-        'select_all'                            => 'Select All',    // 3.3.0+
117
-        'select_none'                           => 'Select None',   // 3.3.0+                       
115
+        'remove_value'                          => 'Remove Value', // 3.2.0+
116
+        'select_all'                            => 'Select All', // 3.3.0+
117
+        'select_none'                           => 'Select None', // 3.3.0+                       
118 118
         'no_term_found'                         => 'No term found.', // 3.3.2+
119 119
 
120 120
         // AdminPageFramework_Form_View___Script_{...}
121 121
         'select'                                => 'Select', // 3.4.2+             
122
-        'insert'                                => 'Insert',  // 3.4.2+
122
+        'insert'                                => 'Insert', // 3.4.2+
123 123
         'use_this'                              => 'Use This', // 3.4.2+
124 124
         'return_to_library'                     => 'Return to Library', // 3.4.2+
125 125
             
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      * @since       3.2.0       Changed it to create an instance per text domain basis.
191 191
      * @remark      This class should be instantiated via this method.
192 192
      */
193
-    public static function getInstance( $sTextDomain='admin-page-framework' ) {
193
+    public static function getInstance( $sTextDomain = 'admin-page-framework' ) {
194 194
         
195 195
         $_oInstance = isset( self::$_aInstancesByTextDomain[ $sTextDomain ] ) && ( self::$_aInstancesByTextDomain[ $sTextDomain ] instanceof AdminPageFramework_Message )
196 196
             ? self::$_aInstancesByTextDomain[ $sTextDomain ]
@@ -203,21 +203,21 @@  discard block
 block discarded – undo
203 203
          * Ensures that only one instance of this class object exists. ( no multiple instances of this object ) 
204 204
          * @deprecated  3.2.0
205 205
          */
206
-        public static function instantiate( $sTextDomain='admin-page-framework' ) {
206
+        public static function instantiate( $sTextDomain = 'admin-page-framework' ) {
207 207
             return self::getInstance( $sTextDomain );
208 208
         }
209 209
         
210 210
     /**
211 211
      * Sets up properties.
212 212
      */
213
-    public function __construct( $sTextDomain='admin-page-framework' ) {
213
+    public function __construct( $sTextDomain = 'admin-page-framework' ) {
214 214
         
215 215
         $this->_sTextDomain = $sTextDomain;  
216 216
         
217 217
         // Fill the $aMessages property with the keys extracted from the $aDefaults property
218 218
         // with the value of null.  The null is set to let it trigger the __get() method 
219 219
         // so that each translation item gets processed individually.
220
-        $this->aMessages    = array_fill_keys( 
220
+        $this->aMessages = array_fill_keys( 
221 221
             array_keys( $this->aDefaults ),
222 222
             null        
223 223
         );
Please login to merge, or discard this patch.
factory/_abstract/_model/AdminPageFramework_MinifiedVersionHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  * If accessed from a console, include the registry class to laod 'AdminPageFramework_Registry_Base'.
12 12
  */
13 13
 if ( php_sapi_name() === 'cli' ) {
14
-    $_sFrameworkFilePath = dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/admin-page-framework.php';
14
+    $_sFrameworkFilePath = dirname( dirname( dirname( dirname( __FILE__ ) ) ) ).'/admin-page-framework.php';
15 15
     if ( file_exists( $_sFrameworkFilePath ) ) {
16 16
         include_once( $_sFrameworkFilePath );
17 17
     }
Please login to merge, or discard this patch.
development/factory/_abstract/_model/AdminPageFramework_Property_Base.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      * @deprecated  3.2.0
147 147
      * @internal    
148 148
      */
149
-    public static $_sDefaultStyle ="";    
149
+    public static $_sDefaultStyle = "";    
150 150
         
151 151
     /**
152 152
      * The default CSS rules for IE loaded in the head tag of the created admin pages.
@@ -331,13 +331,13 @@  discard block
 block discarded – undo
331 331
      */
332 332
     public $aFormCallbacks = array(
333 333
     
334
-        'hfID'              => null,    // the input id attribute
335
-        'hfTagID'           => null,    // the field container id attribute
336
-        'hfName'            => null,    // the field name attribute
337
-        'hfNameFlat'        => null,    // the flat field name attribute
338
-        'hfInputName'       => null,    // 3.6.0+   the field input name attribute
339
-        'hfInputNameFlat'   => null,    // 3.6.0+   the flat field input name 
340
-        'hfClass'           => null,    // the class attribute       
334
+        'hfID'              => null, // the input id attribute
335
+        'hfTagID'           => null, // the field container id attribute
336
+        'hfName'            => null, // the field name attribute
337
+        'hfNameFlat'        => null, // the flat field name attribute
338
+        'hfInputName'       => null, // 3.6.0+   the field input name attribute
339
+        'hfInputNameFlat'   => null, // 3.6.0+   the flat field input name 
340
+        'hfClass'           => null, // the class attribute       
341 341
     );
342 342
               
343 343
     /**
@@ -358,12 +358,12 @@  discard block
 block discarded – undo
358 358
             'manage_options',
359 359
             $sCapability
360 360
         );
361
-        $this->sTextDomain      = $this->getAOrB(
361
+        $this->sTextDomain = $this->getAOrB(
362 362
             empty( $sTextDomain ),
363 363
             'admin-page-framework',
364 364
             $sTextDomain
365 365
         );
366
-        $this->sStructureType      = $sStructureType;
366
+        $this->sStructureType = $sStructureType;
367 367
         
368 368
         $GLOBALS[ 'aAdminPageFramework' ] = $this->getElementAsArray(
369 369
             $GLOBALS,
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
            
378 378
         $this->aFormArguments = array(
379 379
             'caller_id'                         => $this->sClassName,
380
-            'structure_type'                    => $this->_sPropertyType,  // @todo change this to admin_page
380
+            'structure_type'                    => $this->_sPropertyType, // @todo change this to admin_page
381 381
             'action_hook_form_registration'     => $this->_sFormRegistrationHook,
382 382
         ) + $this->aFormArguments;
383 383
            
@@ -413,8 +413,8 @@  discard block
 block discarded – undo
413 413
             'hfTagID'                           => array( $oCaller, '_replyToGetInputTagIDAttribute' ), // the fields & fieldset & field row container id attribute
414 414
             'hfName'                            => array( $oCaller, '_replyToGetFieldNameAttribute' ), // the input name attribute
415 415
             'hfNameFlat'                        => array( $oCaller, '_replyToGetFlatFieldName' ), // the flat input name attribute
416
-            'hfInputName'                       => array( $oCaller, '_replyToGetInputNameAttribute' ),    // 3.6.0+   the field input name attribute
417
-            'hfInputNameFlat'                   => array( $oCaller, '_replyToGetFlatInputName' ),    // 3.6.0+   the flat field input name                 
416
+            'hfInputName'                       => array( $oCaller, '_replyToGetInputNameAttribute' ), // 3.6.0+   the field input name attribute
417
+            'hfInputNameFlat'                   => array( $oCaller, '_replyToGetFlatInputName' ), // 3.6.0+   the flat field input name                 
418 418
             'hfClass'                           => array( $oCaller, '_replyToGetInputClassAttribute' ), // the class attribute
419 419
             'hfSectionName'                     => array( $oCaller, '_replyToGetSectionName' ), // 3.6.0+            
420 420
         ) + $this->aFormCallbacks;
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
          * @since       DEVVER
428 428
          */
429 429
         private function _setDeprecated() {
430
-            $this->oUtil            = new AdminPageFramework_WPUtility;
430
+            $this->oUtil = new AdminPageFramework_WPUtility;
431 431
         }
432 432
         
433 433
     /**
@@ -496,19 +496,19 @@  discard block
 block discarded – undo
496 496
      * @remark      The information can be used to embed into the footer etc.
497 497
      * @return      array       The information of the script.
498 498
      */  
499
-    protected function getCallerInfo( $sCallerPath=null ) {
499
+    protected function getCallerInfo( $sCallerPath = null ) {
500 500
         
501 501
         $_aCallerInfo          = self::$_aStructure_CallerInfo;
502
-        $_aCallerInfo['sPath'] = $sCallerPath;
503
-        $_aCallerInfo['sType'] = $this->_getCallerType( $_aCallerInfo['sPath'] );
502
+        $_aCallerInfo[ 'sPath' ] = $sCallerPath;
503
+        $_aCallerInfo[ 'sType' ] = $this->_getCallerType( $_aCallerInfo[ 'sPath' ] );
504 504
 
505
-        if ( 'unknown' == $_aCallerInfo['sType'] ) {
505
+        if ( 'unknown' == $_aCallerInfo[ 'sType' ] ) {
506 506
             return $_aCallerInfo;
507 507
         }
508
-        if ( 'plugin' == $_aCallerInfo['sType'] ) {
509
-            return $this->getScriptData( $_aCallerInfo['sPath'], $_aCallerInfo['sType'] ) + $_aCallerInfo;
508
+        if ( 'plugin' == $_aCallerInfo[ 'sType' ] ) {
509
+            return $this->getScriptData( $_aCallerInfo[ 'sPath' ], $_aCallerInfo[ 'sType' ] ) + $_aCallerInfo;
510 510
         }
511
-        if ( 'theme' == $_aCallerInfo['sType'] ) {
511
+        if ( 'theme' == $_aCallerInfo[ 'sType' ] ) {
512 512
             $_oTheme = wp_get_theme(); // stores the theme info object
513 513
             return array(
514 514
                 'sName'         => $_oTheme->Name,
Please login to merge, or discard this patch.
development/factory/_abstract/_view/AdminPageFramework_CSS.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@
 block discarded – undo
107 107
 }
108 108
 CSSRULES;
109 109
 
110
-        return $_sCSS . PHP_EOL
111
-            . self::_getPageLoadStatsRules() . PHP_EOL
110
+        return $_sCSS.PHP_EOL
111
+            . self::_getPageLoadStatsRules().PHP_EOL
112 112
             . self::_getVersionSpecificRules();
113 113
             
114 114
     }
Please login to merge, or discard this patch.
factory/_abstract/_view/AdminPageFramework_Factory_View__SettingNotice.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function _replyToPrintSettingNotice() {
49 49
             
50
-        if ( ! $this->_shouldProceed() ) {
50
+        if ( !$this->_shouldProceed() ) {
51 51
             return;
52 52
         }
53 53
         $this->oFactory->oForm->printSubmitNotices();
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
          */
62 62
         private function _shouldProceed() {
63 63
             
64
-            if ( ! $this->oFactory->_isInThePage() ) { 
64
+            if ( !$this->oFactory->_isInThePage() ) { 
65 65
                 return false; 
66 66
             }
67 67
                 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,12 +61,12 @@
 block discarded – undo
61 61
          */
62 62
         private function _shouldProceed() {
63 63
             
64
-            if ( ! $this->oFactory->_isInThePage() ) { 
64
+            if ( ! $this->oFactory->_isInThePage() ) {
65 65
                 return false; 
66 66
             }
67 67
                 
68 68
             // Ensure this method is called only once per a page load.
69
-            if ( self::$_bSettingNoticeLoaded ) { 
69
+            if ( self::$_bSettingNoticeLoaded ) {
70 70
                 return false;
71 71
             }
72 72
             self::$_bSettingNoticeLoaded = true;
Please login to merge, or discard this patch.
factory/_abstract/_view/AdminPageFramework_Factory___Script_Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * 
37 37
      * @since       3.3.0
38 38
      */
39
-    public function __construct( $oMsg=null ) {
39
+    public function __construct( $oMsg = null ) {
40 40
         
41 41
         $_sClassName = get_class( $this );
42 42
         if ( in_array( $_sClassName, self::$_aEnqueued ) ) {
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function _replyToPrintScript() {
76 76
         $_sScript = $this->getScript( $this->oMsg );
77
-        if ( ! $_sScript ) {
77
+        if ( !$_sScript ) {
78 78
             return;
79 79
         }
80
-        echo "<script type='text/javascript' class='" . strtolower( get_class( $this ) ) . "'>"
80
+        echo "<script type='text/javascript' class='".strtolower( get_class( $this ) )."'>"
81 81
                 . $_sScript
82 82
             . "</script>";
83 83
     }
Please login to merge, or discard this patch.
development/factory/_abstract/_view/AdminPageFramework_TabNavigationBar.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * Stores the tab items.
28 28
      */
29
-    public $aTabs   = array();
29
+    public $aTabs = array();
30 30
 
31 31
     /**
32 32
      * Stores container attributes.
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
     );
37 37
     
38 38
     public $aTab = array(
39
-        'slug'       => null,  // (string) tab slug (id)
40
-        'title'      => null,  // (string) tab title
41
-        'href'       => null,  // (string) link url
42
-        'disabled'   => null,  // (boolean)
43
-        'class'      => null,  // (string) class selector to append to the class attribute
39
+        'slug'       => null, // (string) tab slug (id)
40
+        'title'      => null, // (string) tab title
41
+        'href'       => null, // (string) link url
42
+        'disabled'   => null, // (boolean)
43
+        'class'      => null, // (string) class selector to append to the class attribute
44 44
         'attributes' => array(),
45 45
     );
46 46
     
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
      * @param       array             $aTabs              An array holding each tab definitions
60 60
      * @param       array|string      $asActiveTabSlugs   The default tab slug.
61 61
      */
62
-    public function __construct( array $aTabs, $asActiveTabSlugs, $sTabTag='h2', $aAttributes=array( 'class' => 'nav-tab-wrapper', ), $aCallbacks=array() ) {
62
+    public function __construct( array $aTabs, $asActiveTabSlugs, $sTabTag = 'h2', $aAttributes = array( 'class' => 'nav-tab-wrapper',), $aCallbacks = array() ) {
63 63
         
64
-        $this->aCallbacks           = $aCallbacks + array(
64
+        $this->aCallbacks = $aCallbacks + array(
65 65
             'format'    => null,
66
-            'arguments' => null,  // custom arguments to pass to the callback functions.
66
+            'arguments' => null, // custom arguments to pass to the callback functions.
67 67
         );
68 68
         $this->aTabs                = $this->_getFormattedTabs( $aTabs );
69 69
         $this->aActiveSlugs         = $this->getAsArray( $asActiveTabSlugs );        
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
          * @return      array
78 78
          */
79 79
         private function _getFormattedTabs( array $aTabs ) {
80
-            foreach( $aTabs as $_isKey => &$_aTab ) {
80
+            foreach ( $aTabs as $_isKey => &$_aTab ) {
81 81
                 $_aFormattedTab = $this->_getFormattedTab( $_aTab, $aTabs );
82 82
                 if ( isset( $_aFormattedTab[ 'slug' ] ) ) {
83 83
                     $_aTab = $_aFormattedTab;
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
         private function _getTabs() {
129 129
             
130 130
             $_aOutput = array();
131
-            foreach( $this->aTabs as $_aTab ) {
131
+            foreach ( $this->aTabs as $_aTab ) {
132 132
                 $_sTab = $this->_getTab( $_aTab );
133
-                if ( ! $_sTab ) {
133
+                if ( !$_sTab ) {
134 134
                     continue;
135 135
                 }
136
-                $_aOutput[] = $_sTab;
136
+                $_aOutput[ ] = $_sTab;
137 137
             }
138 138
 
139 139
             $_aContainerAttributes = $this->aAttributes + array( 'class' => null );
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
             return empty( $_aOutput )
146 146
                 ? ''
147
-                : "<{$this->sTabTag} " . $this->getAttributes( $_aContainerAttributes ) . ">"
147
+                : "<{$this->sTabTag} ".$this->getAttributes( $_aContainerAttributes ).">"
148 148
                     . implode( '', $_aOutput )                    
149 149
                 . "</{$this->sTabTag}>";
150 150
             
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  * @subpackage      Tab
17 17
  * @internal
18 18
  */
19
-class AdminPageFramework_TabNavigationBar extends AdminPageFramework_WPUtility {                
19
+class AdminPageFramework_TabNavigationBar extends AdminPageFramework_WPUtility {
20 20
     
21 21
     /**
22 22
      * The HTML tag used for the tag.
Please login to merge, or discard this patch.