Completed
Branch master (0a34ef)
by
unknown
20:07 queued 10:25
created
development/factory/meta_box/AdminPageFramework_MetaBox.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
      * @param       string            $sTextDomain              (optional) The text domain applied to the displayed text messages. Default: `admin-page-framework`.
55 55
      * @return      void
56 56
      */ 
57
-    public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID=array( 'post' ), $sContext='normal', $sPriority='default', $sCapability='edit_posts', $sTextDomain='admin-page-framework' ) {
57
+    public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID = array( 'post' ), $sContext = 'normal', $sPriority = 'default', $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework' ) {
58 58
         
59
-        if ( ! $this->_isInstantiatable() ) { 
59
+        if ( !$this->_isInstantiatable() ) { 
60 60
             return; 
61 61
         }
62 62
         if ( empty( $asPostTypeOrScreenID ) ) { 
@@ -64,14 +64,14 @@  discard block
 block discarded – undo
64 64
         }        
65 65
         
66 66
         // A property object needs to be done first.
67
-        $this->oProp                = new AdminPageFramework_Property_post_meta_box( 
67
+        $this->oProp = new AdminPageFramework_Property_post_meta_box( 
68 68
             $this, 
69 69
             get_class( $this ), 
70 70
             $sCapability, 
71 71
             $sTextDomain, 
72 72
             self::$_sStructureType 
73 73
         );
74
-        $this->oProp->aPostTypes    = is_string( $asPostTypeOrScreenID ) 
74
+        $this->oProp->aPostTypes = is_string( $asPostTypeOrScreenID ) 
75 75
             ? array( $asPostTypeOrScreenID ) 
76 76
             : $asPostTypeOrScreenID;
77 77
         
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,10 +56,10 @@
 block discarded – undo
56 56
      */ 
57 57
     public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID=array( 'post' ), $sContext='normal', $sPriority='default', $sCapability='edit_posts', $sTextDomain='admin-page-framework' ) {
58 58
         
59
-        if ( ! $this->_isInstantiatable() ) { 
59
+        if ( ! $this->_isInstantiatable() ) {
60 60
             return; 
61 61
         }
62
-        if ( empty( $asPostTypeOrScreenID ) ) { 
62
+        if ( empty( $asPostTypeOrScreenID ) ) {
63 63
             return; 
64 64
         }        
65 65
         
Please login to merge, or discard this patch.
development/factory/meta_box/AdminPageFramework_MetaBox_Router.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param       string          $sTextDomain            (optional) The text domain applied to the displayed text messages. Default: `admin-page-framework`.
35 35
      * @return      void
36 36
      */ 
37
-    public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID=array( 'post' ), $sContext='normal', $sPriority='default', $sCapability='edit_posts', $sTextDomain='admin-page-framework' ) {
37
+    public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID = array( 'post' ), $sContext = 'normal', $sPriority = 'default', $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework' ) {
38 38
              
39 39
         parent::__construct( $this->oProp );
40 40
         
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
             ? $this->oUtil->sanitizeSlug( $sMetaBoxID ) 
43 43
             : strtolower( $this->oProp->sClassName );
44 44
         $this->oProp->sTitle        = $sTitle;
45
-        $this->oProp->sContext      = $sContext;    // 'normal', 'advanced', or 'side' 
46
-        $this->oProp->sPriority     = $sPriority;   // 'high', 'core', 'default' or 'low'    
45
+        $this->oProp->sContext      = $sContext; // 'normal', 'advanced', or 'side' 
46
+        $this->oProp->sPriority     = $sPriority; // 'high', 'core', 'default' or 'low'    
47 47
 
48
-        if ( ! $this->oProp->bIsAdmin ) {
48
+        if ( !$this->oProp->bIsAdmin ) {
49 49
             return;
50 50
         }
51 51
         
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function _isInThePage() {
68 68
 
69
-        if ( ! in_array( $this->oProp->sPageNow, array( 'post.php', 'post-new.php' ) ) ) {
69
+        if ( !in_array( $this->oProp->sPageNow, array( 'post.php', 'post-new.php' ) ) ) {
70 70
             return false;
71 71
         }
72 72
         
73
-        if ( ! in_array( $this->oUtil->getCurrentPostType(), $this->oProp->aPostTypes ) ) {     
73
+        if ( !in_array( $this->oUtil->getCurrentPostType(), $this->oProp->aPostTypes ) ) {     
74 74
             return false;    
75 75
         }    
76 76
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             return false;
71 71
         }
72 72
         
73
-        if ( ! in_array( $this->oUtil->getCurrentPostType(), $this->oProp->aPostTypes ) ) {     
73
+        if ( ! in_array( $this->oUtil->getCurrentPostType(), $this->oProp->aPostTypes ) ) {
74 74
             return false;    
75 75
         }    
76 76
 
Please login to merge, or discard this patch.
factory/meta_box/_controller/AdminPageFramework_Resource_post_meta_box.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
      * @since 2.1.5
31 31
      * @internal
32 32
      */
33
-    public function _enqueueStyles( $aSRCs, $aPostTypes=array(), $aCustomArgs=array() ) {
33
+    public function _enqueueStyles( $aSRCs, $aPostTypes = array(), $aCustomArgs = array() ) {
34 34
         
35 35
         $_aHandleIDs = array();
36
-        foreach( ( array ) $aSRCs as $_sSRC ) {
37
-            $_aHandleIDs[] = $this->_enqueueStyle( $_sSRC, $aPostTypes, $aCustomArgs );
36
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
37
+            $_aHandleIDs[ ] = $this->_enqueueStyle( $_sSRC, $aPostTypes, $aCustomArgs );
38 38
         }
39 39
         return $_aHandleIDs;
40 40
         
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
59 59
      * @internal
60 60
      */    
61
-    public function _enqueueStyle( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) {
61
+    public function _enqueueStyle( $sSRC, $aPostTypes = array(), $aCustomArgs = array() ) {
62 62
         
63 63
         $sSRC = trim( $sSRC );
64 64
         if ( empty( $sSRC ) ) { return ''; }
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
                 'sSRC'          => $sSRC,
75 75
                 'aPostTypes'    => empty( $aPostTypes ) ? $this->oProp->aPostTypes : $aPostTypes,
76 76
                 'sType'         => 'style',
77
-                'handle_id'     => 'style_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->iEnqueuedStyleIndex ),
77
+                'handle_id'     => 'style_'.$this->oProp->sClassName.'_'.( ++$this->oProp->iEnqueuedStyleIndex ),
78 78
             ),
79 79
             self::$_aStructure_EnqueuingResources
80 80
         );
81 81
         
82 82
         // Store the attributes in another container by url.
83
-        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingStyles[ $_sSRCHash ]['handle_id'] ] = $this->oProp->aEnqueuingStyles[ $_sSRCHash ]['attributes'];
83
+        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'attributes' ];
84 84
         
85 85
         return $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'handle_id' ];
86 86
         
@@ -92,11 +92,11 @@  discard block
 block discarded – undo
92 92
      * @since 2.1.5
93 93
      * @internal
94 94
      */
95
-    public function _enqueueScripts( $aSRCs, $aPostTypes=array(), $aCustomArgs=array() ) {
95
+    public function _enqueueScripts( $aSRCs, $aPostTypes = array(), $aCustomArgs = array() ) {
96 96
         
97 97
         $_aHandleIDs = array();
98
-        foreach( ( array ) $aSRCs as $_sSRC ) {
99
-            $_aHandleIDs[] = $this->_enqueueScript( $_sSRC, $aPostTypes, $aCustomArgs );
98
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
99
+            $_aHandleIDs[ ] = $this->_enqueueScript( $_sSRC, $aPostTypes, $aCustomArgs );
100 100
         }
101 101
         return $_aHandleIDs;
102 102
         
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
      * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
122 122
      * @internal
123 123
      */
124
-    public function _enqueueScript( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) {
124
+    public function _enqueueScript( $sSRC, $aPostTypes = array(), $aCustomArgs = array() ) {
125 125
         
126
-        $sSRC       = trim( $sSRC );
126
+        $sSRC = trim( $sSRC );
127 127
         if ( empty( $sSRC ) ) { 
128 128
             return ''; 
129 129
         }
@@ -141,13 +141,13 @@  discard block
 block discarded – undo
141 141
                 'sSRC'          => $sSRC,
142 142
                 'aPostTypes'    => empty( $aPostTypes ) ? $this->oProp->aPostTypes : $aPostTypes,
143 143
                 'sType'         => 'script',
144
-                'handle_id'     => 'script_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->iEnqueuedScriptIndex ),
144
+                'handle_id'     => 'script_'.$this->oProp->sClassName.'_'.( ++$this->oProp->iEnqueuedScriptIndex ),
145 145
             ),
146 146
             self::$_aStructure_EnqueuingResources
147 147
         );
148 148
         
149 149
         // Store the attributes in another container by url.
150
-        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingScripts[ $_sSRCHash ]['handle_id'] ] = $this->oProp->aEnqueuingScripts[ $_sSRCHash ]['attributes'];
150
+        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'attributes' ];
151 151
         
152 152
         return $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'handle_id' ];
153 153
         
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      * @since 3.0.0
160 160
      * @internal
161 161
      */
162
-    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs=array() ) {
162
+    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs = array() ) {
163 163
         return $this->_enqueueStyle( $sSRC, array(), $aCustomArgs );
164 164
     }
165 165
     /**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      * @since 3.0.0
169 169
      * @internal
170 170
      */    
171
-    public function _forceToEnqueueScript( $sSRC, $aCustomArgs=array() ) {
171
+    public function _forceToEnqueueScript( $sSRC, $aCustomArgs = array() ) {
172 172
         return $this->_enqueueScript( $sSRC, array(), $aCustomArgs );
173 173
     }
174 174
     
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
      */
182 182
     protected function _enqueueSRCByCondition( $aEnqueueItem ) {
183 183
        
184
-        $_sCurrentPostType = isset( $_GET['post_type'] ) ? $_GET['post_type'] : ( isset( $GLOBALS['typenow'] ) ? $GLOBALS['typenow'] : null );
185
-        if ( in_array( $_sCurrentPostType, $aEnqueueItem['aPostTypes'] ) ) {
184
+        $_sCurrentPostType = isset( $_GET[ 'post_type' ] ) ? $_GET[ 'post_type' ] : ( isset( $GLOBALS[ 'typenow' ] ) ? $GLOBALS[ 'typenow' ] : null );
185
+        if ( in_array( $_sCurrentPostType, $aEnqueueItem[ 'aPostTypes' ] ) ) {
186 186
             return $this->_enqueueSRC( $aEnqueueItem );
187 187
         }
188 188
             
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,14 +124,14 @@
 block discarded – undo
124 124
     public function _enqueueScript( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) {
125 125
         
126 126
         $sSRC       = trim( $sSRC );
127
-        if ( empty( $sSRC ) ) { 
127
+        if ( empty( $sSRC ) ) {
128 128
             return ''; 
129 129
         }
130 130
         $sSRC       = $this->getResolvedSRC( $sSRC );
131 131
         
132 132
         // Setting the key based on the url prevents duplicate items
133 133
         $_sSRCHash  = md5( $sSRC ); 
134
-        if ( isset( $this->oProp->aEnqueuingScripts[ $_sSRCHash ] ) ) { 
134
+        if ( isset( $this->oProp->aEnqueuingScripts[ $_sSRCHash ] ) ) {
135 135
             return ''; 
136 136
         } 
137 137
         
Please login to merge, or discard this patch.
factory/meta_box/_controller/AdminPageFramework_HelpPane_post_meta_box.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     public function _replyToRegisterHelpTabText() {
31 31
 
32 32
         // Check if the currently loaded page is of meta box page.
33
-        if ( ! $this->_isInThePage() ) { 
33
+        if ( !$this->_isInThePage() ) { 
34 34
             return false; 
35 35
         }
36 36
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      */
67 67
     public function _replyToDetermineToLoad( /* $oScreen */ ) {
68 68
         
69
-        if ( ! $this->_isInThePage() ) { 
69
+        if ( ! $this->_isInThePage() ) {
70 70
             return; 
71 71
         }
72 72
 
Please login to merge, or discard this patch.
factory/meta_box/_model/AdminPageFramework_Property_post_meta_box.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @since       2.1.0       Moved from the meta box class.
36 36
      * @var string
37 37
      */     
38
-    public $sMetaBoxID ='';
38
+    public $sMetaBoxID = '';
39 39
     
40 40
     /**
41 41
      * Stores the post type slugs associated with the meta box.
@@ -138,14 +138,14 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * Calls the parent constructor by formatting the parameter values.
140 140
      */
141
-    public function __construct( $oCaller, $sClassName, $sCapability='edit_posts', $sTextDomain='admin-page-framework', $sStructureType='post_meta_box' ) {
141
+    public function __construct( $oCaller, $sClassName, $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework', $sStructureType = 'post_meta_box' ) {
142 142
         
143 143
         parent::__construct( 
144
-            $oCaller,           // caller object
145
-            null,               // caller script path - meta boxes don't need the caller script path.
146
-            $sClassName,        // class name
147
-            $sCapability,       // capability
148
-            $sTextDomain,       // text domain
144
+            $oCaller, // caller object
145
+            null, // caller script path - meta boxes don't need the caller script path.
146
+            $sClassName, // class name
147
+            $sCapability, // capability
148
+            $sTextDomain, // text domain
149 149
             $sStructureType     // structure type
150 150
         ); 
151 151
      
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_Model_Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * 
26 26
      * @internal
27 27
      */
28
-    public function __construct( $sOptionKey=null, $sCallerPath=null, $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
28
+    public function __construct( $sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
29 29
         
30 30
         parent::__construct( $sOptionKey, $sCallerPath, $sCapability, $sTextDomain );
31 31
         
Please login to merge, or discard this patch.
factory/admin_page/_controller/AdminPageFramework_Resource_admin_page.php 3 patches
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         
46 46
         // tab 
47 47
         if ( $_sPageSlug && $_sTabSlug ) {
48
-            $this->oProp->sStyle     = $this->addAndApplyFilters( 
48
+            $this->oProp->sStyle = $this->addAndApplyFilters( 
49 49
                 $_oCaller, 
50 50
                 "style_{$_sPageSlug}_{$_sTabSlug}", 
51 51
                 $this->oProp->sStyle 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         
55 55
         // page
56 56
         if ( $_sPageSlug ) {
57
-            $this->oProp->sStyle     = $this->addAndApplyFilters( 
57
+            $this->oProp->sStyle = $this->addAndApplyFilters( 
58 58
                 $_oCaller, 
59 59
                 "style_{$_sPageSlug}", 
60 60
                 $this->oProp->sStyle 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
          * @return      string      The tab slug if the tab has been added.
89 89
          */
90 90
         private function _getCurrentTabSlugForFilter( $sPageSlug ) {
91
-            $_sTabSlug  = $this->oProp->getCurrentTabSlug( $sPageSlug ); 
91
+            $_sTabSlug = $this->oProp->getCurrentTabSlug( $sPageSlug ); 
92 92
             return isset( $this->oProp->aInPageTabs[ $sPageSlug ][ $_sTabSlug ] )
93 93
                 ? $_sTabSlug
94 94
                 : '';          
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         
117 117
         // tab 
118 118
         if ( $_sPageSlug && $_sTabSlug ) {
119
-            $this->oProp->sScript     = $this->addAndApplyFilters( 
119
+            $this->oProp->sScript = $this->addAndApplyFilters( 
120 120
                 $_oCaller, 
121 121
                 "script_{$_sPageSlug}_{$_sTabSlug}", 
122 122
                 $this->oProp->sScript 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         
126 126
         // page
127 127
         if ( $_sPageSlug ) {
128
-            $this->oProp->sScript     = $this->addAndApplyFilters( 
128
+            $this->oProp->sScript = $this->addAndApplyFilters( 
129 129
                 $_oCaller, 
130 130
                 "script_{$_sPageSlug}", 
131 131
                 $this->oProp->sScript 
@@ -143,11 +143,11 @@  discard block
 block discarded – undo
143 143
      * @since 2.1.5
144 144
      * @internal
145 145
      */
146
-    public function _enqueueStyles( $aSRCs, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
146
+    public function _enqueueStyles( $aSRCs, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
147 147
         
148 148
         $_aHandleIDs = array();
149
-        foreach( ( array ) $aSRCs as $_sSRC ) {
150
-            $_aHandleIDs[] = $this->_enqueueStyle( $_sSRC, $sPageSlug, $sTabSlug, $aCustomArgs );
149
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
150
+            $_aHandleIDs[ ] = $this->_enqueueStyle( $_sSRC, $sPageSlug, $sTabSlug, $aCustomArgs );
151 151
         }
152 152
         return $_aHandleIDs;
153 153
         
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      * @return      string  The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
174 174
      * @internal
175 175
      */    
176
-    public function _enqueueStyle( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
176
+    public function _enqueueStyle( $sSRC, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
177 177
         return $this->_enqueueResourceByType( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs, 'style' );        
178 178
     }
179 179
     
@@ -182,11 +182,11 @@  discard block
 block discarded – undo
182 182
      * 
183 183
      * @since 2.1.5
184 184
      */
185
-    public function _enqueueScripts( $aSRCs, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
185
+    public function _enqueueScripts( $aSRCs, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
186 186
         
187 187
         $_aHandleIDs = array();
188
-        foreach( ( array ) $aSRCs as $_sSRC ) {
189
-            $_aHandleIDs[] = $this->_enqueueScript( $_sSRC, $sPageSlug, $sTabSlug, $aCustomArgs );
188
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
189
+            $_aHandleIDs[ ] = $this->_enqueueScript( $_sSRC, $sPageSlug, $sTabSlug, $aCustomArgs );
190 190
         }
191 191
         return $_aHandleIDs;
192 192
         
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * @return      string      The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
214 214
      * @internal
215 215
      */
216
-    public function _enqueueScript( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
216
+    public function _enqueueScript( $sSRC, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
217 217
         return $this->_enqueueResourceByType( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs, 'script' );
218 218
     }
219 219
         /**
@@ -226,20 +226,20 @@  discard block
 block discarded – undo
226 226
          * @param       array       $aCustomArgs    A custom argument array.
227 227
          * @param       string      $sType          Accepts 'style' or 'script'
228 228
          */
229
-        private function _enqueueResourceByType( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array(), $sType='style' ) {
229
+        private function _enqueueResourceByType( $sSRC, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array(), $sType = 'style' ) {
230 230
             
231
-            $sSRC       = trim( $sSRC );
231
+            $sSRC = trim( $sSRC );
232 232
             if ( empty( $sSRC ) ) { 
233 233
                 return ''; 
234 234
             }
235
-            $sSRC       = $this->getResolvedSRC( $sSRC );
235
+            $sSRC = $this->getResolvedSRC( $sSRC );
236 236
 
237 237
             // Get the property name for the type
238 238
             $_sContainerPropertyName     = $this->_getContainerPropertyNameByType( $sType );
239 239
             $_sEnqueuedIndexPropertyName = $this->_getEnqueuedIndexPropertyNameByType( $sType );
240 240
             
241 241
             // setting the key based on the url prevents duplicate items
242
-            $_sSRCHash  = md5( $sSRC );
242
+            $_sSRCHash = md5( $sSRC );
243 243
             if ( isset( $this->oProp->{$_sContainerPropertyName}[ $_sSRCHash ] ) ) { 
244 244
                 return ''; 
245 245
             } 
@@ -250,13 +250,13 @@  discard block
 block discarded – undo
250 250
                     'sTabSlug'  => $sTabSlug,
251 251
                     'sSRC'      => $sSRC,
252 252
                     'sType'     => $sType,
253
-                    'handle_id' => $sType . '_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->{$_sEnqueuedIndexPropertyName} ),
253
+                    'handle_id' => $sType.'_'.$this->oProp->sClassName.'_'.( ++$this->oProp->{$_sEnqueuedIndexPropertyName} ),
254 254
                 )
255 255
                 + self::$_aStructure_EnqueuingResources
256 256
                 ;
257 257
 
258 258
             // Store the attributes in another container by url.
259
-            $this->oProp->aResourceAttributes[ $this->oProp->{$_sContainerPropertyName}[ $_sSRCHash ]['handle_id'] ] = $this->oProp->{$_sContainerPropertyName}[ $_sSRCHash ]['attributes'];
259
+            $this->oProp->aResourceAttributes[ $this->oProp->{$_sContainerPropertyName}[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->{$_sContainerPropertyName}[ $_sSRCHash ][ 'attributes' ];
260 260
             
261 261
             return $this->oProp->{$_sContainerPropertyName}[ $_sSRCHash ][ 'handle_id' ];
262 262
             
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      * @since       3.0.0
297 297
      * @internal
298 298
      */
299
-    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs=array() ) {
299
+    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs = array() ) {
300 300
         return $this->_enqueueStyle( $sSRC, '', '', $aCustomArgs );
301 301
     }
302 302
     /**
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      * @since       3.0.0
307 307
      * @internal
308 308
      */    
309
-    public function _forceToEnqueueScript( $sSRC, $aCustomArgs=array() ) {
309
+    public function _forceToEnqueueScript( $sSRC, $aCustomArgs = array() ) {
310 310
         return $this->_enqueueScript( $sSRC, '', '', $aCustomArgs );
311 311
     }
312 312
     
@@ -323,11 +323,11 @@  discard block
 block discarded – undo
323 323
 
324 324
         $sCurrentPageSlug   = $this->oProp->getCurrentPageSlug();
325 325
         $sCurrentTabSlug    = $this->oProp->getCurrentTabSlug( $sCurrentPageSlug );
326
-        $sPageSlug          = $aEnqueueItem['sPageSlug'];
327
-        $sTabSlug           = $aEnqueueItem['sTabSlug'];
326
+        $sPageSlug          = $aEnqueueItem[ 'sPageSlug' ];
327
+        $sTabSlug           = $aEnqueueItem[ 'sTabSlug' ];
328 328
 
329 329
         // If the page slug is not specified and the currently loading page is one of the pages that is added by the framework,
330
-        if ( ! $sPageSlug && $this->oProp->isPageAdded( $sCurrentPageSlug ) ) { // means script-global(among pages added by the framework)
330
+        if ( !$sPageSlug && $this->oProp->isPageAdded( $sCurrentPageSlug ) ) { // means script-global(among pages added by the framework)
331 331
             return $this->_enqueueSRC( $aEnqueueItem );
332 332
         }
333 333
                 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         // If the tab slug is not specified and the page slug is specified, 
343 343
         // and if the current loading page slug and the specified one matches,
344 344
         if ( 
345
-            ( $sPageSlug && ! $sTabSlug )
345
+            ( $sPageSlug && !$sTabSlug )
346 346
             && ( $sCurrentPageSlug == $sPageSlug )
347 347
         ) {
348 348
             return $this->_enqueueSRC( $aEnqueueItem );
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         private function _enqueueResourceByType( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array(), $sType='style' ) {
230 230
             
231 231
             $sSRC       = trim( $sSRC );
232
-            if ( empty( $sSRC ) ) { 
232
+            if ( empty( $sSRC ) ) {
233 233
                 return ''; 
234 234
             }
235 235
             $sSRC       = $this->getResolvedSRC( $sSRC );
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
             
241 241
             // setting the key based on the url prevents duplicate items
242 242
             $_sSRCHash  = md5( $sSRC );
243
-            if ( isset( $this->oProp->{$_sContainerPropertyName}[ $_sSRCHash ] ) ) { 
243
+            if ( isset( $this->oProp->{$_sContainerPropertyName}[ $_sSRCHash ] ) ) {
244 244
                 return ''; 
245 245
             } 
246 246
             
@@ -327,7 +327,8 @@  discard block
 block discarded – undo
327 327
         $sTabSlug           = $aEnqueueItem['sTabSlug'];
328 328
 
329 329
         // If the page slug is not specified and the currently loading page is one of the pages that is added by the framework,
330
-        if ( ! $sPageSlug && $this->oProp->isPageAdded( $sCurrentPageSlug ) ) { // means script-global(among pages added by the framework)
330
+        if ( ! $sPageSlug && $this->oProp->isPageAdded( $sCurrentPageSlug ) ) {
331
+// means script-global(among pages added by the framework)
331 332
             return $this->_enqueueSRC( $aEnqueueItem );
332 333
         }
333 334
                 
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-2016 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+     * Admin Page Framework
4
+     * 
5
+     * http://en.michaeluno.jp/admin-page-framework/
6
+     * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
+     * 
8
+     */
9 9
 
10 10
 /**
11 11
  * Provides an abstract base class to create meta boxes in generic admin pages created by the framework.
Please login to merge, or discard this patch.
factory/admin_page/_controller/AdminPageFramework_HelpPane_admin_page.php 3 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -66,18 +66,18 @@  discard block
 block discarded – undo
66 66
      */  
67 67
     public function _replyToRegisterHelpTabs() {
68 68
 
69
-        if ( ! $this->_isInThePage() ) {
69
+        if ( !$this->_isInThePage() ) {
70 70
             return;
71 71
         }
72 72
     
73 73
         $_sCurrentPageSlug  = $this->oProp->getCurrentPageSlug();
74 74
         $_sCurrentTabSlug   = $this->oProp->getCurrentTabSlug( $_sCurrentPageSlug );
75 75
         
76
-        if ( ! $this->oProp->isPageAdded( $_sCurrentPageSlug ) ) { 
76
+        if ( !$this->oProp->isPageAdded( $_sCurrentPageSlug ) ) { 
77 77
             return; 
78 78
         }
79 79
 
80
-        foreach( $this->oProp->aHelpTabs as $aHelpTab ) {
80
+        foreach ( $this->oProp->aHelpTabs as $aHelpTab ) {
81 81
             $this->_registerHelpTab( $aHelpTab, $_sCurrentPageSlug, $_sCurrentTabSlug );
82 82
         }
83 83
         
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
          */
91 91
         private function _registerHelpTab( array $aHelpTab, $sCurrentPageSlug, $sCurrentTabSlug ) {
92 92
            
93
-            if ( $sCurrentPageSlug != $aHelpTab['sPageSlug'] ) { 
93
+            if ( $sCurrentPageSlug != $aHelpTab[ 'sPageSlug' ] ) { 
94 94
                 return;
95 95
             }
96
-            if ( isset( $aHelpTab['sPageTabSlug'] ) && ! empty( $aHelpTab['sPageTabSlug'] ) && $sCurrentTabSlug != $aHelpTab['sPageTabSlug'] ) {
96
+            if ( isset( $aHelpTab[ 'sPageTabSlug' ] ) && !empty( $aHelpTab[ 'sPageTabSlug' ] ) && $sCurrentTabSlug != $aHelpTab[ 'sPageTabSlug' ] ) {
97 97
                 return;
98 98
             }
99 99
 
@@ -132,24 +132,24 @@  discard block
 block discarded – undo
132 132
         $aHelpTab = ( array ) $aHelpTab + self::$_aStructure_HelpTabUserArray;
133 133
         
134 134
         // If the key is not set, that means the help tab array is not created yet. So create it and go back.
135
-        if ( ! isset( $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ] ) ) {
136
-            $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ] = array(
137
-                'sID'           => $aHelpTab['help_tab_id'],
138
-                'sTitle'        => $aHelpTab['help_tab_title'],
139
-                'aContent'      => ! empty( $aHelpTab['help_tab_content'] ) ? array( $this->_formatHelpDescription( $aHelpTab['help_tab_content'] ) ) : array(),
140
-                'aSidebar'      => ! empty( $aHelpTab['help_tab_sidebar_content'] ) ? array( $this->_formatHelpDescription( $aHelpTab['help_tab_sidebar_content'] ) ) : array(),
141
-                'sPageSlug'     => $aHelpTab['page_slug'],
142
-                'sPageTabSlug'  => $aHelpTab['page_tab_slug'],
135
+        if ( !isset( $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ] ) ) {
136
+            $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ] = array(
137
+                'sID'           => $aHelpTab[ 'help_tab_id' ],
138
+                'sTitle'        => $aHelpTab[ 'help_tab_title' ],
139
+                'aContent'      => !empty( $aHelpTab[ 'help_tab_content' ] ) ? array( $this->_formatHelpDescription( $aHelpTab[ 'help_tab_content' ] ) ) : array(),
140
+                'aSidebar'      => !empty( $aHelpTab[ 'help_tab_sidebar_content' ] ) ? array( $this->_formatHelpDescription( $aHelpTab[ 'help_tab_sidebar_content' ] ) ) : array(),
141
+                'sPageSlug'     => $aHelpTab[ 'page_slug' ],
142
+                'sPageTabSlug'  => $aHelpTab[ 'page_tab_slug' ],
143 143
             );
144 144
             return;
145 145
         }
146 146
 
147 147
         // This line will be reached if the help tab array is already set. In this case, just append an array element into the keys.
148
-        if ( ! empty( $aHelpTab['help_tab_content'] ) ) {
149
-            $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ]['aContent'][] = $this->_formatHelpDescription( $aHelpTab['help_tab_content'] );
148
+        if ( !empty( $aHelpTab[ 'help_tab_content' ] ) ) {
149
+            $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ][ 'aContent' ][ ] = $this->_formatHelpDescription( $aHelpTab[ 'help_tab_content' ] );
150 150
         }
151
-        if ( ! empty( $aHelpTab['help_tab_sidebar_content'] ) ) {
152
-            $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ]['aSidebar'][] = $this->_formatHelpDescription( $aHelpTab['help_tab_sidebar_content'] );
151
+        if ( !empty( $aHelpTab[ 'help_tab_sidebar_content' ] ) ) {
152
+            $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ][ 'aSidebar' ][ ] = $this->_formatHelpDescription( $aHelpTab[ 'help_tab_sidebar_content' ] );
153 153
         }
154 154
         
155 155
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $_sCurrentPageSlug  = $this->oProp->getCurrentPageSlug();
70 70
         $_sCurrentTabSlug   = $this->oProp->getCurrentTabSlug( $_sCurrentPageSlug );
71 71
         
72
-        if ( ! $this->oProp->isPageAdded( $_sCurrentPageSlug ) ) { 
72
+        if ( ! $this->oProp->isPageAdded( $_sCurrentPageSlug ) ) {
73 73
             return; 
74 74
         }
75 75
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
          */
87 87
         private function _registerHelpTab( array $aHelpTab, $sCurrentPageSlug, $sCurrentTabSlug ) {
88 88
            
89
-            if ( $sCurrentPageSlug != $aHelpTab['sPageSlug'] ) { 
89
+            if ( $sCurrentPageSlug != $aHelpTab['sPageSlug'] ) {
90 90
                 return;
91 91
             }
92 92
             if ( isset( $aHelpTab['sPageTabSlug'] ) && ! empty( $aHelpTab['sPageTabSlug'] ) && $sCurrentTabSlug != $aHelpTab['sPageTabSlug'] ) {
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-2016 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+     * Admin Page Framework
4
+     * 
5
+     * http://en.michaeluno.jp/admin-page-framework/
6
+     * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
+     * 
8
+     */
9 9
 
10 10
 /**
11 11
  * Provides an abstract base class to create meta boxes in generic admin pages created by the framework.
Please login to merge, or discard this patch.
factory/admin_page/_controller/AdminPageFramework_Link_admin_page.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 array( $this, '_replyToAddPostTypeQueryInEditPostLink' ), 
34 34
                 10, 
35 35
                 3 
36
-           );
36
+            );
37 37
         }        
38 38
     }
39 39
 
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 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();
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function _addLinkToPluginDescription( $asLinks ) {
57 57
         
58
-        if ( ! is_array( $asLinks ) ) {
59
-            $this->oProp->aPluginDescriptionLinks[] = $asLinks;
58
+        if ( !is_array( $asLinks ) ) {
59
+            $this->oProp->aPluginDescriptionLinks[ ] = $asLinks;
60 60
         } else {
61 61
             $this->oProp->aPluginDescriptionLinks = array_merge( 
62 62
                 $this->oProp->aPluginDescriptionLinks, 
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
      */    
82 82
     public function _addLinkToPluginTitle( $asLinks ) {
83 83
         
84
-        if ( ! is_array( $asLinks ) ) {
85
-            $this->oProp->aPluginTitleLinks[] = $asLinks;
84
+        if ( !is_array( $asLinks ) ) {
85
+            $this->oProp->aPluginTitleLinks[ ] = $asLinks;
86 86
         } else {
87 87
             $this->oProp->aPluginTitleLinks = array_merge( 
88 88
                 $this->oProp->aPluginTitleLinks, 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             }
117 117
             $_sPluginBaseName = plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] );
118 118
             add_filter( 
119
-                $this->_sFilterSuffix_PluginActionLinks . $_sPluginBaseName, 
119
+                $this->_sFilterSuffix_PluginActionLinks.$_sPluginBaseName, 
120 120
                 array( $this, '_replyToAddPluginActionLinks' ) 
121 121
             );            
122 122
         }
@@ -128,14 +128,14 @@  discard block
 block discarded – undo
128 128
      * @callback    filter      admin_footer_text
129 129
      * @return      string
130 130
      */ 
131
-    public function _replyToAddInfoInFooterLeft( $sLinkHTML='' ) {
131
+    public function _replyToAddInfoInFooterLeft( $sLinkHTML = '' ) {
132 132
 
133
-        if ( ! $this->_isPageAdded() ) {
133
+        if ( !$this->_isPageAdded() ) {
134 134
             return $sLinkHTML; // $sLinkHTML is given by the hook.
135 135
         }
136
-        $sLinkHTML  = empty( $this->oProp->aScriptInfo['sName'] )
136
+        $sLinkHTML = empty( $this->oProp->aScriptInfo[ 'sName' ] )
137 137
             ? $sLinkHTML
138
-            : $this->oProp->aFooterInfo['sLeft'];     
138
+            : $this->oProp->aFooterInfo[ 'sLeft' ];     
139 139
             
140 140
         $_sPageSlug = $this->oProp->getCurrentPageSlug();
141 141
         $_sTabSlug  = $this->oProp->getCurrentTabSlug();        
@@ -146,11 +146,11 @@  discard block
 block discarded – undo
146 146
             array(                 
147 147
                 $this->getAOrB( 
148 148
                     $_sTabSlug,
149
-                    'footer_left_' . $_sPageSlug . '_' . $_sTabSlug,
149
+                    'footer_left_'.$_sPageSlug.'_'.$_sTabSlug,
150 150
                     null    // will be ignored
151 151
                 ),
152
-                'footer_left_' . $_sPageSlug,
153
-                'footer_left_' . $this->oProp->sClassName
152
+                'footer_left_'.$_sPageSlug,
153
+                'footer_left_'.$this->oProp->sClassName
154 154
             ),
155 155
             $sLinkHTML
156 156
         );        
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
      * @callback    filter      update_footer
164 164
      * @return      string
165 165
      */
166
-    public function _replyToAddInfoInFooterRight( $sLinkHTML='' ) {
166
+    public function _replyToAddInfoInFooterRight( $sLinkHTML = '' ) {
167 167
 
168
-        if ( ! $this->_isPageAdded() ) {
168
+        if ( !$this->_isPageAdded() ) {
169 169
             return $sLinkHTML; // $sLinkTHML is given by the hook.
170 170
         }
171 171
             
@@ -178,13 +178,13 @@  discard block
 block discarded – undo
178 178
             array(                 
179 179
                 $this->getAOrB( 
180 180
                     $_sTabSlug,
181
-                    'footer_right_' . $_sPageSlug . '_' . $_sTabSlug,
181
+                    'footer_right_'.$_sPageSlug.'_'.$_sTabSlug,
182 182
                     null    // will be ignored
183 183
                 ),
184
-                'footer_right_' . $_sPageSlug,
185
-                'footer_right_' . $this->oProp->sClassName
184
+                'footer_right_'.$_sPageSlug,
185
+                'footer_right_'.$this->oProp->sClassName
186 186
             ),
187
-            $this->oProp->aFooterInfo['sRight']
187
+            $this->oProp->aFooterInfo[ 'sRight' ]
188 188
         );             
189 189
             
190 190
     }
@@ -196,10 +196,10 @@  discard block
 block discarded – undo
196 196
          */
197 197
         private function _isPageAdded() {
198 198
             
199
-            if ( ! isset( $_GET['page'] ) ) {
199
+            if ( !isset( $_GET[ 'page' ] ) ) {
200 200
                 return false;
201 201
             }            
202
-            return ( bool ) $this->oProp->isPageAdded( $_GET['page'] );
202
+            return ( bool ) $this->oProp->isPageAdded( $_GET[ 'page' ] );
203 203
 
204 204
         }
205 205
     /**
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
             : $this->oProp->sLabelPluginSettingsLink;        
221 221
 
222 222
         // If the user disables the settings link, the label property is empty. If so, do not add it.
223
-        if ( ! $this->oProp->sLabelPluginSettingsLink ) {
223
+        if ( !$this->oProp->sLabelPluginSettingsLink ) {
224 224
             return $aLinks;
225 225
         }
226 226
 
@@ -238,13 +238,13 @@  discard block
 block discarded – undo
238 238
         array_unshift(    
239 239
             $aLinks,
240 240
             // '<a href="' . esc_url( $_sLinkURL ) . '">' 
241
-            '<a ' . $this->getAttributes(
241
+            '<a '.$this->getAttributes(
242 242
                 array(
243 243
                     'href'      => esc_url( $_sLinkURL ),
244 244
                     // 3.5.7+ Added for acceptance testing
245 245
                     'class'     => 'apf-plugin-title-action-link apf-post-type',
246 246
                 )
247
-            ) . '>' 
247
+            ).'>' 
248 248
                 . $this->oProp->sLabelPluginSettingsLink 
249 249
             . '</a>'
250 250
         ); 
@@ -266,16 +266,16 @@  discard block
 block discarded – undo
266 266
         
267 267
         // Backward compatibility sanitisation.
268 268
         $_aAddingLinks = array();
269
-        foreach( array_filter( $this->oProp->aPluginDescriptionLinks ) as $_sLLinkHTML ) {
269
+        foreach ( array_filter( $this->oProp->aPluginDescriptionLinks ) as $_sLLinkHTML ) {
270 270
             
271
-            if ( ! $_sLLinkHTML ) {
271
+            if ( !$_sLLinkHTML ) {
272 272
                 continue;
273 273
             }
274 274
             if ( is_array( $_sLLinkHTML ) ) {  // should not be an array
275 275
                 $_aAddingLinks = array_merge( $_sLLinkHTML, $_aAddingLinks );
276 276
                 continue;
277 277
             } 
278
-            $_aAddingLinks[] = ( string ) $_sLLinkHTML;
278
+            $_aAddingLinks[ ] = ( string ) $_sLLinkHTML;
279 279
             
280 280
         }
281 281
         return array_merge( $aLinks, $_aAddingLinks );
@@ -291,13 +291,13 @@  discard block
 block discarded – undo
291 291
     public function _replyToAddPluginActionLinks( $aLinks ) {
292 292
 
293 293
         $_aAddingLinks = array();
294
-        foreach( array_filter( $this->oProp->aPluginTitleLinks ) as $_sLinkHTML ) {
294
+        foreach ( array_filter( $this->oProp->aPluginTitleLinks ) as $_sLinkHTML ) {
295 295
 
296 296
             if ( is_array( $_sLinkHTML ) ) {
297 297
                 $_aAddingLinks = array_merge( $_sLinkHTML, $aAddingLinks );
298 298
                 continue;
299 299
             } 
300
-            $_aAddingLinks[] = ( string ) $_sLinkHTML;
300
+            $_aAddingLinks[ ] = ( string ) $_sLinkHTML;
301 301
             
302 302
         }
303 303
         return array_merge( $aLinks, $_aAddingLinks );
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 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();
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     public function _replyToAddSettingsLinkInPluginListingPage( $aLinks ) {
212 212
          
213 213
         // If the sub-pages are not added, do nothing.
214
-        if ( count( $this->oProp->aPages ) < 1 ) { 
214
+        if ( count( $this->oProp->aPages ) < 1 ) {
215 215
             return $aLinks; 
216 216
         }    
217 217
         
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      */
261 261
     public function _replyToAddLinkToPluginDescription( $aLinks, $sFile ) {
262 262
 
263
-        if ( $sFile !== plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ) ) { 
263
+        if ( $sFile !== plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ) ) {
264 264
             return $aLinks; 
265 265
         }
266 266
         
@@ -271,7 +271,8 @@  discard block
 block discarded – undo
271 271
             if ( ! $_sLLinkHTML ) {
272 272
                 continue;
273 273
             }
274
-            if ( is_array( $_sLLinkHTML ) ) {  // should not be an array
274
+            if ( is_array( $_sLLinkHTML ) ) {
275
+// should not be an array
275 276
                 $_aAddingLinks = array_merge( $_sLLinkHTML, $_aAddingLinks );
276 277
                 continue;
277 278
             } 
Please login to merge, or discard this patch.