From 1f41e50639356eb2d12f73de5cae1835b8612da3 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Tue, 29 Jul 2014 15:31:27 +0100 Subject: [PATCH] Quick fix for the PHPLoc directory setting --- PHPCI/Plugin/PhpLoc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PHPCI/Plugin/PhpLoc.php b/PHPCI/Plugin/PhpLoc.php index 8efd0eee..6e402cc7 100644 --- a/PHPCI/Plugin/PhpLoc.php +++ b/PHPCI/Plugin/PhpLoc.php @@ -43,9 +43,11 @@ class PhpLoc implements PHPCI\Plugin, PHPCI\ZeroConfigPlugin { $this->phpci = $phpci; $this->build = $build; - $this->directory = isset($options['directory']) ? - $phpci->buildPath . '/' . $options['directory'] : - $phpci->buildPath; + $this->directory = $phpci->buildPath; + + if (isset($options['directory'])) { + $this->directory .= $options['directory']; + } } /**