Test Failed
Branch dev (88dacc)
by Michael
02:09
created
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.
factory/admin_page/_controller/AdminPageFramework_Resource_admin_page.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         // tab
46 46
         if ( $_sPageSlug && $_sTabSlug ) {
47
-            $this->oProp->sStyle     = $this->addAndApplyFilters(
47
+            $this->oProp->sStyle = $this->addAndApplyFilters(
48 48
                 $_oCaller,
49 49
                 "style_{$_sPageSlug}_{$_sTabSlug}",
50 50
                 $this->oProp->sStyle
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         // page
55 55
         if ( $_sPageSlug ) {
56
-            $this->oProp->sStyle     = $this->addAndApplyFilters(
56
+            $this->oProp->sStyle = $this->addAndApplyFilters(
57 57
                 $_oCaller,
58 58
                 "style_{$_sPageSlug}",
59 59
                 $this->oProp->sStyle
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
          * @return      string      The tab slug if the tab has been added.
88 88
          */
89 89
         private function _getCurrentTabSlugForFilter( $sPageSlug ) {
90
-            $_sTabSlug  = $this->oProp->getCurrentTabSlug( $sPageSlug );
90
+            $_sTabSlug = $this->oProp->getCurrentTabSlug( $sPageSlug );
91 91
             return isset( $this->oProp->aInPageTabs[ $sPageSlug ][ $_sTabSlug ] )
92 92
                 ? $_sTabSlug
93 93
                 : '';
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
         // tab
117 117
         if ( $_sPageSlug && $_sTabSlug ) {
118
-            $this->oProp->sScript     = $this->addAndApplyFilters(
118
+            $this->oProp->sScript = $this->addAndApplyFilters(
119 119
                 $_oCaller,
120 120
                 "script_{$_sPageSlug}_{$_sTabSlug}",
121 121
                 $this->oProp->sScript
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
         // page
126 126
         if ( $_sPageSlug ) {
127
-            $this->oProp->sScript     = $this->addAndApplyFilters(
127
+            $this->oProp->sScript = $this->addAndApplyFilters(
128 128
                 $_oCaller,
129 129
                 "script_{$_sPageSlug}",
130 130
                 $this->oProp->sScript
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
 
149 149
         $sCurrentPageSlug   = $this->oProp->getCurrentPageSlug();
150 150
         $sCurrentTabSlug    = $this->oProp->getCurrentTabSlug( $sCurrentPageSlug );
151
-        $sPageSlug          = $aEnqueueItem['sPageSlug'];
152
-        $sTabSlug           = $aEnqueueItem['sTabSlug'];
151
+        $sPageSlug          = $aEnqueueItem[ 'sPageSlug' ];
152
+        $sTabSlug           = $aEnqueueItem[ 'sTabSlug' ];
153 153
 
154 154
         // If the page slug is not specified and the currently loading page is one of the pages that is added by the framework,
155
-        if ( ! $sPageSlug && $this->oProp->isPageAdded( $sCurrentPageSlug ) ) { // means script-global(among pages added by the framework)
155
+        if ( !$sPageSlug && $this->oProp->isPageAdded( $sCurrentPageSlug ) ) { // means script-global(among pages added by the framework)
156 156
             $this->_enqueueSRC( $aEnqueueItem );
157 157
         }
158 158
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         // If the tab slug is not specified and the page slug is specified,
168 168
         // and if the current loading page slug and the specified one matches,
169 169
         if (
170
-            ( $sPageSlug && ! $sTabSlug )
170
+            ( $sPageSlug && !$sTabSlug )
171 171
             && ( $sCurrentPageSlug == $sPageSlug )
172 172
         ) {
173 173
             $this->_enqueueSRC( $aEnqueueItem );
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,8 @@
 block discarded – undo
152 152
         $sTabSlug           = $aEnqueueItem['sTabSlug'];
153 153
 
154 154
         // If the page slug is not specified and the currently loading page is one of the pages that is added by the framework,
155
-        if ( ! $sPageSlug && $this->oProp->isPageAdded( $sCurrentPageSlug ) ) { // means script-global(among pages added by the framework)
155
+        if ( ! $sPageSlug && $this->oProp->isPageAdded( $sCurrentPageSlug ) ) {
156
+// means script-global(among pages added by the framework)
156 157
             $this->_enqueueSRC( $aEnqueueItem );
157 158
         }
158 159
 
Please login to merge, or discard this patch.
factory/page_meta_box/AdminPageFramework_PageMetaBox_Controller.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * @return array Added stylesheet handle IDs.
25 25
      */
26 26
     public function enqueueStyles( /*$aSRCs, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() */ ) {
27
-        if ( ! method_exists( $this->oResource, '_enqueueResourcesByType' ) ) {
27
+        if ( !method_exists( $this->oResource, '_enqueueResourcesByType' ) ) {
28 28
             return array();
29 29
         }
30 30
         $_aParams = func_get_args() + array( array(), '', '', array() );
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * @since 3.8.31 Removed parameters to be compatible with the base class.
51 51
      */
52 52
     public function enqueueStyle( /* $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() */ ) {
53
-        if ( ! method_exists( $this->oResource, '_addEnqueuingResourceByType' ) ) {
53
+        if ( !method_exists( $this->oResource, '_addEnqueuingResourceByType' ) ) {
54 54
             return '';
55 55
         }
56 56
         $_aParams = func_get_args() + array( '', '', '', array() );
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * @return array Added script handle IDs
72 72
      */
73 73
     public function enqueueScripts( /* $aSRCs, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() */ ) {
74
-        if ( ! method_exists( $this->oResource, '_enqueueResourcesByType' ) ) {
74
+        if ( !method_exists( $this->oResource, '_enqueueResourcesByType' ) ) {
75 75
             return array();
76 76
         }
77 77
         $_aParams = func_get_args() + array( array(), '', '', array() );
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
98 98
      */
99 99
     public function enqueueScript( /* $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() */ ) {
100
-        if ( ! method_exists( $this->oResource, '_addEnqueuingResourceByType' ) ) {
100
+        if ( !method_exists( $this->oResource, '_addEnqueuingResourceByType' ) ) {
101 101
             return '';
102 102
         }
103 103
         $_aParams = func_get_args() + array( '', '', '', array() );
Please login to merge, or discard this patch.
development/factory/admin_page/_model/AdminPageFramework_FormEmail.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
                         $sURL
187 187
                     ) );
188 188
                 }
189
-       /**
189
+        /**
190 190
          * Sets the mail content type to HTML.
191 191
          * @since       3.3.0
192 192
          * @since       3.4.2       Moved from the validation class.
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         
99 99
         
100 100
         // Send mail.
101
-        $_bSent         = wp_mail(
101
+        $_bSent = wp_mail(
102 102
             $this->___getEmailArgument( $_aInputs, $_aEmailOptions, 'to', $_sSubmitSectionID ),
103 103
             $this->___getEmailArgument( $_aInputs, $_aEmailOptions, 'subject', $_sSubmitSectionID ),
104 104
             $this->___getMessage( $_aInputs, $_aEmailOptions, $_sSubmitSectionID, $_bIsHTML ),
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         );
108 108
 
109 109
         // Clean up.
110
-        foreach( $this->_aPathsToDelete as $_sPath ) {
110
+        foreach ( $this->_aPathsToDelete as $_sPath ) {
111 111
             unlink( $_sPath );
112 112
         }
113 113
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
          * @param boolean $_bSent         Whether the email is sent or not.
119 119
          * @param array   $_aEmailOptions The email arguments set in the `contact` field argument.
120 120
          */
121
-        do_action( 'admin-page-framework_action_after_sending_form_email', $_bSent, $_aEmailOptions);
121
+        do_action( 'admin-page-framework_action_after_sending_form_email', $_bSent, $_aEmailOptions );
122 122
 
123 123
         // Remove the filter callbacks after the above action to let the action callbacks use the custom Email options modified with these filters.
124 124
         remove_filter( 'wp_mail_content_type', array( $this, '_replyToSetMailContentTypeToHTML' ) );
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
          * @since  3.9.0
138 138
          */
139 139
         private function ___getMessage( $aInputs, $aEmailOptions, $sSubmitSectionID, $bIsHTML ) {
140
-            if ( ! $bIsHTML ) {
140
+            if ( !$bIsHTML ) {
141 141
                 return $this->getReadableListOfArray( ( array ) $this->___getEmailArgument( $aInputs, $aEmailOptions, 'message', $sSubmitSectionID ) )
142 142
                     .  $this->getReadableListOfArray( $this->getElementAsArray( $aEmailOptions, array( 'data' ) ) );
143 143
             }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             }
170 170
 
171 171
             $_aAttachments = $this->getAsArray( $asAttachments );
172
-            foreach( $_aAttachments as $_iIndex => $_sPathORURL ) {
172
+            foreach ( $_aAttachments as $_iIndex => $_sPathORURL ) {
173 173
 
174 174
                 // If it is a file path, fine.
175 175
                 if ( is_file( $_sPathORURL ) ) {
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
             }
279 279
 
280 280
             // If the key element is empty, search the corresponding item in the same section.
281
-            if ( ! $aEmailOptions[ $sKey ] ) {
281
+            if ( !$aEmailOptions[ $sKey ] ) {
282 282
                 return $this->getArrayValueByArrayKeys( $aInput, array( $sSectionID, $sKey ) );
283 283
             }
284 284
 
Please login to merge, or discard this patch.
factory/taxonomy_field/AdminPageFramework_TaxonomyField_Model.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             if ( $sTaxonomy ) {
83 83
                 $aColumns = $this->oUtil->addAndApplyFilter(
84 84
                     $this,
85
-                    $sFilterPrefix . $this->oUtil->getHTTPQueryGET( 'taxonomy', '' ),
85
+                    $sFilterPrefix.$this->oUtil->getHTTPQueryGET( 'taxonomy', '' ),
86 86
                     $aColumns
87 87
                 );
88 88
             }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * @param       string|null  $sOptionKey
122 122
      * @internal
123 123
      */
124
-    protected function _setOptionArray( $iTermID=null, $sOptionKey=null ) {
124
+    protected function _setOptionArray( $iTermID = null, $sOptionKey = null ) {
125 125
         $this->oForm->aSavedData = $this->_getSavedFormData( $iTermID, $sOptionKey );
126 126
     }
127 127
         /**
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
             return $this->oUtil->addAndApplyFilter(
136 136
                 $this, // the caller factory object
137
-                'options_' . $this->oProp->sClassName,
137
+                'options_'.$this->oProp->sClassName,
138 138
                 $this->_getSavedTermFormData( $iTermID, $sOptionKey )
139 139
                 // @todo maybe pass the term id because the user will not know whihch form data it is
140 140
             );
@@ -168,16 +168,16 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function _replyToValidateOptions( $iTermID ) {
170 170
 
171
-        if ( ! $this->_shouldProceedValidation() ) {
171
+        if ( !$this->_shouldProceedValidation() ) {
172 172
             return;
173 173
         }
174 174
 
175 175
         $_aTaxonomyFormData     = $this->_getSavedTaxonomyFormData( $this->oProp->sOptionKey );
176 176
         $_aSavedFormData        = $this->_getSavedTermFormData( $iTermID, $this->oProp->sOptionKey );
177
-        $_aSubmittedFormData    = $this->oForm->getSubmittedData( $this->oForm->getHTTPRequestSanitized( $_POST ) );    // sanitization done
177
+        $_aSubmittedFormData    = $this->oForm->getSubmittedData( $this->oForm->getHTTPRequestSanitized( $_POST ) ); // sanitization done
178 178
         $_aSubmittedFormData    = $this->oUtil->addAndApplyFilters(
179 179
             $this,
180
-            'validation_' . $this->oProp->sClassName,
180
+            'validation_'.$this->oProp->sClassName,
181 181
             call_user_func_array(
182 182
                 array( $this, 'validate' ), // triggers __call()
183 183
                 array( $_aSubmittedFormData, $_aSavedFormData, $this )
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
         // @todo Examine whether it is appropriate to merge recursivly
190 190
         // as some fields will have a problem such as select with multiple options.
191
-        $_aTaxonomyFormData[ $iTermID ]  = $this->oUtil->uniteArrays(
191
+        $_aTaxonomyFormData[ $iTermID ] = $this->oUtil->uniteArrays(
192 192
             $_aSubmittedFormData,
193 193
             $_aSavedFormData
194 194
         );
@@ -210,10 +210,10 @@  discard block
 block discarded – undo
210 210
          */
211 211
         protected function _shouldProceedValidation() {
212 212
 
213
-            if ( ! isset( $_POST[ $this->oProp->sClassHash ] ) ) {  // sanitization unnecessary
213
+            if ( !isset( $_POST[ $this->oProp->sClassHash ] ) ) {  // sanitization unnecessary
214 214
                 return false;
215 215
             }
216
-            if ( ! wp_verify_nonce( $_POST[ $this->oProp->sClassHash ], $this->oProp->sClassHash ) ) {  // sanitization unnecessary
216
+            if ( !wp_verify_nonce( $_POST[ $this->oProp->sClassHash ], $this->oProp->sClassHash ) ) {  // sanitization unnecessary
217 217
                 return false;
218 218
             }
219 219
             return true;
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,10 +210,12 @@
 block discarded – undo
210 210
          */
211 211
         protected function _shouldProceedValidation() {
212 212
 
213
-            if ( ! isset( $_POST[ $this->oProp->sClassHash ] ) ) {  // sanitization unnecessary
213
+            if ( ! isset( $_POST[ $this->oProp->sClassHash ] ) ) {
214
+// sanitization unnecessary
214 215
                 return false;
215 216
             }
216
-            if ( ! wp_verify_nonce( $_POST[ $this->oProp->sClassHash ], $this->oProp->sClassHash ) ) {  // sanitization unnecessary
217
+            if ( ! wp_verify_nonce( $_POST[ $this->oProp->sClassHash ], $this->oProp->sClassHash ) ) {
218
+// sanitization unnecessary
217 219
                 return false;
218 220
             }
219 221
             return true;
Please login to merge, or discard this patch.
factory/taxonomy_field/AdminPageFramework_TaxonomyField_Router.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
         parent::__construct( $oProp );
28 28
 
29
-        if ( ! $this->oProp->bIsAdmin ) {
29
+        if ( !$this->oProp->bIsAdmin ) {
30 30
             return;
31 31
         }
32 32
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         );
38 38
 
39 39
         add_action(
40
-            'set_up_' . $this->oProp->sClassName,
40
+            'set_up_'.$this->oProp->sClassName,
41 41
             array( $this, '_replyToSetUpHooks' )
42 42
         );
43 43
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     protected function _isInThePage() {
56 56
 
57
-        if ( ! $this->oProp->bIsAdmin ) {
57
+        if ( !$this->oProp->bIsAdmin ) {
58 58
             return false;
59 59
         }
60 60
 
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
             return $this->_isValidAjaxReferrer();
63 63
         }
64 64
 
65
-        if ( ! in_array( $this->oProp->sPageNow, array( 'edit-tags.php', 'term.php' ) ) ) {
65
+        if ( !in_array( $this->oProp->sPageNow, array( 'edit-tags.php', 'term.php' ) ) ) {
66 66
             return false;
67 67
         }
68 68
 
69
-        if ( isset( $_GET[ 'taxonomy' ] ) && ! in_array( $_GET[ 'taxonomy' ], $this->oProp->aTaxonomySlugs ) ) {    // sanitization unnecessary
69
+        if ( isset( $_GET[ 'taxonomy' ] ) && !in_array( $_GET[ 'taxonomy' ], $this->oProp->aTaxonomySlugs ) ) {    // sanitization unnecessary
70 70
             return false;
71 71
         }
72 72
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         parse_str( $_aReferrer[ 'query' ], $_aQuery );
87 87
 
88 88
         $_sBaseName = basename( $_aReferrer[ 'path' ] );
89
-        if ( ! in_array( $_sBaseName, array( 'edit-tags.php', 'term.php' ) ) ) {
89
+        if ( !in_array( $_sBaseName, array( 'edit-tags.php', 'term.php' ) ) ) {
90 90
             return false;
91 91
         }
92 92
         $_sTaxonomy = $this->oUtil->getElement( $this->oProp->aQuery, array( 'taxonomy' ), '' );
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function _replyToSetUpHooks( $oFactory ) {
105 105
 
106
-        foreach( $this->oProp->aTaxonomySlugs as $_sTaxonomySlug ) {
106
+        foreach ( $this->oProp->aTaxonomySlugs as $_sTaxonomySlug ) {
107 107
 
108 108
             // Validation callbacks need to be set regardless of whether the current page is edit-tags.php or not.
109 109
             add_action( "created_{$_sTaxonomySlug}", array( $this, '_replyToValidateOptions' ), 10, 2 );
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,8 @@
 block discarded – undo
66 66
             return false;
67 67
         }
68 68
 
69
-        if ( isset( $_GET[ 'taxonomy' ] ) && ! in_array( $_GET[ 'taxonomy' ], $this->oProp->aTaxonomySlugs ) ) {    // sanitization unnecessary
69
+        if ( isset( $_GET[ 'taxonomy' ] ) && ! in_array( $_GET[ 'taxonomy' ], $this->oProp->aTaxonomySlugs ) ) {
70
+// sanitization unnecessary
70 71
             return false;
71 72
         }
72 73
 
Please login to merge, or discard this patch.
factory/page_meta_box/_model/AdminPageFramework_Property_page_meta_box.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
      * @since       3.5.3
146 146
      * @return      string      The found page slug. An empty string if not found.
147 147
      * @remark      Do not return `null` when not found as some framework methods check the retuened value with `isset()` and if null is given, `isset()` yields `false` while it does `true` for an emtpy string ('').
148
-    */
148
+     */
149 149
     public function getCurrentPageSlug() {
150 150
         return $this->getHTTPQueryGET( 'page', '' );
151 151
     }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * Sets up hooks and properties.
58 58
      */
59
-    public function __construct( $oCaller, $sClassName, $sCapability='manage_options', $sTextDomain='admin-page-framework', $sStructureType='page_meta_box' ) {
59
+    public function __construct( $oCaller, $sClassName, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework', $sStructureType = 'page_meta_box' ) {
60 60
 
61 61
         // Let them overload.
62 62
         unset(
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     public function _getScreenIDOfPage( $sPageSlug ) {
106 106
         $_oAdminPage = $this->_getOwnerObjectOfPage( $sPageSlug );
107 107
         return $_oAdminPage
108
-            ? $_oAdminPage->oProp->aPages[ $sPageSlug ][ '_page_hook' ] . ( is_network_admin() ? '-network' : '' )
108
+            ? $_oAdminPage->oProp->aPages[ $sPageSlug ][ '_page_hook' ].( is_network_admin() ? '-network' : '' )
109 109
             : '';
110 110
     }
111 111
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * @since       3.0.0
116 116
      * @return      boolean     Returns true if it is of framework's added page; otherwise, false.
117 117
      */
118
-    public function isPageAdded( $sPageSlug='' ) {
118
+    public function isPageAdded( $sPageSlug = '' ) {
119 119
         $_oAdminPage = $this->_getOwnerObjectOfPage( $sPageSlug );
120 120
         return $_oAdminPage
121 121
             ? $_oAdminPage->oProp->isPageAdded( $sPageSlug )
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     public function isCurrentTab( $sTabSlug ) {
133 133
 
134 134
         $_sCurrentPageSlug = $this->getHTTPQueryGET( 'page' );
135
-        if ( ! $_sCurrentPageSlug ) {
135
+        if ( !$_sCurrentPageSlug ) {
136 136
             return false;
137 137
         }
138 138
         $_sCurrentTabSlug = $this->getHTTPQueryGET( 'tab', $this->getDefaultInPageTab( $_sCurrentPageSlug ) );
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function getDefaultInPageTab( $sPageSlug ) {
181 181
 
182
-        if ( ! $sPageSlug ) {
182
+        if ( !$sPageSlug ) {
183 183
             return '';
184 184
         }
185 185
         return ( $_oAdminPage = $this->_getOwnerObjectOfPage( $sPageSlug ) )
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function getOptionKey( $sPageSlug ) {
196 196
 
197
-        if ( ! $sPageSlug ) {
197
+        if ( !$sPageSlug ) {
198 198
             return '';
199 199
         }
200 200
         return ( $_oAdminPage = $this->_getOwnerObjectOfPage( $sPageSlug ) )
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
             $GLOBALS,
222 222
             array( 'aAdminPageFramework', 'aPageClasses' )
223 223
         );
224
-        foreach( $_aPageClasses as $_oAdminPage ) {
224
+        foreach ( $_aPageClasses as $_oAdminPage ) {
225 225
             if ( $_oAdminPage->oProp->isPageAdded( $sPageSlug ) ) {
226 226
                 return $_oAdminPage;
227 227
             }
Please login to merge, or discard this patch.
development/factory/post_type/AdminPageFramework_PostType_Model.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         if ( $this->oProp->bIsAdmin ) {
39 39
 
40
-            add_action( 'load_' . $this->oProp->sPostType, array( $this, '_replyToSetUpHooksForModel' ) );
40
+            add_action( 'load_'.$this->oProp->sPostType, array( $this, '_replyToSetUpHooksForModel' ) );
41 41
 
42 42
             if ( $this->oProp->sCallerPath ) {
43 43
                 new AdminPageFramework_PostType_Model__FlushRewriteRules( $this );
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
 
65 65
         // Properties - sets translatable labels.
66 66
         $this->oProp->aColumnHeaders = array(
67
-            'cb'        => '<input type="checkbox" />',     // Checkbox for bulk actions.
68
-            'title'     => $this->oMsg->get( 'title' ),     // Post title. Includes "edit", "quick edit", "trash" and "view" links. If $mode (set from `$_REQUEST`['mode']) is 'excerpt', a post excerpt is included between the title and links.
69
-            'author'    => $this->oMsg->get( 'author' ),    // Post author.
67
+            'cb'        => '<input type="checkbox" />', // Checkbox for bulk actions.
68
+            'title'     => $this->oMsg->get( 'title' ), // Post title. Includes "edit", "quick edit", "trash" and "view" links. If $mode (set from `$_REQUEST`['mode']) is 'excerpt', a post excerpt is included between the title and links.
69
+            'author'    => $this->oMsg->get( 'author' ), // Post author.
70 70
             'comments'  => '<div class="comment-grey-bubble"></div>', // Number of pending comments.
71
-            'date'      => $this->oMsg->get( 'date' ),      // The date and publish status of the post.
71
+            'date'      => $this->oMsg->get( 'date' ), // The date and publish status of the post.
72 72
         );
73 73
 
74 74
     }
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         echo $this->oUtil->addAndApplyFilter(
131 131
             $this,
132 132
             "cell_{$this->oProp->sPostType}_{$sColumnKey}",
133
-            '',  // value to be filtered - cell output
133
+            '', // value to be filtered - cell output
134 134
             $iPostID
135 135
         );
136 136
     }
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * @internal
180 180
      */
181 181
     public function _replyToRegisterTaxonomies() {
182
-        foreach( $this->oProp->aTaxonomies as $_sTaxonomySlug => $_aArguments ) {
182
+        foreach ( $this->oProp->aTaxonomies as $_sTaxonomySlug => $_aArguments ) {
183 183
             $this->_registerTaxonomy(
184 184
                 $_sTaxonomySlug,
185 185
                 $this->oUtil->getAsArray( $this->oProp->aTaxonomyObjectTypes[ $_sTaxonomySlug ] ), // object types
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
      */
196 196
     public function _registerTaxonomy( $sTaxonomySlug, array $aObjectTypes, array $aArguments ) {
197 197
 
198
-        if ( ! in_array( $this->oProp->sPostType, $aObjectTypes ) ) {
199
-            $aObjectTypes[] = $this->oProp->sPostType;
198
+        if ( !in_array( $this->oProp->sPostType, $aObjectTypes ) ) {
199
+            $aObjectTypes[ ] = $this->oProp->sPostType;
200 200
         }
201 201
         register_taxonomy(
202 202
             $sTaxonomySlug,
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      */
235 235
     public function _replyToRemoveTexonomySubmenuPages() {
236 236
 
237
-        foreach( $this->oProp->aTaxonomyRemoveSubmenuPages as $sSubmenuPageSlug => $sTopLevelPageSlug ) {
237
+        foreach ( $this->oProp->aTaxonomyRemoveSubmenuPages as $sSubmenuPageSlug => $sTopLevelPageSlug ) {
238 238
 
239 239
             remove_submenu_page( $sTopLevelPageSlug, $sSubmenuPageSlug );
240 240
 
Please login to merge, or discard this patch.
factory/post_type/_model/AdminPageFramework_Property_post_type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         'title'     => 'Title', // Post title. Includes "edit", "quick edit", "trash" and "view" links. If $mode (set from `$_REQUEST[ 'mode' ]`) is 'excerpt', a post excerpt is included between the title and links.
74 74
         'author'    => 'Author', // Post author.
75 75
         'comments'  => '<div class="comment-grey-bubble"></div>', // Number of pending comments.
76
-        'date'      => 'Date',     // The date and publish status of the post.
76
+        'date'      => 'Date', // The date and publish status of the post.
77 77
     );
78 78
 
79 79
     /**
Please login to merge, or discard this patch.