chan-sccp/PAMI

View on GitHub

Showing 132 of 498 total issues

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * ContactList Event
 * isListEntry and Part Action: PJSIPShowContacts
 *
Severity: Major
Found in src/PAMI/Message/Event/ContactListEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/CdrEvent.php on lines 1..213
src/PAMI/Message/Event/FAXStatusEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeMuteEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeTalkRequestEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeTalkingEvent.php on lines 1..270

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 247.

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

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * MeetmeTalkRequest Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/MeetmeTalkRequestEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/CdrEvent.php on lines 1..213
src/PAMI/Message/Event/ContactListEvent.php on lines 1..270
src/PAMI/Message/Event/FAXStatusEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeMuteEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeTalkingEvent.php on lines 1..270

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 247.

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

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * FAXStatus Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/FAXStatusEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/CdrEvent.php on lines 1..213
src/PAMI/Message/Event/ContactListEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeMuteEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeTalkRequestEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeTalkingEvent.php on lines 1..270

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 247.

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

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * MeetmeTalking Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/MeetmeTalkingEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/CdrEvent.php on lines 1..213
src/PAMI/Message/Event/ContactListEvent.php on lines 1..270
src/PAMI/Message/Event/FAXStatusEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeMuteEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeTalkRequestEvent.php on lines 1..270

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 247.

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

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * Event triggered when a channel changes its status.
 *
 * NOTE: For correct callerid values: see: https://issues.asterisk.org/jira/browse/ASTERISK-16910
Severity: Major
Found in src/PAMI/Message/Event/CdrEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/ContactListEvent.php on lines 1..270
src/PAMI/Message/Event/FAXStatusEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeMuteEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeTalkRequestEvent.php on lines 1..270
src/PAMI/Message/Event/MeetmeTalkingEvent.php on lines 1..270

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 247.

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

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * Event from PJSIPShowRegistrationsInbound
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/InboundRegistrationDetailEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/AGIExecEndEvent.php on lines 1..215
src/PAMI/Message/Event/AorDetailEvent.php on lines 1..217
src/PAMI/Message/Event/MeetmeLeaveEvent.php on lines 1..258
src/PAMI/Message/Event/MiniVoiceMailEvent.php on lines 1..258
src/PAMI/Message/Event/QueueCallerAbandonEvent.php on lines 1..215

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 234.

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

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * Event from PJSIPShowEndpoint
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/AorDetailEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/AGIExecEndEvent.php on lines 1..215
src/PAMI/Message/Event/InboundRegistrationDetailEvent.php on lines 1..217
src/PAMI/Message/Event/MeetmeLeaveEvent.php on lines 1..258
src/PAMI/Message/Event/MiniVoiceMailEvent.php on lines 1..258
src/PAMI/Message/Event/QueueCallerAbandonEvent.php on lines 1..215

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 234.

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

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * MiniVoiceMail Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/MiniVoiceMailEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/AGIExecEndEvent.php on lines 1..215
src/PAMI/Message/Event/AorDetailEvent.php on lines 1..217
src/PAMI/Message/Event/InboundRegistrationDetailEvent.php on lines 1..217
src/PAMI/Message/Event/MeetmeLeaveEvent.php on lines 1..258
src/PAMI/Message/Event/QueueCallerAbandonEvent.php on lines 1..215

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 234.

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

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * Event triggered when a received AGI command completes processing.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/AGIExecEndEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/AorDetailEvent.php on lines 1..217
src/PAMI/Message/Event/InboundRegistrationDetailEvent.php on lines 1..217
src/PAMI/Message/Event/MeetmeLeaveEvent.php on lines 1..258
src/PAMI/Message/Event/MiniVoiceMailEvent.php on lines 1..258
src/PAMI/Message/Event/QueueCallerAbandonEvent.php on lines 1..215

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 234.

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

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * MeetmeLeave Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/MeetmeLeaveEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/AGIExecEndEvent.php on lines 1..215
src/PAMI/Message/Event/AorDetailEvent.php on lines 1..217
src/PAMI/Message/Event/InboundRegistrationDetailEvent.php on lines 1..217
src/PAMI/Message/Event/MiniVoiceMailEvent.php on lines 1..258
src/PAMI/Message/Event/QueueCallerAbandonEvent.php on lines 1..215

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 234.

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

Further Reading

Similar blocks of code found in 6 locations. Consider refactoring.
Open

<?php
/**
 * Event triggered when a caller abandons the queue.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/QueueCallerAbandonEvent.php and 5 other locations - About 7 hrs to fix
src/PAMI/Message/Event/AGIExecEndEvent.php on lines 1..215
src/PAMI/Message/Event/AorDetailEvent.php on lines 1..217
src/PAMI/Message/Event/InboundRegistrationDetailEvent.php on lines 1..217
src/PAMI/Message/Event/MeetmeLeaveEvent.php on lines 1..258
src/PAMI/Message/Event/MiniVoiceMailEvent.php on lines 1..258

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 234.

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

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

<?php
/**
 * Event from PJSIPShowRegistrationsOutbound
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/OutboundRegistrationDetailEvent.php and 7 other locations - About 6 hrs to fix
src/PAMI/Message/Event/AgentLoginEvent.php on lines 1..244
src/PAMI/Message/Event/DTMFEndEvent.php on lines 1..208
src/PAMI/Message/Event/MeetmeJoinEvent.php on lines 1..246
src/PAMI/Message/Event/QueueCallerJoinEvent.php on lines 1..205
src/PAMI/Message/Event/QueueCallerLeaveEvent.php on lines 1..205
src/PAMI/Message/Event/QueueMemberPauseEvent.php on lines 1..246
src/PAMI/Message/Event/StatusEvent.php on lines 1..207

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 221.

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

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

<?php
/**
 * MeetmeJoin Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/MeetmeJoinEvent.php and 7 other locations - About 6 hrs to fix
src/PAMI/Message/Event/AgentLoginEvent.php on lines 1..244
src/PAMI/Message/Event/DTMFEndEvent.php on lines 1..208
src/PAMI/Message/Event/OutboundRegistrationDetailEvent.php on lines 1..207
src/PAMI/Message/Event/QueueCallerJoinEvent.php on lines 1..205
src/PAMI/Message/Event/QueueCallerLeaveEvent.php on lines 1..205
src/PAMI/Message/Event/QueueMemberPauseEvent.php on lines 1..246
src/PAMI/Message/Event/StatusEvent.php on lines 1..207

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 221.

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

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

<?php
/**
 * Event triggered when a DTMF digit has ended on a channel.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/DTMFEndEvent.php and 7 other locations - About 6 hrs to fix
src/PAMI/Message/Event/AgentLoginEvent.php on lines 1..244
src/PAMI/Message/Event/MeetmeJoinEvent.php on lines 1..246
src/PAMI/Message/Event/OutboundRegistrationDetailEvent.php on lines 1..207
src/PAMI/Message/Event/QueueCallerJoinEvent.php on lines 1..205
src/PAMI/Message/Event/QueueCallerLeaveEvent.php on lines 1..205
src/PAMI/Message/Event/QueueMemberPauseEvent.php on lines 1..246
src/PAMI/Message/Event/StatusEvent.php on lines 1..207

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 221.

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

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

<?php
/**
 * Event triggered when an action Status is issued.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/StatusEvent.php and 7 other locations - About 6 hrs to fix
src/PAMI/Message/Event/AgentLoginEvent.php on lines 1..244
src/PAMI/Message/Event/DTMFEndEvent.php on lines 1..208
src/PAMI/Message/Event/MeetmeJoinEvent.php on lines 1..246
src/PAMI/Message/Event/OutboundRegistrationDetailEvent.php on lines 1..207
src/PAMI/Message/Event/QueueCallerJoinEvent.php on lines 1..205
src/PAMI/Message/Event/QueueCallerLeaveEvent.php on lines 1..205
src/PAMI/Message/Event/QueueMemberPauseEvent.php on lines 1..246

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 221.

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

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

<?php
/**
 * AgentLogin Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/AgentLoginEvent.php and 7 other locations - About 6 hrs to fix
src/PAMI/Message/Event/DTMFEndEvent.php on lines 1..208
src/PAMI/Message/Event/MeetmeJoinEvent.php on lines 1..246
src/PAMI/Message/Event/OutboundRegistrationDetailEvent.php on lines 1..207
src/PAMI/Message/Event/QueueCallerJoinEvent.php on lines 1..205
src/PAMI/Message/Event/QueueCallerLeaveEvent.php on lines 1..205
src/PAMI/Message/Event/QueueMemberPauseEvent.php on lines 1..246
src/PAMI/Message/Event/StatusEvent.php on lines 1..207

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 221.

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

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

<?php
/**
 * QueueMemberPause Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/QueueMemberPauseEvent.php and 7 other locations - About 6 hrs to fix
src/PAMI/Message/Event/AgentLoginEvent.php on lines 1..244
src/PAMI/Message/Event/DTMFEndEvent.php on lines 1..208
src/PAMI/Message/Event/MeetmeJoinEvent.php on lines 1..246
src/PAMI/Message/Event/OutboundRegistrationDetailEvent.php on lines 1..207
src/PAMI/Message/Event/QueueCallerJoinEvent.php on lines 1..205
src/PAMI/Message/Event/QueueCallerLeaveEvent.php on lines 1..205
src/PAMI/Message/Event/StatusEvent.php on lines 1..207

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 221.

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

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

<?php
/**
 * Event triggered when a caller leaves a Queue.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/QueueCallerLeaveEvent.php and 7 other locations - About 6 hrs to fix
src/PAMI/Message/Event/AgentLoginEvent.php on lines 1..244
src/PAMI/Message/Event/DTMFEndEvent.php on lines 1..208
src/PAMI/Message/Event/MeetmeJoinEvent.php on lines 1..246
src/PAMI/Message/Event/OutboundRegistrationDetailEvent.php on lines 1..207
src/PAMI/Message/Event/QueueCallerJoinEvent.php on lines 1..205
src/PAMI/Message/Event/QueueMemberPauseEvent.php on lines 1..246
src/PAMI/Message/Event/StatusEvent.php on lines 1..207

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 221.

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

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

<?php
/**
 * Event triggered when a caller joins a Queue.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/QueueCallerJoinEvent.php and 7 other locations - About 6 hrs to fix
src/PAMI/Message/Event/AgentLoginEvent.php on lines 1..244
src/PAMI/Message/Event/DTMFEndEvent.php on lines 1..208
src/PAMI/Message/Event/MeetmeJoinEvent.php on lines 1..246
src/PAMI/Message/Event/OutboundRegistrationDetailEvent.php on lines 1..207
src/PAMI/Message/Event/QueueCallerLeaveEvent.php on lines 1..205
src/PAMI/Message/Event/QueueMemberPauseEvent.php on lines 1..246
src/PAMI/Message/Event/StatusEvent.php on lines 1..207

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 221.

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

Further Reading

Similar blocks of code found in 14 locations. Consider refactoring.
Open

<?php
/**
 * HangupRequest Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/HangupRequestEvent.php and 13 other locations - About 5 hrs to fix
src/PAMI/Message/Event/AGIExecStartEvent.php on lines 1..195
src/PAMI/Message/Event/ChannelTalkingStopEvent.php on lines 1..234
src/PAMI/Message/Event/CoreShowChannelEvent.php on lines 1..198
src/PAMI/Message/Event/DTMFBeginEvent.php on lines 1..198
src/PAMI/Message/Event/HangupHandlerPopEvent.php on lines 1..234
src/PAMI/Message/Event/HangupHandlerPushEvent.php on lines 1..234
src/PAMI/Message/Event/HangupHandlerRunEvent.php on lines 1..234
src/PAMI/Message/Event/QueueMemberPenaltyEvent.php on lines 1..234
src/PAMI/Message/Event/QueueMemberRinginuseEvent.php on lines 1..234
src/PAMI/Message/Event/RequestBadFormatEvent.php on lines 1..198
src/PAMI/Message/Event/SessionTimeoutEvent.php on lines 1..234
src/PAMI/Message/Event/SoftHangupRequestEvent.php on lines 1..234
src/PAMI/Message/Event/SuccessfulAuthEvent.php on lines 1..198

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 208.

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

Further Reading

Severity
Category
Status
Source
Language