Completed
Branch dev (2df6d2)
by
unknown
34s
created
admin_page/_view/AdminPageFramework_View__PageRenderer__ScreenIcon.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function get() {
42 42
 
43
-        if ( ! $this->_isScreenIconVisible() ) {
43
+        if ( !$this->_isScreenIconVisible() ) {
44 44
             return '';
45 45
         }
46 46
         return $this->_getScreenIcon( $this->sPageSlug );
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
          */
53 53
         private function _isScreenIconVisible() {
54 54
 
55
-            $_bShowPageTitle        = $this->getElement(
55
+            $_bShowPageTitle = $this->getElement(
56 56
                 $this->oFactory->oProp->aPages,
57 57
                 array( $this->sPageSlug, 'show_page_title' )
58 58
             );
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                 array( $sPageSlug, 'href_icon_32x32' ),
131 131
                 ''
132 132
             );
133
-            if ( ! $_sScreenIconPath ) {
133
+            if ( !$_sScreenIconPath ) {
134 134
                 return;
135 135
             }
136 136
             $_sScreenIconPath = $this->getResolvedSRC(
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             $_aAttributes = array(
141 141
                 'style'    => $this->getInlineCSS(
142 142
                     array(
143
-                        'background-image' => "url('" . esc_url( $_sScreenIconPath ) . "')"
143
+                        'background-image' => "url('".esc_url( $_sScreenIconPath )."')"
144 144
                     )
145 145
                 )
146 146
             );
@@ -164,12 +164,12 @@  discard block
 block discarded – undo
164 164
                 array( $sPageSlug, 'screen_icon_id' ),
165 165
                 ''
166 166
             );
167
-            if ( ! $_sScreenIconID ) {
167
+            if ( !$_sScreenIconID ) {
168 168
                 return;
169 169
             }
170 170
 
171 171
             $_aAttributes = array(
172
-                'id'       => "icon-" . $_sScreenIconID,
172
+                'id'       => "icon-".$_sScreenIconID,
173 173
             );
174 174
 
175 175
             // Go to the catch clause.
@@ -192,16 +192,16 @@  discard block
 block discarded – undo
192 192
                 'class'    => $this->getClassAttribute(
193 193
                     $this->getAOrB(
194 194
                         empty( $_sIconIDAttribute ) && $_oScreen->post_type,
195
-                        sanitize_html_class( 'icon32-posts-' . $_oScreen->post_type ),
195
+                        sanitize_html_class( 'icon32-posts-'.$_oScreen->post_type ),
196 196
                         ''
197 197
                     ),
198 198
                     $this->getAOrB(
199 199
                         empty( $_sIconIDAttribute ) || $_sIconIDAttribute == $this->oFactory->oProp->sClassName,
200
-                        'generic',  // the default value
200
+                        'generic', // the default value
201 201
                         ''
202 202
                     )
203 203
                 ),
204
-                'id'       => "icon-" . $_sIconIDAttribute,
204
+                'id'       => "icon-".$_sIconIDAttribute,
205 205
             );
206 206
             return $this->_getScreenIconByAttributes( $_aAttributes );
207 207
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
              */
216 216
             private function _getScreenIDAttribute( $oScreen ) {
217 217
 
218
-                if ( ! empty( $oScreen->parent_base ) ) {
218
+                if ( !empty( $oScreen->parent_base ) ) {
219 219
                     return $oScreen->parent_base;
220 220
                 }
221 221
                 if ( 'page' === $oScreen->post_type ) {
@@ -236,10 +236,10 @@  discard block
 block discarded – undo
236 236
             private function _getScreenIconByAttributes( array $aAttributes ) {
237 237
 
238 238
                 $aAttributes[ 'class' ] = $this->getClassAttribute(
239
-                    'icon32',   // required for a screen icon container element.
239
+                    'icon32', // required for a screen icon container element.
240 240
                     $this->getElement( $aAttributes, 'class' )
241 241
                 );
242
-                return "<div " . $this->getAttributes( $aAttributes ) . ">"
242
+                return "<div ".$this->getAttributes( $aAttributes ).">"
243 243
                         . "<br />"
244 244
                     . "</div>";
245 245
 
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
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
      * @since       3.5.3
150 150
      * @return      string      The found page slug. An empty string if not found.
151 151
      * @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 ('').
152
-    */
152
+     */
153 153
     public function getCurrentPageSlug() {
154 154
         return isset( $_GET[ 'page' ] )
155 155
             ? $_GET[ 'page' ]
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->getElement( $_GET, 'page' );
135
-        if ( ! $_sCurrentPageSlug ) {
135
+        if ( !$_sCurrentPageSlug ) {
136 136
             return false;
137 137
         }
138 138
         $_sCurrentTabSlug = $this->getElement(
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      */
186 186
     public function getDefaultInPageTab( $sPageSlug ) {
187 187
 
188
-        if ( ! $sPageSlug ) {
188
+        if ( !$sPageSlug ) {
189 189
             return '';
190 190
         }
191 191
         return ( $_oAdminPage = $this->_getOwnerObjectOfPage( $sPageSlug ) )
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public function getOptionKey( $sPageSlug ) {
202 202
 
203
-        if ( ! $sPageSlug ) {
203
+        if ( !$sPageSlug ) {
204 204
             return '';
205 205
         }
206 206
         return ( $_oAdminPage = $this->_getOwnerObjectOfPage( $sPageSlug ) )
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
             $GLOBALS,
228 228
             array( 'aAdminPageFramework', 'aPageClasses' )
229 229
         );
230
-        foreach( $_aPageClasses as $_oAdminPage ) {
230
+        foreach ( $_aPageClasses as $_oAdminPage ) {
231 231
             if ( $_oAdminPage->oProp->isPageAdded( $sPageSlug ) ) {
232 232
                 return $_oAdminPage;
233 233
             }
Please login to merge, or discard this patch.
factory/page_meta_box/form/AdminPageFramework_Form_page_meta_box.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function construct() {
30 30
 
31 31
         add_filter(
32
-            'options_' . $this->aArguments[ 'caller_id' ],
32
+            'options_'.$this->aArguments[ 'caller_id' ],
33 33
             array( $this, '_replyToSanitizeSavedFormData' ),
34 34
             5   //  high priority as it must be done earlier
35 35
         );
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         // Extract the meta box field form data (options) from the page form data (options).
55 55
         return $this->castArrayContents(
56
-            $this->getDataStructureFromAddedFieldsets(),    // form data structure generate from fieldsets
56
+            $this->getDataStructureFromAddedFieldsets(), // form data structure generate from fieldsets
57 57
             $aSavedFormData
58 58
         );
59 59
 
Please login to merge, or discard this patch.
development/factory/page_meta_box/AdminPageFramework_MetaBox_Page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
      * @since       3.0.0
24 24
      * @deprecated  3.7.0      Use     `AdminPageFramework_PageMetaBox` instead.
25 25
      */
26
-    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
26
+    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
27 27
 
28 28
         parent::__construct( $sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain );
29 29
 
30 30
         $this->oUtil->showDeprecationNotice(
31
-            'The class, ' . __CLASS__ . ',', // deprecated item
31
+            'The class, '.__CLASS__.',', // deprecated item
32 32
             'AdminPageFramework_PageMetaBox' // alternative
33 33
         );
34 34
 
Please login to merge, or discard this patch.
factory/taxonomy_field/AdminPageFramework_TaxonomyField_View.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         return "{$_aField['field_id']}{$_sKey}";
69 69
     }
70 70
 
71
-   /**
71
+    /**
72 72
      * Adds input fields
73 73
      *
74 74
      * @internal
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             '',
48 48
             "[{$_sKey}]"
49 49
         );
50
-        return $_aField['field_id'] . $_sKey;
50
+        return $_aField[ 'field_id' ].$_sKey;
51 51
 
52 52
     }
53 53
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             '',
66 66
             "|{$_sKey}"
67 67
         );
68
-        return "{$_aField['field_id']}{$_sKey}";
68
+        return "{$_aField[ 'field_id' ]}{$_sKey}";
69 69
     }
70 70
 
71 71
    /**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             $_aOutput = array();
116 116
 
117 117
             // Set nonce.
118
-            $_aOutput[] = wp_nonce_field(
118
+            $_aOutput[ ] = wp_nonce_field(
119 119
                 $this->oProp->sClassHash,
120 120
                 $this->oProp->sClassHash,
121 121
                 true,
@@ -126,17 +126,17 @@  discard block
 block discarded – undo
126 126
             $this->_setOptionArray( $iTermID, $this->oProp->sOptionKey );
127 127
 
128 128
             // Get the field outputs
129
-            $_aOutput[] = $this->oForm->get( $bRenderTableRow );
129
+            $_aOutput[ ] = $this->oForm->get( $bRenderTableRow );
130 130
 
131 131
             // Filter the output
132 132
             $_sOutput = $this->oUtil->addAndApplyFilters(
133 133
                 $this,
134
-                'content_' . $this->oProp->sClassName,
134
+                'content_'.$this->oProp->sClassName,
135 135
                 $this->content( implode( PHP_EOL, $_aOutput ) )
136 136
             );
137 137
 
138 138
             // Do action
139
-            $this->oUtil->addAndDoActions( $this, 'do_' . $this->oProp->sClassName, $this );
139
+            $this->oUtil->addAndDoActions( $this, 'do_'.$this->oProp->sClassName, $this );
140 140
 
141 141
             return $_sOutput;
142 142
 
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
     public function _replyToPrintColumnCell( $vValue, $sColumnSlug, $sTermID ) {
156 156
 
157 157
         $_sCellHTML = '';
158
-        if ( isset( $_GET['taxonomy'] ) && $_GET['taxonomy'] ) {
159
-            $_sCellHTML = $this->oUtil->addAndApplyFilter( $this, "cell_{$_GET['taxonomy']}", $vValue, $sColumnSlug, $sTermID );
158
+        if ( isset( $_GET[ 'taxonomy' ] ) && $_GET[ 'taxonomy' ] ) {
159
+            $_sCellHTML = $this->oUtil->addAndApplyFilter( $this, "cell_{$_GET[ 'taxonomy' ]}", $vValue, $sColumnSlug, $sTermID );
160 160
         }
161 161
         $_sCellHTML = $this->oUtil->addAndApplyFilter( $this, "cell_{$this->oProp->sClassName}", $_sCellHTML, $sColumnSlug, $sTermID );
162 162
         $_sCellHTML = $this->oUtil->addAndApplyFilter( $this, "cell_{$this->oProp->sClassName}_{$sColumnSlug}", $_sCellHTML, $sTermID ); // 3.0.2+
Please login to merge, or discard this patch.
factory/taxonomy_field/AdminPageFramework_TaxonomyField_Router.php 1 patch
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 ) ) {
69
+        if ( isset( $_GET[ 'taxonomy' ] ) && !in_array( $_GET[ 'taxonomy' ], $this->oProp->aTaxonomySlugs ) ) {
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.
development/factory/widget/AdminPageFramework_Widget_Controller.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -19,22 +19,22 @@
 block discarded – undo
19 19
 abstract class AdminPageFramework_Widget_Controller extends AdminPageFramework_Widget_View {
20 20
 
21 21
     /**
22
-    * The method for necessary set-ups.
23
-    *
24
-    * <h4>Example</h4>
25
-    * <code>
26
-    *   public function setUp() {
27
-    *       $this->setArguments(
28
-    *           array(
29
-    *               'description'   =>  __( 'This is a sample widget with built-in field types created by Admin Page Framework.', 'admin-page-framework-demo' ),
30
-    *           )
31
-    *       );
32
-    *   }
33
-    * </code>
34
-    *
35
-    * @abstract
36
-    * @since        3.2.0
37
-    */
22
+     * The method for necessary set-ups.
23
+     *
24
+     * <h4>Example</h4>
25
+     * <code>
26
+     *   public function setUp() {
27
+     *       $this->setArguments(
28
+     *           array(
29
+     *               'description'   =>  __( 'This is a sample widget with built-in field types created by Admin Page Framework.', 'admin-page-framework-demo' ),
30
+     *           )
31
+     *       );
32
+     *   }
33
+     * </code>
34
+     *
35
+     * @abstract
36
+     * @since        3.2.0
37
+     */
38 38
     public function setUp() {}
39 39
 
40 40
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
      * @see         https://codex.wordpress.org/Function_Reference/wp_register_sidebar_widget
132 132
      * @return      void
133 133
      */
134
-    protected function setArguments( array $aArguments=array() ) {
134
+    protected function setArguments( array $aArguments = array() ) {
135 135
         $this->oProp->aWidgetArguments = $aArguments;
136 136
     }
137 137
 
Please login to merge, or discard this patch.
development/factory/widget/AdminPageFramework_Widget_Model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
 
37 37
         if ( $this->oProp->bIsAdmin ) {
38 38
             add_filter(
39
-                'validation_' . $this->oProp->sClassName,
39
+                'validation_'.$this->oProp->sClassName,
40 40
                 array( $this, '_replyToSortInputs' ),
41
-                1,  // set a high priority
41
+                1, // set a high priority
42 42
                 3   // number of parameters
43 43
             );
44 44
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function _replyToRegisterWidget() {
110 110
 
111
-        if ( ! is_object( $GLOBALS[ 'wp_widget_factory' ] ) ) {
111
+        if ( !is_object( $GLOBALS[ 'wp_widget_factory' ] ) ) {
112 112
             return;
113 113
         }
114 114
 
Please login to merge, or discard this patch.
development/utility/toc/AdminPageFramework_TableOfContents.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
      * @param       integer     $iDepth     The header number to parse.
38 38
      * @param       string      $sTitle     The heading title which appears at the beginning of the output.
39 39
      */
40
-    public function __construct( $sHTML, $iDepth=4, $sTitle='' ) {
40
+    public function __construct( $sHTML, $iDepth = 4, $sTitle = '' ) {
41 41
 
42 42
         $this->sTitle   = $sTitle;
43 43
         $this->sHTML    = $sHTML;
@@ -75,26 +75,26 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function getTOC() {
77 77
 
78
-        $iDepth     = $this->iDepth;
78
+        $iDepth = $this->iDepth;
79 79
 
80 80
         // get the headings down to the specified depth
81 81
         $this->sHTML = preg_replace_callback(
82
-            '/<h[2-' . $iDepth . ']*[^>]*>.*?<\/h[2-' . $iDepth . ']>/i',
82
+            '/<h[2-'.$iDepth.']*[^>]*>.*?<\/h[2-'.$iDepth.']>/i',
83 83
             array( $this, '_replyToInsertNamedElement' ),
84 84
             $this->sHTML
85 85
         );
86 86
 
87 87
         $_aOutput = array();
88
-        foreach( $this->_aMatches as $_iIndex => $_sMatch ) {
88
+        foreach ( $this->_aMatches as $_iIndex => $_sMatch ) {
89 89
             $_sMatch = strip_tags( $_sMatch, '<h1><h2><h3><h4><h5><h6><h7><h8>' );
90
-            $_sMatch = preg_replace( '/<h([1-' . $iDepth . '])>/', '<li class="toc$1"><a href="#toc_' . $_iIndex . '">', $_sMatch );
91
-            $_sMatch = preg_replace( '/<\/h[1-' . $iDepth . ']>/', '</a></li>', $_sMatch );
92
-            $_aOutput[] = $_sMatch;
90
+            $_sMatch = preg_replace( '/<h([1-'.$iDepth.'])>/', '<li class="toc$1"><a href="#toc_'.$_iIndex.'">', $_sMatch );
91
+            $_sMatch = preg_replace( '/<\/h[1-'.$iDepth.']>/', '</a></li>', $_sMatch );
92
+            $_aOutput[ ] = $_sMatch;
93 93
         }
94 94
 
95 95
         // plug the results into appropriate HTML tags
96 96
         $this->sTitle = $this->sTitle
97
-            ? '<p class="toc-title">' . $this->sTitle . '</p>'
97
+            ? '<p class="toc-title">'.$this->sTitle.'</p>'
98 98
             : '';
99 99
         return '<div class="toc">'
100 100
                 . $this->sTitle
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
         public function _replyToInsertNamedElement( $aMatches ) {
112 112
             static $_icount = -1;
113 113
             $_icount++;
114
-            $this->_aMatches[] = $aMatches[ 0 ];
115
-            return "<span class='toc_header_link' id='toc_{$_icount}'></span>" . PHP_EOL
114
+            $this->_aMatches[ ] = $aMatches[ 0 ];
115
+            return "<span class='toc_header_link' id='toc_{$_icount}'></span>".PHP_EOL
116 116
                 . $aMatches[ 0 ];
117 117
         }
118 118
         /**#@-*/
Please login to merge, or discard this patch.