Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFiregore authored Dec 11, 2017
1 parent fb37a9f commit bf013a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CRCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CRCache
* @var string
*/

static protected $path="cache".DIRECTORY_SEPARATOR."CR";
static protected $path;
/**
* Prefix directories size
*
Expand All @@ -38,6 +38,10 @@ class CRCache
*/
static public function getPath(): string
{
if (is_null(self::$path)) {
$pos = strpos(__DIR__,"vendor") ?: strpos(__DIR__,"src");
self::$path = substr(__DIR__,0,$pos)."cache".DIRECTORY_SEPARATOR."CR";
}
return self::$path;
}

Expand Down

0 comments on commit bf013a7

Please sign in to comment.