Completed
Branch dev (8a5453)
by
unknown
39s
created
_common/form/_model/AdminPageFramework_Form_Model___SetFieldResources.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
             private function ___setFieldResourcesBySection( $_aFieldsets ) {
130 130
 
131 131
                 $_bIsSubSectionLoaded = false;
132
-                foreach( $_aFieldsets as $_iSubSectionIndexOrFieldID => $_aSubSectionOrField )  {
132
+                foreach( $_aFieldsets as $_iSubSectionIndexOrFieldID => $_aSubSectionOrField ) {
133 133
 // @todo Examine if this structure is correct or not.
134 134
 // It may not be necessary to check the sub-section dimensions as this is not the saved options array.
135 135
                     // if it's a sub-section
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -90,16 +90,16 @@  discard block
 block discarded – undo
90 90
                 'AdminPageFramework_Form_View___CSS_FieldError',
91 91
                 'AdminPageFramework_Form_View___CSS_ToolTip',
92 92
             );
93
-            foreach( $_aClassNames as $_sClassName ) {
93
+            foreach ( $_aClassNames as $_sClassName ) {
94 94
                 $_oCSS = new $_sClassName;
95
-                $this->aResources[ 'internal_styles' ][] = $_oCSS->get();
95
+                $this->aResources[ 'internal_styles' ][ ] = $_oCSS->get();
96 96
             }
97 97
             $_aClassNamesForIE = array(
98 98
                 'AdminPageFramework_Form_View___CSS_CollapsibleSectionIE',
99 99
             );
100
-            foreach( $_aClassNamesForIE as $_sClassName ) {
100
+            foreach ( $_aClassNamesForIE as $_sClassName ) {
101 101
                 $_oCSS = new $_sClassName;
102
-                $this->aResources[ 'internal_styles_ie' ][] = $_oCSS->get();
102
+                $this->aResources[ 'internal_styles_ie' ][ ] = $_oCSS->get();
103 103
             }
104 104
 
105 105
         }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
          * @return      void
118 118
          */
119 119
         private function ___set( $aAllFieldsets ) {
120
-            foreach( $aAllFieldsets as $_sSecitonID => $_aFieldsets ) {
120
+            foreach ( $aAllFieldsets as $_sSecitonID => $_aFieldsets ) {
121 121
                 $this->___setFieldResourcesBySection( $_aFieldsets );
122 122
             }
123 123
         }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             private function ___setFieldResourcesBySection( $_aFieldsets ) {
130 130
 
131 131
                 $_bIsSubSectionLoaded = false;
132
-                foreach( $_aFieldsets as $_iSubSectionIndexOrFieldID => $_aSubSectionOrField )  {
132
+                foreach ( $_aFieldsets as $_iSubSectionIndexOrFieldID => $_aSubSectionOrField ) {
133 133
 // @todo Examine if this structure is correct or not.
134 134
 // It may not be necessary to check the sub-section dimensions as this is not the saved options array.
135 135
                     // if it's a sub-section
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                             continue;
141 141
                         }
142 142
                         $_bIsSubSectionLoaded = true;
143
-                        foreach( $_aSubSectionOrField as $_aField ) {
143
+                        foreach ( $_aSubSectionOrField as $_aField ) {
144 144
                             $this->___setFieldResources( $_aField );
145 145
                         }
146 146
                         continue;
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                 private function ___setFieldResources( $aFieldset ) {
166 166
 
167 167
                     // Check the field conditions.
168
-                    if ( ! $this->___isFieldsetAllowed( $aFieldset ) ) {
168
+                    if ( !$this->___isFieldsetAllowed( $aFieldset ) ) {
169 169
                         return;
170 170
                     }
171 171
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                         return $this->callBack(
197 197
                             $this->aCallbacks[ 'is_fieldset_registration_allowed' ],
198 198
                             array(
199
-                                true,   // 1st parameter
199
+                                true, // 1st parameter
200 200
                                 $aFieldset, // 2nd parameter
201 201
                             )
202 202
                         );
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                      */
209 209
                     private function ___setResourcesOfNestedFields( $aFieldset ) {
210 210
 
211
-                        if ( ! $this->hasFieldDefinitionsInContent( $aFieldset ) ) {
211
+                        if ( !$this->hasFieldDefinitionsInContent( $aFieldset ) ) {
212 212
                             return;
213 213
                         }
214 214
                         foreach ( $aFieldset[ 'content' ] as $_asNestedFieldset ) {
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
                         $this->callBack(
249 249
                             $this->aCallbacks[ 'load_fieldset_resource' ],
250 250
                             array(
251
-                                $aFieldset,   // 1st parameter
251
+                                $aFieldset, // 1st parameter
252 252
                             )
253 253
                         );
254 254
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         // Be careful not to add duplicate items as currently the sub-field items are parsed.
257 257
 
258 258
                         // Is already registered?
259
-                        if ( $this->hasBeenCalled( 'registered_' . $_sFieldtype . '_' . $this->aArguments[ 'structure_type' ] ) ) {
259
+                        if ( $this->hasBeenCalled( 'registered_'.$_sFieldtype.'_'.$this->aArguments[ 'structure_type' ] ) ) {
260 260
                             return;
261 261
                         }
262 262
 
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
                             $_aFieldTypeDefinition,
272 272
                             $this->aResources
273 273
                         );
274
-                        $this->aResources     = $_oFieldTypeResources->get();
274
+                        $this->aResources = $_oFieldTypeResources->get();
275 275
 
276 276
                     }
277 277
 
Please login to merge, or discard this patch.
admin_page/_view/AdminPageFramework_View__PageRenderer__InPageTabs.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $_sTag              = $this->_getInPageTabTag( $sTag, $_aPage );
74 74
              
75 75
             // If the in-page tabs' visibility is set to false, returns the title.
76
-            if ( ! $_aPage[ 'show_in_page_tabs' ] ) {
76
+            if ( !$_aPage[ 'show_in_page_tabs' ] ) {
77 77
                 return $this->getElement( $aInPageTabs, array( $_sCurrentTabSlug, 'title' ) )
78 78
                     ? "<{$_sTag} class='admin-page-framework-in-page-tab-title'>"
79 79
                             . $aInPageTabs[ $_sCurrentTabSlug ][ 'title' ]
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
             private function _getInPageTabNavigationBar( array $aTabs, $sActiveTab, $sCurrentPageSlug, $sTag ) {
101 101
 
102 102
                 $_oTabBar = new AdminPageFramework_TabNavigationBar(
103
-                    $aTabs,      // tabs
103
+                    $aTabs, // tabs
104 104
                     $sActiveTab, // active tab slug
105
-                    $sTag,       // container tag
105
+                    $sTag, // container tag
106 106
                     array(       // container attributes
107 107
                         'class' => 'in-page-tab',
108 108
                     ),
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                  * @since           3.5.10
131 131
                  * @since           3.6.3       Moved from `AdminPageFramework_Page_View`.
132 132
                  */
133
-                public function _replyToFormatNavigationTabItem_InPageTab( array $aTab, array $aStructure, array $aTabs, array $aArguments=array() ) {
133
+                public function _replyToFormatNavigationTabItem_InPageTab( array $aTab, array $aStructure, array $aTabs, array $aArguments = array() ) {
134 134
                     $_oFormatter = new AdminPageFramework_Format_NavigationTab_InPageTab(
135 135
                         $aTab,
136 136
                         $aStructure,
Please login to merge, or discard this patch.
factory/admin_page/_view/AdminPageFramework_PageLoadInfo_admin_page.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             return self::$_oInstance;
32 32
         }
33 33
         
34
-        self::$aClassNames[] = $oProp->sClassName;
34
+        self::$aClassNames[ ] = $oProp->sClassName;
35 35
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_admin_page( $oProp, $oMsg );
36 36
         
37 37
         return self::$_oInstance;
Please login to merge, or discard this patch.
document/factory/AdminPageFramework_NetworkAdmin_Documentation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,4 +82,4 @@
 block discarded – undo
82 82
  * @package     AdminPageFramework/Factory/NetworkAdmin
83 83
  * @heading     Network Admin Page
84 84
  */
85
-abstract class AdminPageFramework_NetworkAdmin_Documentation extends AdminPageFramework_Documentaiton{}
85
+abstract class AdminPageFramework_NetworkAdmin_Documentation extends AdminPageFramework_Documentaiton {}
Please login to merge, or discard this patch.
development/utility/class_tester/AdminPageFramework_ClassTester.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param       array       $aParameters    The parameters to pass to the constructor of the class set in the first parameter.
49 49
      * @return      object      An object instance of the class specified in the first parameter.
50 50
      */
51
-    static public function getInstance( $sClassName, array $aParameters=array() ) {
51
+    static public function getInstance( $sClassName, array $aParameters = array() ) {
52 52
         
53 53
         $_oReflection = new ReflectionClass( $sClassName );
54 54
         return $_oReflection->newInstanceArgs( $aParameters );               
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         // For PHP 5.2.x or below
70 70
         if ( version_compare( phpversion(), '<', '5.3.0' ) ) {
71 71
             trigger_error(
72
-                'Program Name' . ': ' 
72
+                'Program Name'.': ' 
73 73
                     . sprintf( 
74 74
                         'The method cannot run with your PHP version: %1$s',
75 75
                         phpversion()
Please login to merge, or discard this patch.
development/cli/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( __FILE__ ) ) . '/admin-page-framework.php';
14
+    $_sFrameworkFilePath = 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/cli/AdminPageFramework_BeautifiedVersionHeader.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( __FILE__ ) ) . '/admin-page-framework.php';
14
+    $_sFrameworkFilePath = 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.
include/class/admin/network-admin/AdminPageFrameworkLoader_NetworkAdmin.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -18,19 +18,19 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function start() {
20 20
   
21
-        if ( ! $this->oProp->bIsAdmin ) {
21
+        if ( !$this->oProp->bIsAdmin ) {
22 22
             return;
23 23
         }
24
-        if ( ! is_network_admin() ) {
24
+        if ( !is_network_admin() ) {
25 25
             return;
26 26
         }
27 27
           
28 28
         // Enable / disable the demo pages
29
-        if ( isset( $_GET['enable_apfl_demo_pages'] ) ) {
29
+        if ( isset( $_GET[ 'enable_apfl_demo_pages' ] ) ) {
30 30
             
31 31
             // Update the options and reload the page
32
-            $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys['main'] );
33
-            $_oOption->update( 'enable_demo', $_GET['enable_apfl_demo_pages'] );
32
+            $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ] );
33
+            $_oOption->update( 'enable_demo', $_GET[ 'enable_apfl_demo_pages' ] );
34 34
             
35 35
             $this->setSettingNotice( 
36 36
                 __( 'Enabled demo!', 'admin-page-framework-loader' ),
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             $this->_getDemoSwitcherLink( $this->oProp->aOptions )
58 58
         );
59 59
         $this->addLinkToPluginDescription(
60
-            "<a href='https://wordpress.org/support/plugin/admin-page-framework' target='_blank'>" . __( 'Support', 'admin-page-framework-loader' ) . "</a>"
60
+            "<a href='https://wordpress.org/support/plugin/admin-page-framework' target='_blank'>".__( 'Support', 'admin-page-framework-loader' )."</a>"
61 61
         );
62 62
         
63 63
     }
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
         /**
66 66
          * Returns the switch link of the demo pages.
67 67
          */
68
-        private function _getDemoSwitcherLink( $mOptions=array() ) {
68
+        private function _getDemoSwitcherLink( $mOptions = array() ) {
69 69
             
70
-            $_bEnabled  = isset( $mOptions['enable_demo'] ) && $mOptions['enable_demo'];
71
-            $_sLink    = esc_url( 
70
+            $_bEnabled = isset( $mOptions[ 'enable_demo' ] ) && $mOptions[ 'enable_demo' ];
71
+            $_sLink = esc_url( 
72 72
                 add_query_arg( 
73 73
                     array( 
74 74
                         'enable_apfl_demo_pages' => $_bEnabled ? 0 : 1,
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
                 )
77 77
             );        
78 78
             return $_bEnabled
79
-                ? "<a href='{$_sLink}'>" . __( 'Disable Demo', 'admin-page-framework-loader' ) . "</a>"
80
-                : "<a href='{$_sLink}'><strong style='font-size: 1em;'>" . __( 'Enable Demo', 'admin-page-framework-loader' ) . "</strong></a>";
79
+                ? "<a href='{$_sLink}'>".__( 'Disable Demo', 'admin-page-framework-loader' )."</a>"
80
+                : "<a href='{$_sLink}'><strong style='font-size: 1em;'>".__( 'Enable Demo', 'admin-page-framework-loader' )."</strong></a>";
81 81
             
82 82
         }            
83 83
 
Please login to merge, or discard this patch.
development/factory/widget/AdminPageFramework_Widget_Router.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@
 block discarded – undo
68 68
     }
69 69
 
70 70
     /**
71
-      * Responds to a request to an undefined property.
72
-      * @since      3.8.17
73
-      */
71
+     * Responds to a request to an undefined property.
72
+     * @since      3.8.17
73
+     */
74 74
     public function __get( $sPropertyName ) {
75 75
         if ( $this->oProp->bAssumedAsWPWidget ) {
76 76
             if ( isset( $this->oProp->aWPWidgetProperties[ $sPropertyName ] ) ) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      * @return  mixed
56 56
      * @since   3.8.17
57 57
      */
58
-    public function __call( $sMethodName, $aArguments=null ) {
58
+    public function __call( $sMethodName, $aArguments = null ) {
59 59
         if ( $this->oProp->bAssumedAsWPWidget ) {
60 60
             if ( in_array( $sMethodName, $this->oProp->aWPWidgetMethods ) ) {
61 61
                 return call_user_func_array(
Please login to merge, or discard this patch.