Skip to content

Commit e2f2ee6

Browse files
committed
phpDoc: added $var name to @param
1 parent 813d98d commit e2f2ee6

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/Bridges/CacheLatte/CacheMacro.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public static function createCache(Nette\Caching\IStorage $cacheStorage, string
116116

117117
/**
118118
* Ends the output cache.
119-
* @param Nette\Caching\OutputHelper[]
119+
* @param Nette\Caching\OutputHelper[] $parents
120120
*/
121121
public static function endCache(array &$parents, array $args = null): void
122122
{

src/Caching/Cache.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function derive(string $namespace)
8181

8282
/**
8383
* Reads the specified item from the cache or generate it.
84-
* @param mixed
84+
* @param mixed $key
8585
* @return mixed
8686
*/
8787
public function load($key, callable $fallback = null)
@@ -153,8 +153,8 @@ public function bulkLoad(array $keys, callable $fallback = null): array
153153
* - Cache::ITEMS => (array|string) cache items
154154
* - Cache::CONSTS => (array|string) cache items
155155
*
156-
* @param mixed
157-
* @param mixed
156+
* @param mixed $key
157+
* @param mixed $data
158158
* @return mixed value itself
159159
* @throws Nette\InvalidArgumentException
160160
*/
@@ -233,7 +233,7 @@ private function completeDependencies(?array $dp): array
233233

234234
/**
235235
* Removes item from the cache.
236-
* @param mixed
236+
* @param mixed $key
237237
*/
238238
public function remove($key): void
239239
{
@@ -295,7 +295,7 @@ public function wrap(callable $function, array $dependencies = null): \Closure
295295

296296
/**
297297
* Starts the output cache.
298-
* @param mixed
298+
* @param mixed $key
299299
*/
300300
public function start($key): ?OutputHelper
301301
{

src/Caching/Storages/FileStorage.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,6 @@ public function clean(array $conditions): void
292292

293293
/**
294294
* Reads cache data from disk.
295-
* @param string file path
296-
* @param int lock mode
297295
*/
298296
protected function readMetaAndLock(string $file, int $lock): ?array
299297
{
@@ -352,7 +350,7 @@ protected function getCacheFile(string $key): string
352350

353351
/**
354352
* Deletes and closes file.
355-
* @param resource $handle
353+
* @param resource $handle
356354
*/
357355
private static function delete(string $file, $handle = null): void
358356
{

0 commit comments

Comments
 (0)