Skip to content

Commit

Permalink
Take a few steps back
Browse files Browse the repository at this point in the history
  • Loading branch information
fire015 committed Dec 22, 2015
1 parent 305e1fa commit 8447af3
Show file tree
Hide file tree
Showing 9 changed files with 336 additions and 358 deletions.
48 changes: 24 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"name": "fire015/flintstone",
"type": "library",
"description": "A key/value database store using flat files for PHP",
"keywords": ["flintstone", "database", "cache", "files", "memory"],
"homepage": "http://www.xeweb.net/flintstone/",
"license": "MIT",
"authors": [
{
"name": "Jason M",
"email": "emailfire@gmail.com"
}
],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"psr-4": {
"Flintstone\\": "src/"
}
},
"require-dev" : {
"phpunit/phpunit": "~4.0"
}
{
"name": "fire015/flintstone",
"type": "library",
"description": "A key/value database store using flat files for PHP",
"keywords": ["flintstone", "database", "cache", "files", "memory"],
"homepage": "http://www.xeweb.net/flintstone/",
"license": "MIT",
"authors": [
{
"name": "Jason M",
"email": "emailfire@gmail.com"
}
],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"psr-4": {
"Flintstone\\": "src/"
}
},
"require-dev" : {
"phpunit/phpunit": "~4.0"
}
}
2 changes: 1 addition & 1 deletion src/Cache/ArrayCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class ArrayCache implements CacheInterface
{
/**
* Cache data
* Cache data.
*
* @var array
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Cache/CacheInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface CacheInterface
*
* @param string $key
*
* @return boolean
* @return bool
*/
public function contains($key);

Expand All @@ -35,7 +35,7 @@ public function get($key);
* Set a key in the cache.
*
* @param string $key
* @param mixed $data
* @param mixed $data
*/
public function set($key, $data);

Expand Down
12 changes: 6 additions & 6 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ public function getDir()
public function setDir($dir)
{
if (!is_dir($dir)) {
throw new Exception('Directory does not exist: ' . $dir);
throw new Exception('Directory does not exist: '.$dir);
}

$this->config['dir'] = rtrim($dir, '/\\') . DIRECTORY_SEPARATOR;
$this->config['dir'] = rtrim($dir, '/\\').DIRECTORY_SEPARATOR;
}

/**
Expand All @@ -96,7 +96,7 @@ public function setDir($dir)
public function getExt()
{
if ($this->useGzip()) {
return $this->config['ext'] . '.gz';
return $this->config['ext'].'.gz';
}

return $this->config['ext'];
Expand All @@ -110,7 +110,7 @@ public function getExt()
public function setExt($ext)
{
if ('.' != substr($ext, 0, 1)) {
$ext = '.' . $ext;
$ext = '.'.$ext;
}

$this->config['ext'] = $ext;
Expand All @@ -133,7 +133,7 @@ public function useGzip()
*/
public function setGzip($gzip)
{
$this->config['gzip'] = (bool)$gzip;
$this->config['gzip'] = (bool) $gzip;
}

/**
Expand Down Expand Up @@ -213,6 +213,6 @@ public function getSwapMemoryLimit()
*/
public function setSwapMemoryLimit($limit)
{
$this->config['swap_memory_limit'] = (int)$limit;
$this->config['swap_memory_limit'] = (int) $limit;
}
}
Loading

0 comments on commit 8447af3

Please sign in to comment.