Skip to content

Commit ae421ea

Browse files
committedOct 28, 2015
Use method
1 parent 60f8a47 commit ae421ea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎.codeclimate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ engines:
55
enabled: true
66
config:
77
file_extensions: "php"
8+
standard: "PSR1,PSR2"
89
ratings:
910
paths:
1011
- "**.php"

‎Runner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function queueDirectory($dir, $prefix = '')
3131
public function queueWithIncludePaths() {
3232
foreach ($this->config['include_paths'] as $f) {
3333
if ($f !== '.' and $f !== '..') {
34-
if (is_dir("/code$f")) {
34+
if (is_dir($f)) {
3535
$this->queuePaths("$f", "$f/");
3636
} else {
3737
$this->filterByExtension($f);
@@ -59,7 +59,7 @@ public function queuePaths($dir, $prefix = '', $exclusions = []) {
5959
}
6060

6161
public function filterByExtension($f, $prefix = '') {
62-
foreach (explode(",", $this->config['config']['file_extensions']) as $file_extension) {
62+
foreach ($this->fileExtensions() as $file_extension) {
6363
if (S::create($f)->endsWith($file_extension)) {
6464
$prefix = ltrim($prefix, "\\/");
6565
$this->server->addwork(array("$prefix$f"));

0 commit comments

Comments
 (0)