Commit 6261fd9b authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- Remove useless lines

- Update sonarqube properties to exclude directories
parent bf86323b
Pipeline #260 passed with stage
in 48 seconds
...@@ -199,7 +199,6 @@ class Paginator { ...@@ -199,7 +199,6 @@ class Paginator {
// Gets the top range // Gets the top range
$top = $this->getTotalPages() - $this->getCurrent(); $top = $this->getTotalPages() - $this->getCurrent();
if($top <= $this->prev_next) { if($top <= $this->prev_next) {
$top = $top;
$top_range = $this->getCurrent() + $top; $top_range = $this->getCurrent() + $top;
} else { } else {
$top = $this->prev_next; $top = $this->prev_next;
...@@ -209,7 +208,6 @@ class Paginator { ...@@ -209,7 +208,6 @@ class Paginator {
// Gets the bottom range // Gets the bottom range
$bottom = $this->getCurrent() - 1; $bottom = $this->getCurrent() - 1;
if($bottom <= $this->prev_next) { if($bottom <= $this->prev_next) {
$bottom = $bottom;
$bottom_range = $this->getCurrent() - $bottom; $bottom_range = $this->getCurrent() - $bottom;
} else { } else {
$bottom = $this->prev_next; $bottom = $this->prev_next;
......
...@@ -8,7 +8,7 @@ sonar.projectName=phptodo ...@@ -8,7 +8,7 @@ sonar.projectName=phptodo
# Path to source directories (required) # Path to source directories (required)
sonar.sources=. sonar.sources=.
#sonar.exclusions=src/old_tests/*,src/sandbox/*,setup.py,data/*,requires/* sonar.exclusions=doc/selenium/*,css/smoothness/*
# Sonar CPD # Sonar CPD
sonar.leak.period=previous_version sonar.leak.period=previous_version
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment