Conditions | 1 |
Paths | 1 |
Total Lines | 65 |
Code Lines | 56 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
1 | <?php |
||
110 | public function abbc3_bbcodes() |
||
111 | { |
||
112 | return array( |
||
113 | // These exist in core |
||
114 | 'b', |
||
115 | 'code', |
||
116 | 'color', |
||
117 | 'email', |
||
118 | 'flash', |
||
119 | 'i', |
||
120 | 'img=', |
||
121 | 'listb', |
||
122 | 'listitem', |
||
123 | 'listo', |
||
124 | 'quote', |
||
125 | 'size', |
||
126 | 'u', |
||
127 | 'url', |
||
128 | 'url=', |
||
129 | |||
130 | // These were not really BBCodes |
||
131 | 'copy', |
||
132 | 'cut', |
||
133 | 'grad', |
||
134 | 'paste', |
||
135 | 'plain', |
||
136 | 'imgshack', |
||
137 | |||
138 | // These are deprecated |
||
139 | 'click', |
||
140 | 'ed2k', |
||
141 | 'flv', |
||
142 | 'quicktime', |
||
143 | 'ram', |
||
144 | 'rapidshare', |
||
145 | 'stream', |
||
146 | 'testlink', |
||
147 | 'video', |
||
148 | 'wave=', |
||
149 | 'web', |
||
150 | 'scrippet', |
||
151 | 'search', |
||
152 | 'thumbnail', |
||
153 | 'hr', |
||
154 | 'tab=', |
||
155 | 'tabs', |
||
156 | 'table=', |
||
157 | 'anchor=', |
||
158 | 'upload', |
||
159 | 'html', |
||
160 | 'collegehumor', |
||
161 | 'dm', |
||
162 | 'gamespot', |
||
163 | 'ignvideo', |
||
164 | 'liveleak', |
||
165 | 'veoh', |
||
166 | |||
167 | // These are being replaced by new BBCodes |
||
168 | 'align=justify', // replaced by align= |
||
169 | 'align=left', // replaced by align= |
||
170 | 'align=right', // replaced by align= |
||
171 | 'dir=rtl', // replaced by dir= |
||
172 | 'marq=down', // replaced by marq= |
||
173 | 'marq=left', // replaced by marq= |
||
174 | 'marq=right', // replaced by marq= |
||
175 | ); |
||
178 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths