Method getXtubeAlphabet
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
function getXtubeAlphabet()
{
$xtubeAlphabet = [
'0',
'1',
Similar blocks of code found in 2 locations. Consider refactoring. Open
function getXtubeAlphabet()
{
$xtubeAlphabet = [
'0',
'1',
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 123.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Line exceeds 120 characters; contains 185 characters Open
define('_MD_XOOPSTUBE_BEFORESUBMIT', "Before submitting a broken video request, please check that the actual source of the video you're about to report as broken, is no longer there.");
- Exclude checks
Line exceeds 120 characters; contains 173 characters Open
<span style='font-weight: bold;'>Blip.tv </span>embed code<span style='font-weight: bold;'>:</span> https://blip.tv/play/<span style='color: #FF0000;'>Abe6EwA</span> ...<br>
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
<span style='font-weight: bold;'>Megavideo:</span> https://www.megavideo.com/?v=<span style='color: #FF0000;'>J6YSRE0T</span><br>
- Exclude checks
Line exceeds 120 characters; contains 148 characters Open
define('_MD_XOOPSTUBE_THANKSFORINFO', 'Thank you for your submission.<br>You will be notified once your request has be approved by the Webmaster.');
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
<span style='font-weight: bold;'>SPIKE/ifilm:</span> https://www.ifilm.com/video/<span style='color: #FF0000;'>2718605</span><br>
- Exclude checks
Line exceeds 120 characters; contains 147 characters Open
<span style='font-weight: bold;'>Veoh:</span> https://www.veoh.com/videos/<span style='color: #FF0000;'>v15069875yApCz7r3</span>?jsonParams=...<br>
- Exclude checks
Line exceeds 120 characters; contains 137 characters Open
<span style='font-weight: bold;'>LiveLeak:</span> https://www.liveleak.com/view?i=<span style='color: #FF0000;'>a59_1205566630</span><br>
- Exclude checks
Line exceeds 120 characters; contains 126 characters Open
define('_MD_XOOPSTUBE_BEOBJECTIVE', "Please be objective, if everyone receives a 1 or a 10, the ratings aren't very useful.");
- Exclude checks
Line exceeds 120 characters; contains 154 characters Open
<span style='font-weight: bold;'>DailyMotion:</span> https://www.dailymotion.com/video/<span style='color: #FF0000;'>x40bhg</span>_blondesecretary_fun<br>
- Exclude checks
Line exceeds 120 characters; contains 171 characters Open
<span style='font-weight: bold;'>MySpace TV:</span> https://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=<span style='color: #FF0000;'>13171141</span><br>
- Exclude checks
Line exceeds 120 characters; contains 136 characters Open
define('_MD_XOOPSTUBE_MUSTREGFIRST', "Sorry, you don't have the permission to perform this action.<br>Please register or login first!");
- Exclude checks
Line exceeds 120 characters; contains 169 characters Open
<span style='font-weight: bold;'>MetaCafe:</span> https://www.metacafe.com/watch/<span style='color: #FF0000;'>191543/sperm_whale_encounters_underwater_robot</span>/<br>
- Exclude checks
Line exceeds 120 characters; contains 181 characters Open
<span style='font-weight: bold;'>Google Video:</span> https://video.google.com/videoplay?docid=<span style='color: #FF0000;'>4761076111111865377</span>&q=rov&total=913&start=...<br>
- Exclude checks
Line exceeds 120 characters; contains 179 characters Open
define('_MD_XOOPSTUBE_THEREARE', "There are <span style='font-weight: bold;'>%s</span> <em>Categories</em> and <span style='font-weight: bold;'>%s</span> <em>Videos</em> listed");
- Exclude checks
Line exceeds 120 characters; contains 154 characters Open
<span style='font-weight: bold;'>ClipFish:</span> https://www.clipfish.de/player.php?videoid=<span style='color: #FF0000;'>MTg1NTYyfDM1Ng</span>%3D%3D<br>
- Exclude checks
Line exceeds 120 characters; contains 199 characters Open
<span style='font-weight: bold;'>Maktoob:</span> file=https://<span style='color: #FF0000;'>m003.maktoob.com/files/23/42/95531c25b690e48a3d69966b6a33b8d2/video/131102</span>.flv (from embed-code)<br>
- Exclude checks
Line exceeds 120 characters; contains 151 characters Open
<span style='font-weight: bold;'>Viddler:</span> https://www.viddler.com/player/<span style='color: #FF0000;'>d32d2b94</span>/ (see embed code)</span>"
- Exclude checks
Line exceeds 120 characters; contains 165 characters Open
<span style='font-size: small;'><span style='font-weight: bold;'>YouTube:</span> https://www.youtube.com/watch?v=<span style='color: #FF0000;'>IsOtq-qCqZ4</span><br>
- Exclude checks
Line exceeds 120 characters; contains 134 characters Open
Thank you for taking the time to submit your opinion. We want to give our users a possibility to find quality software faster.<br><br>
- Exclude checks
Line exceeds 120 characters; contains 139 characters Open
define('_MD_XOOPSTUBE_ISAPPROVED', 'Thank-you for your submission.<br>Your request has been approved and will now appear in our listing.');
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
define('_MD_XOOPSTUBE_CANTVOTEOWN', 'You cannot vote on the resource you submitted.<br>All votes are logged and reviewed.');
- Exclude checks
Line exceeds 120 characters; contains 210 characters Open
define('_MD_XOOPSTUBE_VIDEO_PICURLNOTE', "<span style='font-size: small;'>Picture url when source is Google Video, MySpace TV, DailyMotion, Blip.tv, ClipFish, LiveLeak, Veoh, Vimeo, Viddler or Maktoob</span>");
- Exclude checks
Line exceeds 120 characters; contains 175 characters Open
define('_MD_XOOPSTUBE_THEREIS', "There is <span style='font-weight: bold;'>%s</span> <em>Category</em> and <span style='font-weight: bold;'>%s</span> <em>Videos</em> listed");
- Exclude checks
Line exceeds 120 characters; contains 157 characters Open
<span style='font-weight: bold;'>Photobucket:</span> https://i39.photobucket.com/albums/<span style='color: #FF0000;'>e168/vailtom/th_BigSquid</span>.jpg<br>
- Exclude checks
Line exceeds 120 characters; contains 267 characters Open
define('_MD_XOOPSTUBE_SUB_SNEWMNAMEDESC', '<ul><li>All new videos are subject to validation and may take up to 24 hours before they appear in our listing.</li><li>We reserve the rights to refuse any submitted video or change the content without approval.</li></ul>');
- Exclude checks