Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
frqnck committed Sep 22, 2014
1 parent 4dc375f commit 442d78b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/PsrCache/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public function clear()
*/
public function deleteItems(array $keys)
{
$items = array();
foreach ($keys as $key) {
$this->cache_adapter->delete($key);
}
Expand Down
1 change: 0 additions & 1 deletion src/PsrCache/TaggableItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class TaggableItem extends Item
*
* @param array|null $tags
* @return TaggableItem The invoked object.
*
*/
public function setTags(array $tags=null)
{
Expand Down
11 changes: 7 additions & 4 deletions src/Runtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ class Runtime extends AbstractCache

/**
* Constructor.
*
* @param array|\Traversable|null $mix
* @param array|null $options An array of user options.
*/
public function __construct($array = null, array $options=array())
public function __construct($mix = null, array $options=null)
{
if(null === $array) {
if(null === $mix) {
$this->items = new \ArrayObject();
} else if(is_array($array) || $array instanceof \Traversable) {
$this->items = $array;
} else if(is_array($mix) || $mix instanceof \Traversable) {
$this->items = $mix;
} else {
throw new \Apix\Cache\Exception("Error Processing Request");
}
Expand Down
2 changes: 1 addition & 1 deletion tests/PsrCache/ItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace Apix\Cache\tests\PsrCache;

use Apix\Cache\Tests\TestCase;
use Apix\Cache\tests\TestCase;
use Apix\Cache\PsrCache\Item;

class ItemTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/PsrCache/PoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace Apix\Cache\tests\PsrCache;

use Apix\Cache\Tests\TestCase;
use Apix\Cache\tests\TestCase;

use Apix\Cache,
Apix\Cache\PsrCache\Pool;
Expand Down

0 comments on commit 442d78b

Please sign in to comment.