Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Commit

Permalink
Fix CS and minor url points calc
Browse files Browse the repository at this point in the history
  • Loading branch information
petk committed Jun 5, 2016
1 parent c1fbd85 commit 00a7e87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/Command/ClearLogsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class ClearLogsCommand extends Command
*/
private $log;

/**
* Set log.
*
* @param Log $log
*/
public function setLog(Log $log)
{
$this->log = $log;
Expand Down
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class Config
{
/**
* @var array Yaml files with configuration values.
* @var array YAML files with configuration values.
*/
private $files = [];

Expand Down
2 changes: 1 addition & 1 deletion src/Points.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private function addPointsForLinks($message)
foreach ($this->config->get('urls') as $url) {
if (false !== stripos($message, $url[0])) {
$positivePoints = ($url[1] > 0 && $positivePoints < $url[1]) ? $positivePoints : $url[1];
$negativePoints = ($url[1] < 0 && $negativePoints > $url[1]) ? $negativePoints : $url[1];
$negativePoints = ($url[1] <= 0 && $negativePoints > $url[1]) ? $negativePoints : $url[1];
}
}
}
Expand Down

0 comments on commit 00a7e87

Please sign in to comment.