chan-sccp/PAMI

View on GitHub

Showing 132 of 498 total issues

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

<?php
/**
 * Event triggered when an agent logs in.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/SuccessfulAuthEvent.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/HangupRequestEvent.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

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

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

<?php
/**
 * HangupHandlerPush Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/HangupHandlerPushEvent.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/HangupHandlerRunEvent.php on lines 1..234
src/PAMI/Message/Event/HangupRequestEvent.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

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

<?php
/**
 * Event triggered when a received AGI command starts processing.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/AGIExecStartEvent.php and 13 other locations - About 5 hrs to fix
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/HangupRequestEvent.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

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

<?php
/**
 * Event triggered when an action CoreShowChannel is issued.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/CoreShowChannelEvent.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/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/HangupRequestEvent.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

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

<?php
/**
 * HangupHandlerRun Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/HangupHandlerRunEvent.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/HangupRequestEvent.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

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

<?php
/**
 * HangupHandlerPop Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/HangupHandlerPopEvent.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/HangupHandlerPushEvent.php on lines 1..234
src/PAMI/Message/Event/HangupHandlerRunEvent.php on lines 1..234
src/PAMI/Message/Event/HangupRequestEvent.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

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

<?php
/**
 * SoftHangupRequest Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/SoftHangupRequestEvent.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/HangupRequestEvent.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/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

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

<?php
/**
 * ChannelTalkingStop Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/ChannelTalkingStopEvent.php and 13 other locations - About 5 hrs to fix
src/PAMI/Message/Event/AGIExecStartEvent.php on lines 1..195
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/HangupRequestEvent.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

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

<?php
/**
 * Event triggered when an agent logs in.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/RequestBadFormatEvent.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/HangupRequestEvent.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/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

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

<?php
/**
 * SessionTimeout Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/SessionTimeoutEvent.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/HangupRequestEvent.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/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

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

<?php
/**
 * QueueMemberPenalty Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/QueueMemberPenaltyEvent.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/HangupRequestEvent.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

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

<?php
/**
 * Event triggered when a DTMF digit has started on a channel.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/DTMFBeginEvent.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/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/HangupRequestEvent.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

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

<?php
/**
 * QueueMemberRinginuse Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/QueueMemberRinginuseEvent.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/HangupRequestEvent.php on lines 1..234
src/PAMI/Message/Event/QueueMemberPenaltyEvent.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

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

<?php
/**
 * ChannelTalkingStart Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/ChannelTalkingStartEvent.php and 5 other locations - About 5 hrs to fix
src/PAMI/Message/Event/MonitorStartEvent.php on lines 1..222
src/PAMI/Message/Event/MonitorStopEvent.php on lines 1..222
src/PAMI/Message/Event/MusicOnHoldStartEvent.php on lines 1..185
src/PAMI/Message/Event/NewConnectedLineEvent.php on lines 1..222
src/PAMI/Message/Event/UnholdEvent.php on lines 1..222

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

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
/**
 * NewConnectedLine Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/NewConnectedLineEvent.php and 5 other locations - About 5 hrs to fix
src/PAMI/Message/Event/ChannelTalkingStartEvent.php on lines 1..222
src/PAMI/Message/Event/MonitorStartEvent.php on lines 1..222
src/PAMI/Message/Event/MonitorStopEvent.php on lines 1..222
src/PAMI/Message/Event/MusicOnHoldStartEvent.php on lines 1..185
src/PAMI/Message/Event/UnholdEvent.php on lines 1..222

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

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 music on hold has started on a channel.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/MusicOnHoldStartEvent.php and 5 other locations - About 5 hrs to fix
src/PAMI/Message/Event/ChannelTalkingStartEvent.php on lines 1..222
src/PAMI/Message/Event/MonitorStartEvent.php on lines 1..222
src/PAMI/Message/Event/MonitorStopEvent.php on lines 1..222
src/PAMI/Message/Event/NewConnectedLineEvent.php on lines 1..222
src/PAMI/Message/Event/UnholdEvent.php on lines 1..222

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

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
/**
 * MonitorStop Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/MonitorStopEvent.php and 5 other locations - About 5 hrs to fix
src/PAMI/Message/Event/ChannelTalkingStartEvent.php on lines 1..222
src/PAMI/Message/Event/MonitorStartEvent.php on lines 1..222
src/PAMI/Message/Event/MusicOnHoldStartEvent.php on lines 1..185
src/PAMI/Message/Event/NewConnectedLineEvent.php on lines 1..222
src/PAMI/Message/Event/UnholdEvent.php on lines 1..222

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

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
/**
 * Unhold Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/UnholdEvent.php and 5 other locations - About 5 hrs to fix
src/PAMI/Message/Event/ChannelTalkingStartEvent.php on lines 1..222
src/PAMI/Message/Event/MonitorStartEvent.php on lines 1..222
src/PAMI/Message/Event/MonitorStopEvent.php on lines 1..222
src/PAMI/Message/Event/MusicOnHoldStartEvent.php on lines 1..185
src/PAMI/Message/Event/NewConnectedLineEvent.php on lines 1..222

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

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
/**
 * MonitorStart Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/MonitorStartEvent.php and 5 other locations - About 5 hrs to fix
src/PAMI/Message/Event/ChannelTalkingStartEvent.php on lines 1..222
src/PAMI/Message/Event/MonitorStopEvent.php on lines 1..222
src/PAMI/Message/Event/MusicOnHoldStartEvent.php on lines 1..185
src/PAMI/Message/Event/NewConnectedLineEvent.php on lines 1..222
src/PAMI/Message/Event/UnholdEvent.php on lines 1..222

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

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 7 locations. Consider refactoring.
Open

<?php
/**
 * ChallengeResponseFailed Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/ChallengeResponseFailedEvent.php and 6 other locations - About 4 hrs to fix
src/PAMI/Message/Event/AsyncAGIEndEvent.php on lines 1..175
src/PAMI/Message/Event/BridgeInfoChannelEvent.php on lines 1..175
src/PAMI/Message/Event/InvalidPasswordEvent.php on lines 1..210
src/PAMI/Message/Event/MusicOnHoldStopEvent.php on lines 1..175
src/PAMI/Message/Event/RTCPReceivedEvent.php on lines 1..172
src/PAMI/Message/Event/RTCPSentEvent.php on lines 1..177

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

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