chan-sccp/PAMI

View on GitHub

Showing 132 of 498 total issues

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

<?php
/**
 * FAXSession Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/FAXSessionEvent.php and 10 other locations - About 3 hrs to fix
src/PAMI/Message/Event/AuthMethodNotAllowedEvent.php on lines 1..186
src/PAMI/Message/Event/ChallengeSentEvent.php on lines 1..186
src/PAMI/Message/Event/ConfbridgeListEvent.php on lines 1..157
src/PAMI/Message/Event/FailedACLEvent.php on lines 1..186
src/PAMI/Message/Event/InvalidTransportEvent.php on lines 1..186
src/PAMI/Message/Event/NewchannelEvent.php on lines 1..157
src/PAMI/Message/Event/NewstateEvent.php on lines 1..159
src/PAMI/Message/Event/RequestNotSupportedEvent.php on lines 1..186
src/PAMI/Message/Event/UnexpectedAddressEvent.php on lines 1..186
src/PAMI/Message/Event/VarSetEvent.php on lines 1..153

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

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 11 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/NewstateEvent.php and 10 other locations - About 3 hrs to fix
src/PAMI/Message/Event/AuthMethodNotAllowedEvent.php on lines 1..186
src/PAMI/Message/Event/ChallengeSentEvent.php on lines 1..186
src/PAMI/Message/Event/ConfbridgeListEvent.php on lines 1..157
src/PAMI/Message/Event/FAXSessionEvent.php on lines 1..186
src/PAMI/Message/Event/FailedACLEvent.php on lines 1..186
src/PAMI/Message/Event/InvalidTransportEvent.php on lines 1..186
src/PAMI/Message/Event/NewchannelEvent.php on lines 1..157
src/PAMI/Message/Event/RequestNotSupportedEvent.php on lines 1..186
src/PAMI/Message/Event/UnexpectedAddressEvent.php on lines 1..186
src/PAMI/Message/Event/VarSetEvent.php on lines 1..153

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

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

<?php
/**
 * Event triggered when a variable is set via agi or dialplan.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/VarSetEvent.php and 10 other locations - About 3 hrs to fix
src/PAMI/Message/Event/AuthMethodNotAllowedEvent.php on lines 1..186
src/PAMI/Message/Event/ChallengeSentEvent.php on lines 1..186
src/PAMI/Message/Event/ConfbridgeListEvent.php on lines 1..157
src/PAMI/Message/Event/FAXSessionEvent.php on lines 1..186
src/PAMI/Message/Event/FailedACLEvent.php on lines 1..186
src/PAMI/Message/Event/InvalidTransportEvent.php on lines 1..186
src/PAMI/Message/Event/NewchannelEvent.php on lines 1..157
src/PAMI/Message/Event/NewstateEvent.php on lines 1..159
src/PAMI/Message/Event/RequestNotSupportedEvent.php on lines 1..186
src/PAMI/Message/Event/UnexpectedAddressEvent.php on lines 1..186

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

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

<?php
/**
 * RequestNotSupported Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/RequestNotSupportedEvent.php and 10 other locations - About 3 hrs to fix
src/PAMI/Message/Event/AuthMethodNotAllowedEvent.php on lines 1..186
src/PAMI/Message/Event/ChallengeSentEvent.php on lines 1..186
src/PAMI/Message/Event/ConfbridgeListEvent.php on lines 1..157
src/PAMI/Message/Event/FAXSessionEvent.php on lines 1..186
src/PAMI/Message/Event/FailedACLEvent.php on lines 1..186
src/PAMI/Message/Event/InvalidTransportEvent.php on lines 1..186
src/PAMI/Message/Event/NewchannelEvent.php on lines 1..157
src/PAMI/Message/Event/NewstateEvent.php on lines 1..159
src/PAMI/Message/Event/UnexpectedAddressEvent.php on lines 1..186
src/PAMI/Message/Event/VarSetEvent.php on lines 1..153

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

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

<?php
/**
 * AuthMethodNotAllowed Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/AuthMethodNotAllowedEvent.php and 10 other locations - About 3 hrs to fix
src/PAMI/Message/Event/ChallengeSentEvent.php on lines 1..186
src/PAMI/Message/Event/ConfbridgeListEvent.php on lines 1..157
src/PAMI/Message/Event/FAXSessionEvent.php on lines 1..186
src/PAMI/Message/Event/FailedACLEvent.php on lines 1..186
src/PAMI/Message/Event/InvalidTransportEvent.php on lines 1..186
src/PAMI/Message/Event/NewchannelEvent.php on lines 1..157
src/PAMI/Message/Event/NewstateEvent.php on lines 1..159
src/PAMI/Message/Event/RequestNotSupportedEvent.php on lines 1..186
src/PAMI/Message/Event/UnexpectedAddressEvent.php on lines 1..186
src/PAMI/Message/Event/VarSetEvent.php on lines 1..153

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

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
/**
 * InvalidAccountID Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/InvalidAccountIDEvent.php and 6 other locations - About 2 hrs to fix
src/PAMI/Message/Event/DialEvent.php on lines 1..147
src/PAMI/Message/Event/LoadAverageLimitEvent.php on lines 1..174
src/PAMI/Message/Event/MemoryLimitEvent.php on lines 1..174
src/PAMI/Message/Event/OriginateResponseEvent.php on lines 1..147
src/PAMI/Message/Event/SessionLimitEvent.php on lines 1..174
src/PAMI/Message/Event/TransferEvent.php on lines 1..147

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

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
/**
 * Event triggered when a dial is executed.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/DialEvent.php and 6 other locations - About 2 hrs to fix
src/PAMI/Message/Event/InvalidAccountIDEvent.php on lines 1..174
src/PAMI/Message/Event/LoadAverageLimitEvent.php on lines 1..174
src/PAMI/Message/Event/MemoryLimitEvent.php on lines 1..174
src/PAMI/Message/Event/OriginateResponseEvent.php on lines 1..147
src/PAMI/Message/Event/SessionLimitEvent.php on lines 1..174
src/PAMI/Message/Event/TransferEvent.php on lines 1..147

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

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
/**
 * LoadAverageLimit Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/LoadAverageLimitEvent.php and 6 other locations - About 2 hrs to fix
src/PAMI/Message/Event/DialEvent.php on lines 1..147
src/PAMI/Message/Event/InvalidAccountIDEvent.php on lines 1..174
src/PAMI/Message/Event/MemoryLimitEvent.php on lines 1..174
src/PAMI/Message/Event/OriginateResponseEvent.php on lines 1..147
src/PAMI/Message/Event/SessionLimitEvent.php on lines 1..174
src/PAMI/Message/Event/TransferEvent.php on lines 1..147

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

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
/**
 * Event triggered when a call is transfered.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/TransferEvent.php and 6 other locations - About 2 hrs to fix
src/PAMI/Message/Event/DialEvent.php on lines 1..147
src/PAMI/Message/Event/InvalidAccountIDEvent.php on lines 1..174
src/PAMI/Message/Event/LoadAverageLimitEvent.php on lines 1..174
src/PAMI/Message/Event/MemoryLimitEvent.php on lines 1..174
src/PAMI/Message/Event/OriginateResponseEvent.php on lines 1..147
src/PAMI/Message/Event/SessionLimitEvent.php on lines 1..174

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

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
/**
 * MemoryLimit Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/MemoryLimitEvent.php and 6 other locations - About 2 hrs to fix
src/PAMI/Message/Event/DialEvent.php on lines 1..147
src/PAMI/Message/Event/InvalidAccountIDEvent.php on lines 1..174
src/PAMI/Message/Event/LoadAverageLimitEvent.php on lines 1..174
src/PAMI/Message/Event/OriginateResponseEvent.php on lines 1..147
src/PAMI/Message/Event/SessionLimitEvent.php on lines 1..174
src/PAMI/Message/Event/TransferEvent.php on lines 1..147

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

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
/**
 * Response from an async originate.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/OriginateResponseEvent.php and 6 other locations - About 2 hrs to fix
src/PAMI/Message/Event/DialEvent.php on lines 1..147
src/PAMI/Message/Event/InvalidAccountIDEvent.php on lines 1..174
src/PAMI/Message/Event/LoadAverageLimitEvent.php on lines 1..174
src/PAMI/Message/Event/MemoryLimitEvent.php on lines 1..174
src/PAMI/Message/Event/SessionLimitEvent.php on lines 1..174
src/PAMI/Message/Event/TransferEvent.php on lines 1..147

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

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
/**
 * SessionLimit Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/SessionLimitEvent.php and 6 other locations - About 2 hrs to fix
src/PAMI/Message/Event/DialEvent.php on lines 1..147
src/PAMI/Message/Event/InvalidAccountIDEvent.php on lines 1..174
src/PAMI/Message/Event/LoadAverageLimitEvent.php on lines 1..174
src/PAMI/Message/Event/MemoryLimitEvent.php on lines 1..174
src/PAMI/Message/Event/OriginateResponseEvent.php on lines 1..147
src/PAMI/Message/Event/TransferEvent.php on lines 1..147

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

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
/**
 * BridgeVideoSourceUpdate Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/BridgeVideoSourceUpdateEvent.php and 5 other locations - About 2 hrs to fix
src/PAMI/Message/Event/AgentConnectEvent.php on lines 1..137
src/PAMI/Message/Event/AuthDetailEvent.php on lines 1..138
src/PAMI/Message/Event/BridgeEvent.php on lines 1..137
src/PAMI/Message/Event/ConfbridgeRecordEvent.php on lines 1..162
src/PAMI/Message/Event/ConfbridgeStopRecordEvent.php on lines 1..162

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

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
/**
 * ConfbridgeRecord Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/ConfbridgeRecordEvent.php and 5 other locations - About 2 hrs to fix
src/PAMI/Message/Event/AgentConnectEvent.php on lines 1..137
src/PAMI/Message/Event/AuthDetailEvent.php on lines 1..138
src/PAMI/Message/Event/BridgeEvent.php on lines 1..137
src/PAMI/Message/Event/BridgeVideoSourceUpdateEvent.php on lines 1..162
src/PAMI/Message/Event/ConfbridgeStopRecordEvent.php on lines 1..162

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

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/AuthDetailEvent.php and 5 other locations - About 2 hrs to fix
src/PAMI/Message/Event/AgentConnectEvent.php on lines 1..137
src/PAMI/Message/Event/BridgeEvent.php on lines 1..137
src/PAMI/Message/Event/BridgeVideoSourceUpdateEvent.php on lines 1..162
src/PAMI/Message/Event/ConfbridgeRecordEvent.php on lines 1..162
src/PAMI/Message/Event/ConfbridgeStopRecordEvent.php on lines 1..162

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

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 an agent connects.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/AgentConnectEvent.php and 5 other locations - About 2 hrs to fix
src/PAMI/Message/Event/AuthDetailEvent.php on lines 1..138
src/PAMI/Message/Event/BridgeEvent.php on lines 1..137
src/PAMI/Message/Event/BridgeVideoSourceUpdateEvent.php on lines 1..162
src/PAMI/Message/Event/ConfbridgeRecordEvent.php on lines 1..162
src/PAMI/Message/Event/ConfbridgeStopRecordEvent.php on lines 1..162

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

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 bridging (connecting) two channels.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Event/BridgeEvent.php and 5 other locations - About 2 hrs to fix
src/PAMI/Message/Event/AgentConnectEvent.php on lines 1..137
src/PAMI/Message/Event/AuthDetailEvent.php on lines 1..138
src/PAMI/Message/Event/BridgeVideoSourceUpdateEvent.php on lines 1..162
src/PAMI/Message/Event/ConfbridgeRecordEvent.php on lines 1..162
src/PAMI/Message/Event/ConfbridgeStopRecordEvent.php on lines 1..162

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

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
/**
 * ConfbridgeStopRecord Event
 *
 *
Severity: Major
Found in src/PAMI/Message/Event/ConfbridgeStopRecordEvent.php and 5 other locations - About 2 hrs to fix
src/PAMI/Message/Event/AgentConnectEvent.php on lines 1..137
src/PAMI/Message/Event/AuthDetailEvent.php on lines 1..138
src/PAMI/Message/Event/BridgeEvent.php on lines 1..137
src/PAMI/Message/Event/BridgeVideoSourceUpdateEvent.php on lines 1..162
src/PAMI/Message/Event/ConfbridgeRecordEvent.php on lines 1..162

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

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

<?php
/**
 * Queue unpause action. This does not exist in the ami.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Action/QueueUnpauseAction.php and 1 other location - About 1 hr to fix
src/PAMI/Message/Action/QueuePauseAction.php on lines 1..65

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

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

<?php
/**
 * Queue pause action.
 *
 * PHP Version 5
Severity: Major
Found in src/PAMI/Message/Action/QueuePauseAction.php and 1 other location - About 1 hr to fix
src/PAMI/Message/Action/QueueUnpauseAction.php on lines 1..65

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

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