Skip to content

Commit 51b2c2a

Browse files
committed
Code climate
1 parent 0a8dee3 commit 51b2c2a

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

Diff for: .codeclimate.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
engines:
3+
duplication:
4+
enabled: true
5+
config:
6+
languages:
7+
- ruby
8+
- javascript
9+
- python
10+
- php
11+
fixme:
12+
enabled: true
13+
phpmd:
14+
enabled: true
15+
ratings:
16+
paths:
17+
- "**.inc"
18+
- "**.js"
19+
- "**.jsx"
20+
- "**.module"
21+
- "**.php"
22+
- "**.py"
23+
- "**.rb"
24+
exclude_paths:
25+
- tests/

Diff for: src/Timer.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ static public function read($key = 'default', $format = self::FORMAT_MILISECONDS
6363
if (isset(static::$timers[$key])) {
6464
return static::processTimerValue(static::$timers[$key], $format);
6565
}
66-
else {
67-
throw new \LogicException('Reading timer when the given key timer was not initialized.');
68-
}
66+
throw new \LogicException('Reading timer when the given key timer was not initialized.');
6967
}
7068

7169
static public function stop($key = 'default') {

0 commit comments

Comments
 (0)