Completed
Pull Request — dev (#292)
by
unknown
02:41 queued 22s
created
factory/page_meta_box/AdminPageFramework_PageMetaBox_Controller.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @since 3.0.0
23 23
      */
24
-    public function enqueueStyles( $aSRCs, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
24
+    public function enqueueStyles( $aSRCs, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
25 25
         if ( method_exists( $this->oResource, '_enqueueStyles' ) ) {
26 26
             return $this->oResource->_enqueueStyles( $aSRCs, $sPageSlug, $sTabSlug, $aCustomArgs );
27 27
         }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param array (optional) The argument array for more advanced parameters.
38 38
      * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
39 39
      */
40
-    public function enqueueStyle( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
40
+    public function enqueueStyle( $sSRC, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
41 41
         if ( method_exists( $this->oResource, '_enqueueStyle' ) ) {
42 42
             return $this->oResource->_enqueueStyle( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs );
43 43
         }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *
48 48
      * @since 2.1.5
49 49
      */
50
-    public function enqueueScripts( $aSRCs, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
50
+    public function enqueueScripts( $aSRCs, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
51 51
         if ( method_exists( $this->oResource, '_enqueueScripts' ) ) {
52 52
             return $this->oResource->_enqueueScripts( $aSRCs, $sPageSlug, $sTabSlug, $aCustomArgs );
53 53
         }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param             array (optional) The argument array for more advanced parameters.
64 64
      * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
65 65
      */
66
-    public function enqueueScript( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
66
+    public function enqueueScript( $sSRC, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
67 67
         if ( method_exists( $this->oResource, '_enqueueScript' ) ) {
68 68
             return $this->oResource->_enqueueScript( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs );
69 69
         }
Please login to merge, or discard this patch.
factory/admin_page/_controller/AdminPageFramework_Link_admin_page.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function _replyToSetFooterInfo() {
38 38
 
39
-        if ( ! $this->oProp->isPageAdded() ) { 
39
+        if ( !$this->oProp->isPageAdded() ) { 
40 40
             return; 
41 41
         }
42 42
         parent::_replyToSetFooterInfo();
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function _addLinkToPluginDescription( $asLinks ) {
58 58
         
59
-        if ( ! is_array( $asLinks ) ) {
60
-            $this->oProp->aPluginDescriptionLinks[] = $asLinks;
59
+        if ( !is_array( $asLinks ) ) {
60
+            $this->oProp->aPluginDescriptionLinks[ ] = $asLinks;
61 61
         } else {
62 62
             $this->oProp->aPluginDescriptionLinks = array_merge( 
63 63
                 $this->oProp->aPluginDescriptionLinks, 
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
      */    
85 85
     public function _addLinkToPluginTitle( $asLinks ) {
86 86
         
87
-        if ( ! is_array( $asLinks ) ) {
88
-            $this->oProp->aPluginTitleLinks[] = $asLinks;
87
+        if ( !is_array( $asLinks ) ) {
88
+            $this->oProp->aPluginTitleLinks[ ] = $asLinks;
89 89
         } else {
90 90
             $this->oProp->aPluginTitleLinks = array_merge( 
91 91
                 $this->oProp->aPluginTitleLinks, 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             }
121 121
             $_sPluginBaseName = plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] );
122 122
             add_filter( 
123
-                $this->_sFilterSuffix_PluginActionLinks . $_sPluginBaseName, 
123
+                $this->_sFilterSuffix_PluginActionLinks.$_sPluginBaseName, 
124 124
                 array( $this, '_replyToAddPluginActionLinks' ) 
125 125
             );            
126 126
         }
@@ -133,14 +133,14 @@  discard block
 block discarded – undo
133 133
      * @return      string
134 134
      * @internal
135 135
      */ 
136
-    public function _replyToAddInfoInFooterLeft( $sLinkHTML='' ) {
136
+    public function _replyToAddInfoInFooterLeft( $sLinkHTML = '' ) {
137 137
 
138
-        if ( ! $this->_isPageAdded() ) {
138
+        if ( !$this->_isPageAdded() ) {
139 139
             return $sLinkHTML; // $sLinkHTML is given by the hook.
140 140
         }
141
-        $sLinkHTML  = empty( $this->oProp->aScriptInfo['sName'] )
141
+        $sLinkHTML = empty( $this->oProp->aScriptInfo[ 'sName' ] )
142 142
             ? $sLinkHTML
143
-            : $this->oProp->aFooterInfo['sLeft'];     
143
+            : $this->oProp->aFooterInfo[ 'sLeft' ];     
144 144
             
145 145
         $_sPageSlug = $this->oProp->getCurrentPageSlug();
146 146
         $_sTabSlug  = $this->oProp->getCurrentTabSlug();        
@@ -151,11 +151,11 @@  discard block
 block discarded – undo
151 151
             array(                 
152 152
                 $this->getAOrB( 
153 153
                     $_sTabSlug,
154
-                    'footer_left_' . $_sPageSlug . '_' . $_sTabSlug,
154
+                    'footer_left_'.$_sPageSlug.'_'.$_sTabSlug,
155 155
                     null    // will be ignored
156 156
                 ),
157
-                'footer_left_' . $_sPageSlug,
158
-                'footer_left_' . $this->oProp->sClassName
157
+                'footer_left_'.$_sPageSlug,
158
+                'footer_left_'.$this->oProp->sClassName
159 159
             ),
160 160
             $sLinkHTML
161 161
         );        
@@ -169,9 +169,9 @@  discard block
 block discarded – undo
169 169
      * @return      string
170 170
      * @internal
171 171
      */
172
-    public function _replyToAddInfoInFooterRight( $sLinkHTML='' ) {
172
+    public function _replyToAddInfoInFooterRight( $sLinkHTML = '' ) {
173 173
 
174
-        if ( ! $this->_isPageAdded() ) {
174
+        if ( !$this->_isPageAdded() ) {
175 175
             return $sLinkHTML; // $sLinkTHML is given by the hook.
176 176
         }
177 177
             
@@ -184,13 +184,13 @@  discard block
 block discarded – undo
184 184
             array(                 
185 185
                 $this->getAOrB( 
186 186
                     $_sTabSlug,
187
-                    'footer_right_' . $_sPageSlug . '_' . $_sTabSlug,
187
+                    'footer_right_'.$_sPageSlug.'_'.$_sTabSlug,
188 188
                     null    // will be ignored
189 189
                 ),
190
-                'footer_right_' . $_sPageSlug,
191
-                'footer_right_' . $this->oProp->sClassName
190
+                'footer_right_'.$_sPageSlug,
191
+                'footer_right_'.$this->oProp->sClassName
192 192
             ),
193
-            $this->oProp->aFooterInfo['sRight']
193
+            $this->oProp->aFooterInfo[ 'sRight' ]
194 194
         );             
195 195
             
196 196
     }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
          */
204 204
         private function _isPageAdded() {
205 205
             
206
-            if ( ! isset( $_GET[ 'page' ] ) ) {
206
+            if ( !isset( $_GET[ 'page' ] ) ) {
207 207
                 return false;
208 208
             }            
209 209
             return ( bool ) $this->oProp->isPageAdded( $_GET[ 'page' ] );
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
             : $this->oProp->sLabelPluginSettingsLink;        
229 229
 
230 230
         // If the user disables the settings link, the label property is empty. If so, do not add it.
231
-        if ( ! $this->oProp->sLabelPluginSettingsLink ) {
231
+        if ( !$this->oProp->sLabelPluginSettingsLink ) {
232 232
             return $aLinks;
233 233
         }
234 234
 
@@ -246,13 +246,13 @@  discard block
 block discarded – undo
246 246
         array_unshift(    
247 247
             $aLinks,
248 248
             // '<a href="' . esc_url( $_sLinkURL ) . '">' 
249
-            '<a ' . $this->getAttributes(
249
+            '<a '.$this->getAttributes(
250 250
                 array(
251 251
                     'href'      => esc_url( $_sLinkURL ),
252 252
                     // 3.5.7+ Added for acceptance testing
253 253
                     'class'     => 'apf-plugin-title-action-link apf-post-type',
254 254
                 )
255
-            ) . '>' 
255
+            ).'>' 
256 256
                 . $this->oProp->sLabelPluginSettingsLink 
257 257
             . '</a>'
258 258
         ); 
@@ -275,16 +275,16 @@  discard block
 block discarded – undo
275 275
         
276 276
         // Backward compatibility sanitisation.
277 277
         $_aAddingLinks = array();
278
-        foreach( array_filter( $this->oProp->aPluginDescriptionLinks ) as $_sLLinkHTML ) {
278
+        foreach ( array_filter( $this->oProp->aPluginDescriptionLinks ) as $_sLLinkHTML ) {
279 279
             
280
-            if ( ! $_sLLinkHTML ) {
280
+            if ( !$_sLLinkHTML ) {
281 281
                 continue;
282 282
             }
283 283
             if ( is_array( $_sLLinkHTML ) ) {  // should not be an array
284 284
                 $_aAddingLinks = array_merge( $_sLLinkHTML, $_aAddingLinks );
285 285
                 continue;
286 286
             } 
287
-            $_aAddingLinks[] = ( string ) $_sLLinkHTML;
287
+            $_aAddingLinks[ ] = ( string ) $_sLLinkHTML;
288 288
             
289 289
         }
290 290
         return array_merge( $aLinks, $_aAddingLinks );
@@ -301,13 +301,13 @@  discard block
 block discarded – undo
301 301
     public function _replyToAddPluginActionLinks( $aLinks ) {
302 302
 
303 303
         $_aAddingLinks = array();
304
-        foreach( array_filter( $this->oProp->aPluginTitleLinks ) as $_sLinkHTML ) {
304
+        foreach ( array_filter( $this->oProp->aPluginTitleLinks ) as $_sLinkHTML ) {
305 305
 
306 306
             if ( is_array( $_sLinkHTML ) ) {
307 307
                 $_aAddingLinks = array_merge( $_sLinkHTML, $_aAddingLinks );
308 308
                 continue;
309 309
             } 
310
-            $_aAddingLinks[] = ( string ) $_sLinkHTML;
310
+            $_aAddingLinks[ ] = ( string ) $_sLinkHTML;
311 311
             
312 312
         }
313 313
         return array_merge( $aLinks, $_aAddingLinks );
Please login to merge, or discard this patch.
development/factory/_common/utility/AdminPageFramework_ErrorReporting.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     private $_iLevel;
39 39
 
40
-    public function __construct( $iLevel=null ) {
40
+    public function __construct( $iLevel = null ) {
41 41
         $this->_iLevel = null !== $iLevel
42 42
             ? $iLevel
43 43
             : error_reporting();
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
         private function _getIncluded() {
57 57
 
58 58
             $_aIncluded = array();
59
-            foreach( $this->_aLevels as $_iLevel => $iLevelText ) {
59
+            foreach ( $this->_aLevels as $_iLevel => $iLevelText ) {
60 60
 
61 61
                 // This is where we check if a level was used or not
62 62
                 if ( $this->_iLevel & $_iLevel ) {
63
-                    $_aIncluded[] = $_iLevel;
63
+                    $_aIncluded[ ] = $_iLevel;
64 64
                 }
65 65
 
66 66
             }
@@ -74,16 +74,16 @@  discard block
 block discarded – undo
74 74
             $_aValues       = array();
75 75
 
76 76
             if ( count( $aIncluded ) > $_iAll / 2 ) {
77
-                $_aValues[] = 'E_ALL';
78
-                foreach( $this->_aLevels as $_iLevel => $iLevelText ) {
79
-                    if ( ! in_array( $_iLevel, $aIncluded ) ) {
80
-                        $_aValues[] = $iLevelText;
77
+                $_aValues[ ] = 'E_ALL';
78
+                foreach ( $this->_aLevels as $_iLevel => $iLevelText ) {
79
+                    if ( !in_array( $_iLevel, $aIncluded ) ) {
80
+                        $_aValues[ ] = $iLevelText;
81 81
                     }
82 82
                 }
83 83
                 return implode( ' & ~', $_aValues );
84 84
             }
85
-            foreach( $aIncluded as $_iLevel ) {
86
-                $_aValues[] = $this->_aLevels[ $_iLevel ];
85
+            foreach ( $aIncluded as $_iLevel ) {
86
+                $_aValues[ ] = $this->_aLevels[ $_iLevel ];
87 87
             }
88 88
             return implode( ' | ', $_aValues );
89 89
 
Please login to merge, or discard this patch.