Completed
Branch master (6d8b39)
by
unknown
08:42
created
factory/admin_page/_view/AdminPageFramework_PageLoadInfo_admin_page.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         if ( in_array( $oProp->sClassName, self::$aClassNames ) )
32 32
             return self::$_oInstance;
33 33
         
34
-        self::$aClassNames[] = $oProp->sClassName;
34
+        self::$aClassNames[ ] = $oProp->sClassName;
35 35
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_Page( $oProp, $oMsg );
36 36
         
37 37
         return self::$_oInstance;
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,9 @@
 block discarded – undo
27 27
      */
28 28
     public static function instantiate( $oProp, $oMsg ) {
29 29
         
30
-        if ( in_array( $oProp->sClassName, self::$aClassNames ) )
31
-            return self::$_oInstance;
30
+        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {
31
+                    return self::$_oInstance;
32
+        }
32 33
         
33 34
         self::$aClassNames[] = $oProp->sClassName;
34 35
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_PostType( $oProp, $oMsg );
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_View_Page.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      * @return      void
65 65
      * @internal
66 66
      */ 
67
-    protected function _renderPage( $sPageSlug, $sTabSlug=null ) {
67
+    protected function _renderPage( $sPageSlug, $sTabSlug = null ) {
68 68
         $_oPageRenderer = new AdminPageFramework_View__PageRenderer( $this, $sPageSlug, $sTabSlug );
69 69
         $_oPageRenderer->render();
70 70
     }
Please login to merge, or discard this patch.
factory/_common/_abstract/_controller/AdminPageFramework_Link_Base.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * Sets up hooks and properties.
28 28
      */ 
29
-    public function __construct( $oProp, $oMsg=null ) {
29
+    public function __construct( $oProp, $oMsg = null ) {
30 30
         
31
-        if ( ! $this->_isLoadable( $oProp ) ) {
31
+        if ( !$this->_isLoadable( $oProp ) ) {
32 32
             return;
33 33
         }
34 34
                 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         // Add an action link in the plugin listing page
41 41
         if ( 'plugins.php' === $this->oProp->sPageNow && 'plugin' === $this->oProp->aScriptInfo[ 'sType' ] ) {
42 42
             add_filter( 
43
-                'plugin_action_links_' . plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
43
+                'plugin_action_links_'.plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
44 44
                 array( $this, '_replyToAddSettingsLinkInPluginListingPage' ), 
45 45
                 20     // set a lower priority so that the link will be embedded at the beginning ( the most left hand side ).
46 46
             );     
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
          * @return      boolean
55 55
          */
56 56
         private function _isLoadable( $oProp ) {
57
-            if ( ! $oProp->bIsAdmin ) { 
57
+            if ( !$oProp->bIsAdmin ) { 
58 58
                 return false;
59 59
             }
60 60
             if ( $oProp->bIsAdminAjax ) {
61 61
                 return false;
62 62
             }
63
-            return ! $this->hasBeenCalled( 'links_' . $oProp->sClassName );
63
+            return !$this->hasBeenCalled( 'links_'.$oProp->sClassName );
64 64
         }
65 65
         
66 66
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                         array(
124 124
                             'href'      => $aScriptInfo[ 'sURI' ],
125 125
                             'target'    => '_blank',
126
-                            'title'     => $aScriptInfo[ 'sName' ] . $_sVersion . $_sDescription 
126
+                            'title'     => $aScriptInfo[ 'sName' ].$_sVersion.$_sDescription 
127 127
                         ), 
128 128
                         $aScriptInfo[ 'sName' ] 
129 129
                     )    
@@ -145,13 +145,13 @@  discard block
 block discarded – undo
145 145
                 $_sAuthorInfo = $this->getAOrB(
146 146
                     empty( $aScriptInfo[ 'sAuthor' ] ),
147 147
                     $_sAuthorInfo,
148
-                    ' by ' . $_sAuthorInfo
148
+                    ' by '.$_sAuthorInfo
149 149
                 );
150 150
                 
151 151
                 // Enclosing the output in a span tag as the outer element is a '<p>' tag. So this cannot be div.
152 152
                 // 3.5.7+ Added the class attribute for acceptance testing
153 153
                 return "<span class='apf-script-info'>"  
154
-                        . $_sPluginInfo . $_sAuthorInfo
154
+                        . $_sPluginInfo.$_sAuthorInfo
155 155
                     . "</span>";
156 156
           
157 157
             }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                         array(
183 183
                             'href'      => $aScriptInfo[ 'sURI' ],
184 184
                             'target'    => '_blank',
185
-                            'title'     => $aScriptInfo[ 'sName' ] . $_sVersion . $_sDescription,
185
+                            'title'     => $aScriptInfo[ 'sName' ].$_sVersion.$_sDescription,
186 186
                         ), 
187 187
                         $aScriptInfo[ 'sName' ]
188 188
                     )                   
@@ -192,16 +192,16 @@  discard block
 block discarded – undo
192 192
                 // 3.5.7+ added the 'apf-credit' class attribute for acceptance testing
193 193
                 // 3.7.0+  added the footer-thankyou id attribute.
194 194
                 return "<span class='apf-credit' id='footer-thankyou'>" 
195
-                    . $this->oMsg->get( 'powered_by' ) . '&nbsp;' 
195
+                    . $this->oMsg->get( 'powered_by' ).'&nbsp;' 
196 196
                     . $_sLibraryInfo
197 197
                     . ",&nbsp;"
198
-                    . $this->oMsg->get( 'and' ) . '&nbsp;' 
198
+                    . $this->oMsg->get( 'and' ).'&nbsp;' 
199 199
                     . $this->getHTMLTag( 
200 200
                         'a', 
201 201
                         array(
202 202
                             'href'      => 'https://wordpress.org',
203 203
                             'target'    => '_blank',
204
-                            'title'     => 'WordPress ' . $GLOBALS[ 'wp_version' ]
204
+                            'title'     => 'WordPress '.$GLOBALS[ 'wp_version' ]
205 205
                         ), 
206 206
                         'WordPress'
207 207
                     )
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
          */
218 218
         protected function _setFooterHooks() {
219 219
             
220
-            add_filter( 'admin_footer_text' , array( $this, '_replyToAddInfoInFooterLeft' ) );
220
+            add_filter( 'admin_footer_text', array( $this, '_replyToAddInfoInFooterLeft' ) );
221 221
             add_filter( 'update_footer', array( $this, '_replyToAddInfoInFooterRight' ), 11 );
222 222
             
223 223
         }             
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
              * @callback    filter      admin_footer_text
230 230
              * @internal
231 231
              */ 
232
-            public function _replyToAddInfoInFooterLeft( $sLinkHTML='' ) {
232
+            public function _replyToAddInfoInFooterLeft( $sLinkHTML = '' ) {
233 233
 
234 234
                 $sLinkHTML = empty( $this->oProp->aScriptInfo[ 'sName' ] )
235 235
                     ? $sLinkHTML
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
              
238 238
                 return $this->addAndApplyFilters( 
239 239
                     $this->oProp->oCaller, 
240
-                    'footer_left_' . $this->oProp->sClassName, 
240
+                    'footer_left_'.$this->oProp->sClassName, 
241 241
                     $sLinkHTML
242 242
                 );
243 243
              
@@ -250,10 +250,10 @@  discard block
 block discarded – undo
250 250
              * @callback    filter      admin_footer_text
251 251
              * @internal
252 252
              */     
253
-            public function _replyToAddInfoInFooterRight( $sLinkHTML='' ) {
253
+            public function _replyToAddInfoInFooterRight( $sLinkHTML = '' ) {
254 254
                 return $this->addAndApplyFilters( 
255 255
                     $this->oProp->oCaller, 
256
-                    'footer_right_' . $this->oProp->sClassName, 
256
+                    'footer_right_'.$this->oProp->sClassName, 
257 257
                     $this->oProp->aFooterInfo[ 'sRight' ]
258 258
                 );                
259 259
             }       
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
          * @return      boolean
51 51
          */
52 52
         private function _isLoadable( $oProp ) {
53
-            if ( ! $oProp->bIsAdmin ) { 
53
+            if ( ! $oProp->bIsAdmin ) {
54 54
                 return false;
55 55
             }
56 56
             if ( $oProp->bIsAdminAjax ) {
Please login to merge, or discard this patch.
factory/_common/_abstract/_controller/AdminPageFramework_HelpPane_Base.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @since 2.1.0
55 55
      * @internal
56 56
      */  
57
-    protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents=array() ) {
57
+    protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents = array() ) {
58 58
         
59 59
         if ( empty( $aContents ) ) { 
60 60
             return; 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             ) 
72 72
         );     
73 73
         
74
-        if ( ! empty( $aSideBarContents ) ) {
74
+        if ( !empty( $aSideBarContents ) ) {
75 75
             $this->_oScreen->set_help_sidebar( implode( PHP_EOL, $aSideBarContents ) );
76 76
         }
77 77
             
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @internal
84 84
      */ 
85 85
     protected function _formatHelpDescription( $sHelpDescription ) {
86
-        return "<div class='contextual-help-description'>" . $sHelpDescription . "</div>";
86
+        return "<div class='contextual-help-description'>".$sHelpDescription."</div>";
87 87
     }
88 88
     
89 89
     
@@ -106,10 +106,10 @@  discard block
 block discarded – undo
106 106
      * @remark      This method just adds the given text into the class property. The actual registration will be performed with the <em>replyToRegisterHelpTabTextForMetaBox()</em> method.
107 107
      * @internal
108 108
      */ 
109
-    public function _addHelpText( $sHTMLContent, $sHTMLSidebarContent="" ) {
109
+    public function _addHelpText( $sHTMLContent, $sHTMLSidebarContent = "" ) {
110 110
         
111
-        $this->oProp->aHelpTabText[]        = "<div class='contextual-help-description'>" . $sHTMLContent . "</div>";
112
-        $this->oProp->aHelpTabTextSide[]    = "<div class='contextual-help-description'>" . $sHTMLSidebarContent . "</div>";
111
+        $this->oProp->aHelpTabText[ ]        = "<div class='contextual-help-description'>".$sHTMLContent."</div>";
112
+        $this->oProp->aHelpTabTextSide[ ]    = "<div class='contextual-help-description'>".$sHTMLSidebarContent."</div>";
113 113
         
114 114
     }
115 115
     
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
      * @remark      This method just adds the given text into the class property. The actual registration will be performed with the `replyToRegisterHelpTabTextForMetaBox()` method.
126 126
      * @internal
127 127
      */     
128
-    public function _addHelpTextForFormFields( $sFieldTitle, $sHelpText, $sHelpTextSidebar="" ) {
128
+    public function _addHelpTextForFormFields( $sFieldTitle, $sHelpText, $sHelpTextSidebar = "" ) {
129 129
         $this->_addHelpText(
130
-            "<span class='contextual-help-tab-title'>" . $sFieldTitle . "</span> - " . PHP_EOL
130
+            "<span class='contextual-help-tab-title'>".$sFieldTitle."</span> - ".PHP_EOL
131 131
                 . $sHelpText,     
132 132
             $sHelpTextSidebar
133 133
         );     
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     public function _replyToRegisterHelpTabText() {
146 146
 
147 147
         // Check if the currently loaded page is of meta box page.
148
-        if ( ! $this->_isInThePage() ) { 
148
+        if ( !$this->_isInThePage() ) { 
149 149
             return false; 
150 150
         }
151 151
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */  
57 57
     protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents=array() ) {
58 58
         
59
-        if ( empty( $aContents ) ) { 
59
+        if ( empty( $aContents ) ) {
60 60
             return; 
61 61
         }
62 62
         
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     public function _replyToRegisterHelpTabText() {
146 146
 
147 147
         // Check if the currently loaded page is of meta box page.
148
-        if ( ! $this->_isInThePage() ) { 
148
+        if ( ! $this->_isInThePage() ) {
149 149
             return false; 
150 150
         }
151 151
 
Please login to merge, or discard this patch.
development/factory/_common/_abstract/AdminPageFramework_Factory_View.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
          * @return      string      the input id attribute
42 42
          */    
43 43
         public function _replyToGetSectionName( /* $sSectionName, $aSectionset */ ) {
44
-            $_aParams = func_get_args() + array( null, null, );
44
+            $_aParams = func_get_args() + array( null, null,);
45 45
             return $_aParams[ 0 ];
46 46
         }
47 47
         
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
          * @since       3.6.0
70 70
          * @return      string
71 71
          */
72
-        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ )  {
73
-            $_aParams = func_get_args() + array( null, null, );
72
+        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) {
73
+            $_aParams = func_get_args() + array( null, null,);
74 74
             return $_aParams[ 0 ];                        
75 75
         }
76 76
         /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
          * @return      string
81 81
          */        
82 82
         public function _replyToGetFlatFieldName( /* $sFieldName, $aFieldset */ ) {
83
-            $_aParams = func_get_args() + array( null, null, );
83
+            $_aParams = func_get_args() + array( null, null,);
84 84
             return $_aParams[ 0 ];            
85 85
         }
86 86
         
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
          * @return      string      the flat input name attribute
103 103
          */    
104 104
         public function _replyToGetFlatInputName( /* $sFlatNameAttribute, $aField, $sKey */ ) {
105
-            $_aParams   = func_get_args() + array( null, null, null );
105
+            $_aParams = func_get_args() + array( null, null, null );
106 106
             return $_aParams[ 0 ];
107 107
         }
108 108
 
@@ -144,14 +144,14 @@  discard block
 block discarded – undo
144 144
                 'if'            => true,
145 145
                 'capability'    => '',
146 146
             );
147
-            if ( ! $aElementDefinition[ 'if' ] ) {
147
+            if ( !$aElementDefinition[ 'if' ] ) {
148 148
                 return false;
149 149
             }
150 150
             // For front-end forms that allow guests, the capability level can be empty. In that case, return true.
151
-            if ( ! $aElementDefinition[ 'capability' ] ) {
151
+            if ( !$aElementDefinition[ 'capability' ] ) {
152 152
                 return true;
153 153
             }
154
-            if ( ! current_user_can( $aElementDefinition[ 'capability' ] ) ) {
154
+            if ( !current_user_can( $aElementDefinition[ 'capability' ] ) ) {
155 155
                 return false;
156 156
             }            
157 157
             return $bDefault;
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             $this,
188 188
             array( 
189 189
                 // section_{instantiated class name}_{section id}
190
-                'section_head_' . $this->oProp->sClassName . '_' . $aSectionset[ 'section_id' ] 
190
+                'section_head_'.$this->oProp->sClassName.'_'.$aSectionset[ 'section_id' ] 
191 191
             ), 
192 192
             $sSectionDescription
193 193
         );
@@ -204,15 +204,15 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public function _replyToGetFieldOutput( $sFieldOutput, $aFieldset ) {
206 206
 
207
-        $_sSectionPart  = $this->oUtil->getAOrB(
207
+        $_sSectionPart = $this->oUtil->getAOrB(
208 208
             isset( $aFieldset[ 'section_id' ] ) && '_default' !== $aFieldset[ 'section_id' ],
209
-            '_' . $aFieldset[ 'section_id' ],
209
+            '_'.$aFieldset[ 'section_id' ],
210 210
             ''
211 211
         );
212 212
         return $this->oUtil->addAndApplyFilters(
213 213
             $this,
214 214
             array( 
215
-                'field_' . $this->oProp->sClassName . $_sSectionPart . '_' . $aFieldset[ 'field_id' ]
215
+                'field_'.$this->oProp->sClassName.$_sSectionPart.'_'.$aFieldset[ 'field_id' ]
216 216
             ),
217 217
             $sFieldOutput,
218 218
             $aFieldset // the field array
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
          * @since       3.6.0
75 75
          * @return      string
76 76
          */
77
-        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ )  {
77
+        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) {
78 78
             $_aParams = func_get_args() + array( null, null, );
79 79
             return $_aParams[ 0 ];                        
80 80
         }
Please login to merge, or discard this patch.
development/factory/_common/_abstract/_model/AdminPageFramework_Message.php 1 patch
Spacing   +15 added lines, -15 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
             
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      * @since       3.2.0       Changed it to create an instance per text domain basis.
197 197
      * @remark      This class should be instantiated via this method.
198 198
      */
199
-    public static function getInstance( $sTextDomain='admin-page-framework' ) {
199
+    public static function getInstance( $sTextDomain = 'admin-page-framework' ) {
200 200
         
201 201
         $_oInstance = isset( self::$_aInstancesByTextDomain[ $sTextDomain ] ) && ( self::$_aInstancesByTextDomain[ $sTextDomain ] instanceof AdminPageFramework_Message )
202 202
             ? self::$_aInstancesByTextDomain[ $sTextDomain ]
@@ -209,21 +209,21 @@  discard block
 block discarded – undo
209 209
          * Ensures that only one instance of this class object exists. ( no multiple instances of this object ) 
210 210
          * @deprecated  3.2.0
211 211
          */
212
-        public static function instantiate( $sTextDomain='admin-page-framework' ) {
212
+        public static function instantiate( $sTextDomain = 'admin-page-framework' ) {
213 213
             return self::getInstance( $sTextDomain );
214 214
         }
215 215
         
216 216
     /**
217 217
      * Sets up properties.
218 218
      */
219
-    public function __construct( $sTextDomain='admin-page-framework' ) {
219
+    public function __construct( $sTextDomain = 'admin-page-framework' ) {
220 220
         
221 221
         $this->_sTextDomain = $sTextDomain;  
222 222
         
223 223
         // Fill the $aMessages property with the keys extracted from the $aDefaults property
224 224
         // with the value of null.  The null is set to let it trigger the __get() method 
225 225
         // so that each translation item gets processed individually.
226
-        $this->aMessages    = array_fill_keys( 
226
+        $this->aMessages = array_fill_keys( 
227 227
             array_keys( $this->aDefaults ),
228 228
             null        
229 229
         );
@@ -257,13 +257,13 @@  discard block
 block discarded – undo
257 257
      * @since       DEVVER      If no key is specified, return the entire mesage array.
258 258
      * @return      string|array
259 259
      */
260
-    public function get( $sKey='' ) {
261
-        if ( ! $sKey ) {
260
+    public function get( $sKey = '' ) {
261
+        if ( !$sKey ) {
262 262
             return $this->_getAllMessages();
263 263
         }
264 264
         return isset( $this->aMessages[ $sKey ] )
265 265
             ? __( $this->aMessages[ $sKey ], $this->_sTextDomain )
266
-            : __( $this->{$sKey}, $this->_sTextDomain );     // triggers __get()
266
+            : __( $this->{$sKey}, $this->_sTextDomain ); // triggers __get()
267 267
     }
268 268
         /**
269 269
          * Returns the all registered messag items.
Please login to merge, or discard this patch.
factory/_common/_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/_common/_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_FrameworkUtility {                
19
+class AdminPageFramework_TabNavigationBar extends AdminPageFramework_FrameworkUtility {
20 20
     
21 21
     /**
22 22
      * The HTML tag used for the tag.
Please login to merge, or discard this patch.
_common/_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.