Completed
Branch master (3086fe)
by
unknown
36s
created
class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             ? $aTabDefinition[ 'tab_slug' ]
50 50
             : '';
51 51
 
52
-        if ( ! $this->sTabSlug ) {
52
+        if ( !$this->sTabSlug ) {
53 53
             return;
54 54
         }
55 55
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         if ( $aTabDefinition[ 'tab_slug' ] ) {
74 74
             add_action(
75
-                "load_{$sPageSlug}_{$aTabDefinition['tab_slug']}",
75
+                "load_{$sPageSlug}_{$aTabDefinition[ 'tab_slug' ]}",
76 76
                 array( $this, 'replyToLoadTab' )
77 77
             );
78 78
             add_action(
Please login to merge, or discard this patch.
class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Page_Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function __construct( $oFactory, array $aPageArguments ) {
30 30
 
31 31
         $this->oFactory     = $oFactory;
32
-        $this->sPageSlug    = $aPageArguments['page_slug'];
32
+        $this->sPageSlug    = $aPageArguments[ 'page_slug' ];
33 33
         $this->_addPage( $aPageArguments );
34 34
         $this->construct( $oFactory );
35 35
 
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function replyToLoadResources( $oFactory ) {
60 60
 
61
-        $_sCSSPath = AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/' . $this->sPageSlug . '.css';
62
-        if ( ! file_exists( $_sCSSPath ) ) {
61
+        $_sCSSPath = AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/'.$this->sPageSlug.'.css';
62
+        if ( !file_exists( $_sCSSPath ) ) {
63 63
             return;
64 64
         }
65 65
         $this->oFactory->enqueueStyle(
Please login to merge, or discard this patch.
class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             return $_oTOC->get();
47 47
         }
48 48
         return ''
49
-         . $_sContent;
49
+            . $_sContent;
50 50
 
51 51
     }
52 52
 
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @since       3.5.3
23 23
      */
24
-    protected function _getReadmeContents( $sFilePath, $sTOCTitle, $asSections=array() ) {
24
+    protected function _getReadmeContents( $sFilePath, $sTOCTitle, $asSections = array() ) {
25 25
 
26 26
         $_oWPReadmeParser = new AdminPageFramework_WPReadmeParser(
27 27
             $sFilePath,
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             )
35 35
         );
36 36
         $_sContent = '';
37
-        foreach( ( array ) $asSections as $_sSection  ) {
37
+        foreach ( ( array ) $asSections as $_sSection ) {
38 38
             $_sContent .= $_oWPReadmeParser->getSection( $_sSection );
39 39
         }
40 40
         if ( $sTOCTitle ) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
              * @since       3.6.1
67 67
              * @return      string      The generate HTML output.
68 68
              */
69
-            public function _replyToProcessShortcode_embed( $aAttributes, $sURL, $sShortcode='' ) {
69
+            public function _replyToProcessShortcode_embed( $aAttributes, $sURL, $sShortcode = '' ) {
70 70
 
71 71
                 $sURL   = isset( $aAttributes[ 'src' ] ) ? $aAttributes[ 'src' ] : $sURL;
72 72
                 $_sHTML = wp_oembed_get( $sURL );
@@ -108,27 +108,27 @@  discard block
 block discarded – undo
108 108
      *  array( 'Second Heading' => 'Another text', ),
109 109
      * )
110 110
      */
111
-    public function getContentsByHeader( $sContents, $iHeaderNumber=2 ) {
111
+    public function getContentsByHeader( $sContents, $iHeaderNumber = 2 ) {
112 112
 
113 113
         $_aContents = array();
114 114
         $_aSplitContents = preg_split(
115 115
             // '/^[\s]*==[\s]*(.+?)[\s]*==/m',
116
-            '/(<h[' . $iHeaderNumber . ']*[^>]*>.*?<\/h[' . $iHeaderNumber . ']>)/i',
116
+            '/(<h['.$iHeaderNumber.']*[^>]*>.*?<\/h['.$iHeaderNumber.']>)/i',
117 117
             $sContents,
118 118
             -1,
119
-            PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY
119
+            PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY
120 120
         );
121 121
 
122
-        foreach( $_aSplitContents as $_iIndex => $_sSplitContent ) {
123
-            if ( ! preg_match( '/<h[' . $iHeaderNumber . ']*[^>]*>(.*?)<\/h[' . $iHeaderNumber . ']>/i', $_sSplitContent , $_aMatches ) ) {
122
+        foreach ( $_aSplitContents as $_iIndex => $_sSplitContent ) {
123
+            if ( !preg_match( '/<h['.$iHeaderNumber.']*[^>]*>(.*?)<\/h['.$iHeaderNumber.']>/i', $_sSplitContent, $_aMatches ) ) {
124 124
                 continue;
125 125
             }
126 126
 
127
-            if ( ! isset( $_aMatches[ 1 ] ) ) {
127
+            if ( !isset( $_aMatches[ 1 ] ) ) {
128 128
                 continue;
129 129
             }
130
-            if ( isset( $_aSplitContents[ $_iIndex + 1 ] ) )  {
131
-                $_aContents[] = array(
130
+            if ( isset( $_aSplitContents[ $_iIndex + 1 ] ) ) {
131
+                $_aContents[ ] = array(
132 132
                     $_aMatches[ 1 ],
133 133
                     $_aSplitContents[ $_iIndex + 1 ]
134 134
                 );
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
             if ( ! isset( $_aMatches[ 1 ] ) ) {
128 128
                 continue;
129 129
             }
130
-            if ( isset( $_aSplitContents[ $_iIndex + 1 ] ) )  {
130
+            if ( isset( $_aSplitContents[ $_iIndex + 1 ] ) ) {
131 131
                 $_aContents[] = array(
132 132
                     $_aMatches[ 1 ],
133 133
                     $_aSplitContents[ $_iIndex + 1 ]
Please login to merge, or discard this patch.
admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 
26 26
         // Tabs
27 27
         new AdminPageFrameworkLoader_AdminPage_Help_Information(
28
-            $oFactory,    // factory object
29
-            $this->sPageSlug,   // page slug
28
+            $oFactory, // factory object
29
+            $this->sPageSlug, // page slug
30 30
             array(  // tab definition
31 31
                 'tab_slug'  => 'information',
32 32
                 'title'     => __( 'Support', 'admin-page-framework-loader' ),
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
                 'title'         => __( 'Getting Started', 'admin-page-framework-loader' ),
41 41
                 'url'           => add_query_arg(
42 42
                     array(
43
-                        'page'  => AdminPageFrameworkLoader_Registry::$aAdminPages['about'],
43
+                        'page'  => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ],
44 44
                         // 'tab'   => 'guide',
45 45
                     ),
46 46
                     admin_url( 'index.php' )   // Dashboard
47
-                ) . '#section-getting_started__'
47
+                ).'#section-getting_started__'
48 48
             )
49 49
         );
50 50
         new AdminPageFrameworkLoader_AdminPage_Help_FAQ(
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 'title'     => __( 'About', 'admin-page-framework-loader' ),
88 88
                 'url'       => add_query_arg(
89 89
                     array(
90
-                        'page' => AdminPageFrameworkLoader_Registry::$aAdminPages['about']
90
+                        'page' => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ]
91 91
                     ),
92 92
                     admin_url( 'index.php' )   // Dashboard
93 93
                 )
@@ -105,17 +105,17 @@  discard block
 block discarded – undo
105 105
 
106 106
         // Page meta boxes
107 107
         new AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks(
108
-            null,                                           // meta box id - passing null will make it auto generate
108
+            null, // meta box id - passing null will make it auto generate
109 109
             __( 'Resources', 'admin-page-framework-loader' ), // title
110 110
             array( // page slugs
111 111
                 AdminPageFrameworkLoader_Registry::$aAdminPages[ 'help' ],
112 112
             ),
113
-            'side',                                       // context
113
+            'side', // context
114 114
             'default'                                     // priority
115 115
         );
116 116
 
117 117
         $oFactory->enqueueStyle(
118
-            AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/help.css',
118
+            AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/help.css',
119 119
             $this->sPageSlug
120 120
         );
121 121
 
Please login to merge, or discard this patch.
admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon_Top.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
         // add_filter( 'wp_feed_cache_transient_lifetime', '__return_zero' );
34 34
 
35 35
         // Styles
36
-        $this->oFactory->enqueueStyle( AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/column.css' );
37
-        $this->oFactory->enqueueStyle( AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/feed-list.css' );
36
+        $this->oFactory->enqueueStyle( AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/column.css' );
37
+        $this->oFactory->enqueueStyle( AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/feed-list.css' );
38 38
 
39 39
         // $this->oFactory->setPageTitleVisibility( false );
40 40
         $this->oFactory->setInPageTabsVisibility( false );
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
     public function replyToDoTab() {
48 48
 
49 49
         $_oFeedList  = new AdminPageFrameworkLoader_FeedList( $this->sRSSURL );
50
-        $_aFeedItems = apply_filters( AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_admin_add_ons', $this->_getDemo() + $_oFeedList->get() );
50
+        $_aFeedItems = apply_filters( AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_admin_add_ons', $this->_getDemo() + $_oFeedList->get() );
51 51
         if ( empty( $_aFeedItems ) ) {
52
-            echo "<p>" . __( 'No add-on could be found.', 'admin-page-framework-loader' ) . "</p>";
52
+            echo "<p>".__( 'No add-on could be found.', 'admin-page-framework-loader' )."</p>";
53 53
             return;
54 54
         }
55 55
 
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
         private function _getList( array $aFeedItems ) {
68 68
 
69 69
             $_aOutput       = array();
70
-            $_aColumnInfo   = array (    // this will be modified as the items get rendered
70
+            $_aColumnInfo   = array(    // this will be modified as the items get rendered
71 71
                 'bRowTagOpened'      => false,
72 72
                 'bRowTagClosed'      => false,
73 73
                 'iCurrRowPos'        => 0,
74 74
                 'iCurrColPos'        => 0,
75 75
             );
76
-            $_aColumnOption = array (
76
+            $_aColumnOption = array(
77 77
                 'iMaxCols'           => 3,
78 78
                 'sClassAttr'         => 'apfl_columns',
79 79
                 'sClassAttrGroup'    => 'apfl_columns_box',
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
                 'sClassAttrFirstCol' => 'apfl_columns_first_col',
83 83
             );
84 84
 
85
-            $_sSiteURLWOQuery   = preg_replace( '/\?.*/', '', get_bloginfo( 'url' ) );
86
-            foreach( $aFeedItems as $_aItem ) {
87
-                $_aOutput[] = $this->_getFeedListItem(
85
+            $_sSiteURLWOQuery = preg_replace( '/\?.*/', '', get_bloginfo( 'url' ) );
86
+            foreach ( $aFeedItems as $_aItem ) {
87
+                $_aOutput[ ] = $this->_getFeedListItem(
88 88
                     ( array ) $_aItem,
89 89
                     $_aColumnInfo,
90 90
                     $_aColumnOption,
@@ -93,14 +93,14 @@  discard block
 block discarded – undo
93 93
             }
94 94
 
95 95
             // If the section (row) tag is not closed, close it.
96
-            if ( $_aColumnInfo[ 'bRowTagOpened' ] && ! $_aColumnInfo[ 'bRowTagClosed' ] ) {
97
-                $_aOutput[] = '</div>';
96
+            if ( $_aColumnInfo[ 'bRowTagOpened' ] && !$_aColumnInfo[ 'bRowTagClosed' ] ) {
97
+                $_aOutput[ ] = '</div>';
98 98
             }
99 99
             $_aColumnInfo[ 'bRowTagClosed' ] = true;
100 100
 
101 101
             // Enclose the output in the group tag
102 102
             return '<div class="apfl_addon_list_container">'
103
-                    . '<div class="' . $_aColumnOption[ 'sClassAttr' ] . ' ' . $_aColumnOption[ 'sClassAttrGroup' ] . '">'
103
+                    . '<div class="'.$_aColumnOption[ 'sClassAttr' ].' '.$_aColumnOption[ 'sClassAttrGroup' ].'">'
104 104
                         . implode( '', $_aOutput )
105 105
                     . '</div>'
106 106
                 . '</div>';
@@ -110,10 +110,10 @@  discard block
 block discarded – undo
110 110
              * Returns an HTML output from the given feed item array.
111 111
              * @return      string
112 112
              */
113
-            private function _getFeedListItem( array $aItem, array &$aColumnInfo, array $aColumnOption, $sSiteURLWOQuery='' ) {
113
+            private function _getFeedListItem( array $aItem, array &$aColumnInfo, array $aColumnOption, $sSiteURLWOQuery = '' ) {
114 114
 
115 115
                 // Initial checks
116
-                if ( ! isset( $aItem[ 'title' ] ) ) {
116
+                if ( !isset( $aItem[ 'title' ] ) ) {
117 117
                     return '';
118 118
                 }
119 119
 
@@ -139,20 +139,20 @@  discard block
 block discarded – undo
139 139
                 $_sTarget = '';
140 140
 
141 141
                 // Enclose the item buffer into the item container
142
-                $_sItem = '<div class="' . $aColumnOption['sClassAttrCol']
143
-                    . ' apfl_col_element_of_' . $aColumnOption['iMaxCols'] . ' '
142
+                $_sItem = '<div class="'.$aColumnOption[ 'sClassAttrCol' ]
143
+                    . ' apfl_col_element_of_'.$aColumnOption[ 'iMaxCols' ].' '
144 144
                     . ' apfl_extension '
145
-                    . ( ( 1 == $aColumnInfo['iCurrColPos'] ) ?  $aColumnOption['sClassAttrFirstCol']  : '' )
145
+                    . ( ( 1 == $aColumnInfo[ 'iCurrColPos' ] ) ? $aColumnOption[ 'sClassAttrFirstCol' ] : '' )
146 146
                     . '"'
147 147
                     . '>'
148 148
                         . '<div class="apfl_addon_item">'
149
-                            . "<h4 class='apfl_feed_item_title'>{$aItem['title']}</h4>"
149
+                            . "<h4 class='apfl_feed_item_title'>{$aItem[ 'title' ]}</h4>"
150 150
                             . "<div class='apfl_feed_item_description'>"
151
-                                . $aItem['description']
151
+                                . $aItem[ 'description' ]
152 152
                             . "</div>"
153 153
                             . "<div class='get-now apfl_feed_item_link_button'>"
154
-                                . "<a href='" . esc_url( $aItem[ 'link' ] ) . "' target='{$_sTarget}' rel='nofollow' class='button button-secondary'>"
155
-                                    . $aItem['label']
154
+                                . "<a href='".esc_url( $aItem[ 'link' ] )."' target='{$_sTarget}' rel='nofollow' class='button button-secondary'>"
155
+                                    . $aItem[ 'label' ]
156 156
                                 . "</a>"
157 157
                             . "</div>"
158 158
                         . '</div>'
@@ -160,18 +160,18 @@  discard block
 block discarded – undo
160 160
 
161 161
                 // If it's the first item in the row, add the class attribute.
162 162
                 // Be aware that at this point, the tag will be unclosed. Therefore, it must be closed later at some point.
163
-                if ( 1 == $aColumnInfo['iCurrColPos'] ) {
164
-                    $aColumnInfo['bRowTagOpened'] = true;
165
-                    $_sItem = '<div class="' . $aColumnOption['sClassAttrRow']  . '">'
163
+                if ( 1 == $aColumnInfo[ 'iCurrColPos' ] ) {
164
+                    $aColumnInfo[ 'bRowTagOpened' ] = true;
165
+                    $_sItem = '<div class="'.$aColumnOption[ 'sClassAttrRow' ].'">'
166 166
                         . $_sItem;
167 167
                 }
168 168
 
169 169
                 // If the current column position reached the set max column, increment the current position of row
170
-                if ( 0 === ( $aColumnInfo['iCurrColPos'] % $aColumnOption['iMaxCols'] ) ) {
171
-                    $aColumnInfo['iCurrRowPos']++;          // increment the row number
172
-                    $aColumnInfo['iCurrColPos'] = 0;        // reset the current column position
173
-                    $_sItem .= '</div>';  // close the section(row) div tag
174
-                    $aColumnInfo['bRowTagClosed'] = true;
170
+                if ( 0 === ( $aColumnInfo[ 'iCurrColPos' ] % $aColumnOption[ 'iMaxCols' ] ) ) {
171
+                    $aColumnInfo[ 'iCurrRowPos' ]++; // increment the row number
172
+                    $aColumnInfo[ 'iCurrColPos' ] = 0; // reset the current column position
173
+                    $_sItem .= '</div>'; // close the section(row) div tag
174
+                    $aColumnInfo[ 'bRowTagClosed' ] = true;
175 175
                 }
176 176
                 return $_sItem;
177 177
 
@@ -183,14 +183,14 @@  discard block
 block discarded – undo
183 183
          */
184 184
         private function _getDemo() {
185 185
 
186
-            $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys['main'] );
186
+            $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ] );
187 187
             $_bEnabled = $_oOption->get( 'enable_demo' );
188 188
 
189 189
             $_sTitle = __( 'Demo', 'admin=page-framework-loader' );
190 190
             return array(
191 191
                 $_sTitle => array(
192 192
                     'title'         => $_sTitle,
193
-                    'description'   => '<div style="text-align: center;" class="aligncenter"><img class="aligncenter" src="' . AdminPageFrameworkLoader_Registry::getPluginURL( '/asset/image/icon-128x128.png' ) . '" alt="' . esc_attr( $_sTitle ) . '"/></div>'
193
+                    'description'   => '<div style="text-align: center;" class="aligncenter"><img class="aligncenter" src="'.AdminPageFrameworkLoader_Registry::getPluginURL( '/asset/image/icon-128x128.png' ).'" alt="'.esc_attr( $_sTitle ).'"/></div>'
194 194
                         . '<p>'
195 195
                             . __( 'Showcases the features of Admin Page Framework.', 'admin-page-framework-loader' )
196 196
                         . '</p>',
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                                 ? 0
201 201
                                 : 1,
202 202
                         ) + $_GET,
203
-                        admin_url( $GLOBALS['pagenow'] )
203
+                        admin_url( $GLOBALS[ 'pagenow' ] )
204 204
                     ),
205 205
                     'label'         => $_bEnabled
206 206
                         ? "<span id='button-deactivate-demo' class='deactivate'>"
Please login to merge, or discard this patch.
AdminPageFrameworkLoader_AdminPageMetaBox_Notification.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function replyToDecideToLoad( /* $oScreen */ ) {
35 35
 
36
-        if ( ! $this->_isInThePage() ) {
36
+        if ( !$this->_isInThePage() ) {
37 37
             return;
38 38
         }
39 39
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         // Retrieve the development version.
46 46
         $this->_sDevelopmentVersion = $this->oUtil->getTransient(
47
-            AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX . 'devver'
47
+            AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX.'devver'
48 48
         );
49 49
 
50 50
         // Disable the meta box if the development version is not above the running one.
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
          */
64 64
         private function _scheduleEvent() {
65 65
 
66
-            $_sActionName = AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_action_get_development_version';
66
+            $_sActionName = AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_action_get_development_version';
67 67
             $_aArguments  = array();
68 68
             if ( wp_next_scheduled( $_sActionName, $_aArguments ) ) {
69 69
                 return false;
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 )
98 98
             . "</p>"
99 99
             . "<div style='width:100%; display:inline-block;'>"
100
-                . '<a href="' . esc_url( 'https://github.com/michaeluno/admin-page-framework/archive/dev.zip' ). '">'
100
+                . '<a href="'.esc_url( 'https://github.com/michaeluno/admin-page-framework/archive/dev.zip' ).'">'
101 101
                     . "<div class='button button-primary float-right'>"
102 102
                         . __( 'Download', 'admin-page-framework-loader' )
103 103
                     . "</div>"
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             . "</div>"
106 106
             ;
107 107
 
108
-        return $_sInsert . $sContent;
108
+        return $_sInsert.$sContent;
109 109
 
110 110
     }
111 111
 
Please login to merge, or discard this patch.
AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                     'class_name'           => 'AceCustomFieldType',
89 89
                     'label'                => __( 'ACE', 'admin-page-framework-loader' ),
90 90
                     'description'          => __( 'provides code syntax highlighting in a text area field.', 'admin-page-framework-loader' ),
91
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/ace-custom-field-type',
91
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/ace-custom-field-type',
92 92
                     'archive_file_path'    => 'custom-field-types/ace-custom-field-type/AceCustomFieldType.php',
93 93
                     'archive_dir_path'     => 'custom-field-types/ace-custom-field-type',
94 94
                     'text_domain'          => 'admin-page-framework',
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                     'class_name'           => 'GitHubCustomFieldType',
98 98
                     'label'                => __( 'GitHub Buttons', 'admin-page-framework-loader' ),
99 99
                     'description'          => __( 'allows you to display GitHub buttons in a field.', 'admin-page-framework-loader' ),
100
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/include/library/github-custom-field-type',
100
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/include/library/github-custom-field-type',
101 101
                     'archive_file_path'    => 'custom-field-types/github-custom-field-type/GitHubCustomFieldType.php',
102 102
                     'archive_dir_path'     => 'custom-field-types/github-custom-field-type',
103 103
                     'text_domain'          => 'admin-page-framework',
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                     'class_name'           => 'PathCustomFieldType',
107 107
                     'label'                => __( 'Path', 'admin-page-framework-loader' ),
108 108
                     'description'          => __( 'allows the user to select a file path on the server.', 'admin-page-framework-loader' ),
109
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/path-custom-field-type',
109
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/path-custom-field-type',
110 110
                     'archive_file_path'    => 'custom-field-types/path-custom-field-type/PathCustomFieldType.php',
111 111
                     'archive_dir_path'     => 'custom-field-types/path-custom-field-type',
112 112
                     'text_domain'          => 'admin-page-framework',
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                     'class_name'           => 'ToggleCustomFieldType',
116 116
                     'label'                => __( 'Toggle', 'admin-page-framework-loader' ),
117 117
                     'description'          => __( 'allows the user to switch a button.', 'admin-page-framework-loader' ),
118
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/toggle-custom-field-type',
118
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/toggle-custom-field-type',
119 119
                     'archive_file_path'    => 'custom-field-types/toggle-custom-field-type/ToggleCustomFieldType.php',
120 120
                     'archive_dir_path'     => 'custom-field-types/toggle-custom-field-type',
121 121
                     'text_domain'          => 'admin-page-framework',
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                     'class_name'           => 'NoUISliderCustomFieldType',
125 125
                     'label'                => __( 'NoUISlider (Range Slider)', 'admin-page-framework-loader' ),
126 126
                     'description'          => __( 'allows the user to set values in ranges.', 'admin-page-framework-loader' ),
127
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/nouislider-custom-field-type',
127
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/nouislider-custom-field-type',
128 128
                     'archive_file_path'    => 'custom-field-types/nouislider-custom-field-type/NoUISliderCustomFieldType.php',
129 129
                     'archive_dir_path'     => 'custom-field-types/nouislider-custom-field-type',
130 130
                     'text_domain'          => 'admin-page-framework',
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                     'class_name'           => 'Select2CustomFieldType',
134 134
                     'label'                => __( 'Select2', 'admin-page-framework-loader' ),
135 135
                     'description'          => __( 'allows the user to select items with autocomplete from a list which can be populated with AJAX.', 'admin-page-framework-loader' ),
136
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/select2-custom-field-type',
136
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/select2-custom-field-type',
137 137
                     'archive_file_path'    => 'custom-field-types/select2-custom-field-type/Select2CustomFieldType.php',
138 138
                     'archive_dir_path'     => 'custom-field-types/select2-custom-field-type',
139 139
                     'text_domain'          => 'admin-page-framework',
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                     'class_name'           => 'PostTypeTaxonomyCustomFieldType',
143 143
                     'label'                => __( 'Post Type Taxonomy', 'admin-page-framework-loader' ),
144 144
                     'description'          => __( 'allows the user to select taxonomy terms of selected post types.', 'admin-page-framework-loader' ),
145
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/post_type_taxonomy_field-type',
145
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/post_type_taxonomy_field-type',
146 146
                     'archive_file_path'    => 'custom-field-types/post_type_taxonomy_field-type/PostTypeTaxonomyCustomFieldType.php',
147 147
                     'archive_dir_path'     => 'custom-field-types/post_type_taxonomy_field-type',
148 148
                     'text_domain'          => 'admin-page-framework',
@@ -151,13 +151,13 @@  discard block
 block discarded – undo
151 151
 
152 152
             // Let third-party scripts add custom field types.
153 153
             $this->aCustomFieldTypes = apply_filters(
154
-                AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_custom_field_types',
154
+                AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_custom_field_types',
155 155
                 $this->aCustomFieldTypes
156 156
             );
157 157
 
158
-            foreach( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
158
+            foreach ( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
159 159
                 $this->aCustomFieldTypeLabels[ $_sKey ] = $_aCustomFieldType[ 'label' ]
160
-                    . ' - <span class="description">' . $_aCustomFieldType[ 'description' ] . '</span>';
160
+                    . ' - <span class="description">'.$_aCustomFieldType[ 'description' ].'</span>';
161 161
             }
162 162
 
163 163
         }
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
 
174 174
                 // Check the file extension.
175 175
                 $_aAllowedExtensions = apply_filters(
176
-                    AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_allowed_file_extensions',
176
+                    AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_allowed_file_extensions',
177 177
                     array( 'php', 'css', 'js' )
178 178
                 );
179
-                if ( ! in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions ) ) {
179
+                if ( !in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions ) ) {
180 180
                     return $sFileContents;
181 181
                 }
182 182
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                 private function _getModifiedInclusionList( $sFileContents ) {
207 207
                     return str_replace(
208 208
                         ');', // search
209
-                        $this->_getClassListOfCustomFieldTypes() . ');', // replace - @todo insert the selected class list here
209
+                        $this->_getClassListOfCustomFieldTypes().');', // replace - @todo insert the selected class list here
210 210
                         $sFileContents // subject
211 211
                     );
212 212
                 }
@@ -223,18 +223,18 @@  discard block
 block discarded – undo
223 223
                             $_POST,
224 224
                             array(
225 225
                                 $this->oFactory->oProp->sOptionKey,
226
-                                'generator',    // section id
226
+                                'generator', // section id
227 227
                                 'class_prefix'  // field id
228 228
                             ),
229 229
                             ''
230 230
                         );
231 231
                         $_aOutput = array();
232
-                        foreach( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
233
-                            $_aOutput[] = '    "' . $_sClassPrefix . $_sClassName . '"'
232
+                        foreach ( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
233
+                            $_aOutput[ ] = '    "'.$_sClassPrefix.$_sClassName.'"'
234 234
                                 . ' => '
235
-                                . 'AdminPageFramework_Registry::$sDirPath . ' . '"/' . ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ) . '",';
235
+                                . 'AdminPageFramework_Registry::$sDirPath . '.'"/'.ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ).'",';
236 236
                         }
237
-                        return implode( PHP_EOL, $_aOutput ) . PHP_EOL;
237
+                        return implode( PHP_EOL, $_aOutput ).PHP_EOL;
238 238
 
239 239
                     }
240 240
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
                         $this->aCustomFieldTypes // ArchiveFilePaths
253 253
                     );
254 254
                     $_aArchiveFilePaths = array();
255
-                    foreach( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
255
+                    foreach ( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
256 256
                         $_aArchiveFilePaths[ $_sClassName ] = $this->oFactory->oUtil->getElement(
257 257
                             $_aCustomFieldType,
258 258
                             'archive_file_path',
@@ -304,17 +304,17 @@  discard block
 block discarded – undo
304 304
                         array( $sParsingClassName, 'text_domain' )
305 305
                     );
306 306
                     if ( $_sFieldTypeTextDomain ) {
307
-                        $_aSearches[] = $_sFieldTypeTextDomain;
308
-                        $_aReplaces[] = $_sUserTextDomain;
307
+                        $_aSearches[ ] = $_sFieldTypeTextDomain;
308
+                        $_aReplaces[ ] = $_sUserTextDomain;
309 309
                     }
310 310
 
311
-                    $_aSearches[] = 'admin-page-framework';
312
-                    $_aReplaces[] = $_sUserTextDomain;
311
+                    $_aSearches[ ] = 'admin-page-framework';
312
+                    $_aReplaces[ ] = $_sUserTextDomain;
313 313
 
314 314
                     // Return the converted string.
315 315
                     return str_replace(
316
-                        $_aSearches,    // search
317
-                        $_aReplaces,    // replace
316
+                        $_aSearches, // search
317
+                        $_aReplaces, // replace
318 318
                         $sFileContents  // subject
319 319
                     );
320 320
 
@@ -332,8 +332,8 @@  discard block
 block discarded – undo
332 332
                         );
333 333
 
334 334
                         return preg_replace(
335
-                            $this->_getClassPrefixRegexPatterns( $_aSelectedFieldTypeClassNames ),    // search
336
-                            $this->_getClassPrefixRegexReplacements( $_aSelectedFieldTypeClassNames ),    // replace
335
+                            $this->_getClassPrefixRegexPatterns( $_aSelectedFieldTypeClassNames ), // search
336
+                            $this->_getClassPrefixRegexReplacements( $_aSelectedFieldTypeClassNames ), // replace
337 337
                             $sFileContents  // subject
338 338
                         );
339 339
 
@@ -346,8 +346,8 @@  discard block
 block discarded – undo
346 346
                         private function _getClassPrefixRegexPatterns( array $aSelectedFieldTypeClassNames ) {
347 347
 
348 348
                             $_aPregSearches = array();
349
-                            foreach( $aSelectedFieldTypeClassNames as $_sClassName ) {
350
-                                $_aPregSearches[] = '/(?<=[^a-zA-Z0-9])(' . $_sClassName . ')/';
349
+                            foreach ( $aSelectedFieldTypeClassNames as $_sClassName ) {
350
+                                $_aPregSearches[ ] = '/(?<=[^a-zA-Z0-9])('.$_sClassName.')/';
351 351
                             }
352 352
                             return $_aPregSearches;
353 353
 
@@ -359,9 +359,9 @@  discard block
 block discarded – undo
359 359
                          */
360 360
                         private function _getClassPrefixRegexReplacements( array $aSelectedFieldTypeClassNames ) {
361 361
 
362
-                            $_aPrefixedClassNames          = $aSelectedFieldTypeClassNames;
362
+                            $_aPrefixedClassNames = $aSelectedFieldTypeClassNames;
363 363
                             array_walk(
364
-                                $_aPrefixedClassNames,  // passed by reference
364
+                                $_aPrefixedClassNames, // passed by reference
365 365
                                 array( $this, '_replyToSetPrefix' ),
366 366
                                 $this->oFactory->oUtil->getElement(
367 367
                                     $_POST,
@@ -382,8 +382,8 @@  discard block
 block discarded – undo
382 382
                              * @callback    function    array_walk
383 383
                              * @return      string
384 384
                              */
385
-                            public function _replyToSetPrefix( &$sClassName, $sKey, $sPrefix='' ) {
386
-                                $sClassName = $sPrefix . '$0';
385
+                            public function _replyToSetPrefix( &$sClassName, $sKey, $sPrefix = '' ) {
386
+                                $sClassName = $sPrefix.'$0';
387 387
                             }
388 388
 
389 389
 
@@ -404,12 +404,12 @@  discard block
 block discarded – undo
404 404
              */
405 405
             public function replyToSetAdditionalDirectoriesForGenerator( $aDirPaths ) {
406 406
 
407
-                $_aCheckedCustomFieldTypes        = $this->_getSelectedCustomFieldTypes(
407
+                $_aCheckedCustomFieldTypes = $this->_getSelectedCustomFieldTypes(
408 408
                     $this->aCustomFieldTypes
409 409
                 );
410 410
 
411 411
                 $_aDirPathInfo = array();
412
-                foreach( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
412
+                foreach ( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
413 413
 
414 414
                     $_sArchiveDirPath = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'archive_dir_path' );
415 415
                     $_sSourceDirPath  = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'directory_path' );
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
                  * @return      array       The array keys of the checked items.
426 426
                  * @since       3.6.0
427 427
                  */
428
-                private function _getSelectedCustomFieldTypes( array $aSubject=array() ) {
428
+                private function _getSelectedCustomFieldTypes( array $aSubject = array() ) {
429 429
 
430 430
                     $_aCheckedCustomFieldTypes = $this->oFactory->oUtil->getElementAsArray(
431 431
                         $_POST,
Please login to merge, or discard this patch.
tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             $oAdminPage,
27 27
             $this->sPageSlug,
28 28
             array(
29
-                'section_id'    => $this->sTabSlug,       // avoid hyphen(dash), dots, and white spaces
29
+                'section_id'    => $this->sTabSlug, // avoid hyphen(dash), dots, and white spaces
30 30
                 'tab_slug'      => $this->sTabSlug,
31 31
                 'title'         => __( 'Download Framework', 'admin-page-framework-loader' ),
32 32
                 'description'   => array(
Please login to merge, or discard this patch.
generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $this->oFactory = $oFactory;
31 31
 
32 32
         add_action(
33
-            'export_name_' . $this->sPageSlug . '_' . $this->sTabSlug,
33
+            'export_name_'.$this->sPageSlug.'_'.$this->sTabSlug,
34 34
             array( $this, 'replyToFilterFileName' ),
35 35
             10,
36 36
             5
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
                 'label_min_width'   => 0,
128 128
                 'order'             => 100,
129 129
                 'value'             => __( 'Download', 'adimn-page-framework-demo' ),
130
-                'file_name'         => 'admin-page-framework.zip',  // the default file name. This will be modified by the filter.
131
-                'format'            => 'text',  // 'json', 'text', 'array'
130
+                'file_name'         => 'admin-page-framework.zip', // the default file name. This will be modified by the filter.
131
+                'format'            => 'text', // 'json', 'text', 'array'
132 132
                 'description'       => $oFactory->oUtil->getAOrB(
133 133
                     class_exists( 'ZipArchive' ),
134 134
                     __( 'Download the compiled framework files as a zip file.', 'admin-page-framework-loader' ),
@@ -183,8 +183,8 @@  discard block
 block discarded – undo
183 183
 
184 184
         // the class prefix must not contain white spaces and some other characters not supported in PHP class names.
185 185
         preg_match(
186
-            '/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/',     // pattern - allowed characters for variables in PHP.
187
-            $aInput[ 'class_prefix' ],     // subject
186
+            '/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', // pattern - allowed characters for variables in PHP.
187
+            $aInput[ 'class_prefix' ], // subject
188 188
             $_aMatches
189 189
         );
190 190
         if ( $aInput[ 'class_prefix' ] && empty( $_aMatches ) ) {
@@ -192,13 +192,13 @@  discard block
 block discarded – undo
192 192
             $_bVerified = false;
193 193
         }
194 194
 
195
-        if ( ! $aInput[ 'text_domain' ] ) {
195
+        if ( !$aInput[ 'text_domain' ] ) {
196 196
             $_aErrors[ $this->sSectionID ][ 'text_domain' ] = __( 'The text domain cannot be empty.', 'admin-page-framework-loader' );
197 197
             $_bVerified = false;
198 198
         }
199 199
 
200 200
         // An invalid value is found. Set a field error array and an admin notice and return the old values.
201
-        if ( ! $_bVerified ) {
201
+        if ( !$_bVerified ) {
202 202
             $oAdminPage->setFieldErrors( $_aErrors );
203 203
             $oAdminPage->setSettingNotice( __( 'There was something wrong with your input.', 'admin-page-framework-loader' ) );
204 204
             return $aOldInput;
@@ -240,8 +240,8 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function replyToDownloadFramework( $aSavedData, $sSubmittedFieldID, $sSubmittedInputID, $oAdminPage ) {
242 242
 
243
-        $_sFrameworkDirPath = AdminPageFrameworkLoader_Registry::$sDirPath . '/library/apf';
244
-        if ( ! file_exists( $_sFrameworkDirPath ) ) {
243
+        $_sFrameworkDirPath = AdminPageFrameworkLoader_Registry::$sDirPath.'/library/apf';
244
+        if ( !file_exists( $_sFrameworkDirPath ) ) {
245 245
             return $aSavedData;
246 246
         }
247 247
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
             $_sFrameworkDirPath,
251 251
             $_sTempFile
252 252
         );
253
-        header( "Content-Length: " . strlen( $_sData ) );
253
+        header( "Content-Length: ".strlen( $_sData ) );
254 254
         unlink( $_sTempFile );
255 255
         return $_sData;
256 256
 
@@ -267,9 +267,9 @@  discard block
 block discarded – undo
267 267
                 $sFrameworkDirPath,
268 268
                 $sDestinationPath,
269 269
                 array(
270
-                    'include_directory'             => false,   // wrap contents in a sub-directory
270
+                    'include_directory'             => false, // wrap contents in a sub-directory
271 271
                     'additional_source_directories' => apply_filters(
272
-                        AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_additional_source_directories',
272
+                        AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_additional_source_directories',
273 273
                         array() // directory paths
274 274
                     ),
275 275
                 ),
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
                 )
281 281
             );
282 282
             $_bSucceed = $_oZip->compress();
283
-            if ( ! $_bSucceed ) {
283
+            if ( !$_bSucceed ) {
284 284
                 return '';
285 285
             }
286 286
             return file_get_contents( $sDestinationPath );
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 
301 301
                 // Check if it belongs to selected components.
302 302
                 if ( false === $this->_isAllowedArchivePath( $sPathInArchive ) ) {
303
-                    return '';  // empty value will drop the entry
303
+                    return ''; // empty value will drop the entry
304 304
                 }
305 305
                 return $sPathInArchive;
306 306
 
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
                  */
320 320
                 private function _isAllowedArchivePath( $sPath ) {
321 321
 
322
-                    foreach( $this->_getDisallowedArchiveDirectoryPaths() as $_sDisallowedPath ) {
322
+                    foreach ( $this->_getDisallowedArchiveDirectoryPaths() as $_sDisallowedPath ) {
323 323
                         $_bHasPrefix = $this->oFactory->oUtil->hasPrefix(
324 324
                             ltrim( $_sDisallowedPath, '/' ), // needle
325 325
                             ltrim( $sPath, '/' ) // haystack
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
                     // List paths.
393 393
                     $_aAllComponentsPaths       = array();
394 394
                     $_aSelectedComponentsPaths  = array();
395
-                    foreach( $this->_aComponentPaths as $_sKey => $_aPaths ) {
395
+                    foreach ( $this->_aComponentPaths as $_sKey => $_aPaths ) {
396 396
 
397 397
                         // Extract all component paths.
398 398
                         $_aAllComponentsPaths = array_merge(
@@ -447,16 +447,16 @@  discard block
 block discarded – undo
447 447
 
448 448
                 // Check the file extension.
449 449
                 $_aAllowedExtensions = apply_filters(
450
-                    AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_allowed_file_extensions',
450
+                    AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_allowed_file_extensions',
451 451
                     array( 'php', 'css', 'js' )
452 452
                 );
453
-                if ( ! in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions ) ) {
453
+                if ( !in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions ) ) {
454 454
                     return $sFileContents;
455 455
                 }
456 456
 
457 457
                 // Modify the file contents.
458 458
                 $sFileContents = apply_filters(
459
-                    AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_file_contents',
459
+                    AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_file_contents',
460 460
                     $sFileContents,
461 461
                     $sPathInArchive,
462 462
                     $this->oFactory->oUtil->getElement(
@@ -517,12 +517,12 @@  discard block
 block discarded – undo
517 517
                             $this->_getCheckedComponents()
518 518
                         );
519 519
                         $_aInsert = array(
520
-                            'Included Components: ' . implode( ', ', $_aCheckedComponents ),
521
-                            'Generated on ' . date( 'Y-m-d' ),  // today's date
520
+                            'Included Components: '.implode( ', ', $_aCheckedComponents ),
521
+                            'Generated on '.date( 'Y-m-d' ), // today's date
522 522
                         );
523 523
                         return preg_replace(
524 524
                             '#\*/#', // needle - matches '*/'
525
-                            implode( PHP_EOL . ' ', $_aInsert ) . ' \0', // replacement \0 is a back-reference to '*/'
525
+                            implode( PHP_EOL.' ', $_aInsert ).' \0', // replacement \0 is a back-reference to '*/'
526 526
                             $sFileContents, // subject
527 527
                             1 // replace only the first occurrence
528 528
                         );
@@ -536,14 +536,14 @@  discard block
 block discarded – undo
536 536
                     private function _modifyClassNameOfInclusionList( $sFileContents ) {
537 537
                         // Replace the array key names.
538 538
                         $sFileContents = preg_replace_callback(
539
-                            '/(["\'])(.+)\1(?=\s?+=>)/',  // pattern '
540
-                            array( $this, '_replyToModifyPathName' ),   // callable
539
+                            '/(["\'])(.+)\1(?=\s?+=>)/', // pattern '
540
+                            array( $this, '_replyToModifyPathName' ), // callable
541 541
                             $sFileContents // subject
542 542
                         );
543 543
                         // Replace the registry class names.
544 544
                         return preg_replace_callback(
545
-                            '/(=>\s?+)(.+)(?=::)/',  // pattern '
546
-                            array( $this, '_replyToModifyPathName' ),   // callable
545
+                            '/(=>\s?+)(.+)(?=::)/', // pattern '
546
+                            array( $this, '_replyToModifyPathName' ), // callable
547 547
                             $sFileContents // subject
548 548
                         );
549 549
                     }
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
                     return strlen( $_sPrefix )
569 569
                         ? str_replace(
570 570
                             'AdminPageFramework', // search
571
-                            $_sPrefix . 'AdminPageFramework', // replace
571
+                            $_sPrefix.'AdminPageFramework', // replace
572 572
                             $sSubject // subject
573 573
                         )
574 574
                         : $sSubject;
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
                      */
601 601
                     private function _getFormSubmitValueByFieldIDAsString( $sFieldID ) {
602 602
 
603
-                        static $_aCaches=array();
603
+                        static $_aCaches = array();
604 604
                         $_aCaches[ $sFieldID ] = isset( $_aCaches[ $sFieldID ] )
605 605
                             ? $_aCaches[ $sFieldID ]
606 606
                             : $this->oFactory->oUtil->getElement(
@@ -634,9 +634,9 @@  discard block
 block discarded – undo
634 634
                 'public',
635 635
             ),
636 636
             'Content-Description'       => 'File Transfer',
637
-            'Content-type'              => 'application/octet-stream',   // 'application/zip' may work as well
637
+            'Content-type'              => 'application/octet-stream', // 'application/zip' may work as well
638 638
             'Content-Transfer-Encoding' => 'binary',
639
-            'Content-Disposition'       => 'attachment; filename="' . $sFileName .'";',
639
+            'Content-Disposition'       => 'attachment; filename="'.$sFileName.'";',
640 640
             // 'Content-Length'            => strlen( $mData ),
641 641
         ) + $aHeader;
642 642
 
@@ -673,10 +673,10 @@  discard block
 block discarded – undo
673 673
         $_sFileNameWOExtension = trim( $_sFileNameWOExtension );
674 674
         return $this->oFactory->oUtil->getAOrB(
675 675
                 $_sFileNameWOExtension,
676
-                $_sFileNameWOExtension . '-admin-page-framework',
676
+                $_sFileNameWOExtension.'-admin-page-framework',
677 677
                 'admin-page-framework'
678 678
             )
679
-            . '.' . AdminPageFramework_Registry::VERSION
679
+            . '.'.AdminPageFramework_Registry::VERSION
680 680
             . '.zip';
681 681
 
682 682
     }
Please login to merge, or discard this patch.