Skip to content

Commit

Permalink
Fixed phpDoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed May 15, 2016
1 parent c26f3f5 commit 9120d0e
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Apc/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Apcu/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Cookie/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return bool|mixed|null
* @throws \phpFastCache\Exceptions\phpFastCacheDriverException
*/
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Couchbase/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Devfalse/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Devnull/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Devtrue/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Files/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param \Psr\Cache\CacheItemInterface $key
* @param string $key
* @return mixed
* @throws \InvalidArgumentException
*/
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Leveldb/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Memcache/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Memcached/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Mongodb/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Predis/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Redis/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Sqlite/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Ssdb/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
7 changes: 1 addition & 6 deletions src/phpFastCache/Drivers/Wincache/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,14 @@ public function driverWrite(CacheItemInterface $item)
* Check for Cross-Driver type confusion
*/
if ($item instanceof Item) {
/* if (isset($option[ 'skipExisting' ]) && $option[ 'skipExisting' ] == true) {
return wincache_ucache_add($keyword, $value, $time);
} else {
return wincache_ucache_set($keyword, $value, $time);
}*/
return wincache_ucache_set($item->getKey(), $this->driverPreWrap($item), $item->getTtl());
} else {
throw new \InvalidArgumentException('Cross-Driver type confusion detected');
}
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down
2 changes: 1 addition & 1 deletion src/phpFastCache/Drivers/Xcache/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function driverWrite(CacheItemInterface $item)
}

/**
* @param $key
* @param string $key
* @return mixed
*/
public function driverRead($key)
Expand Down

0 comments on commit 9120d0e

Please sign in to comment.