Skip to content

Commit

Permalink
coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 21, 2018
1 parent 53a6e5e commit 7fba7c7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Caching/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class Cache
use Nette\SmartObject;

/** dependency */
const PRIORITY = 'priority',
const
PRIORITY = 'priority',
EXPIRATION = 'expire',
EXPIRE = 'expire',
SLIDING = 'sliding',
Expand Down
4 changes: 2 additions & 2 deletions src/Caching/Storages/FileStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class FileStorage implements Nette\Caching\IStorage
*/

/** @internal cache file structure */
const META_HEADER_LEN = 28, // 22b signature + 6b meta-struct size + serialized meta-struct + data
// meta structure: array of
const
META_HEADER_LEN = 28, // 22b signature + 6b meta-struct size + serialized meta-struct + data
META_TIME = 'time', // timestamp
META_SERIALIZED = 'serialized', // is content serialized?
META_EXPIRE = 'expire', // expiration timestamp
Expand Down
3 changes: 2 additions & 1 deletion src/Caching/Storages/MemcachedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class MemcachedStorage implements Nette\Caching\IStorage
use Nette\SmartObject;

/** @internal cache structure */
const META_CALLBACKS = 'callbacks',
const
META_CALLBACKS = 'callbacks',
META_DATA = 'data',
META_DELTA = 'delta';

Expand Down
3 changes: 2 additions & 1 deletion src/Caching/Storages/NewMemcachedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class NewMemcachedStorage implements Nette\Caching\IStorage, Nette\Caching\IBulk
use Nette\SmartObject;

/** @internal cache structure */
const META_CALLBACKS = 'callbacks',
const
META_CALLBACKS = 'callbacks',
META_DATA = 'data',
META_DELTA = 'delta';

Expand Down

0 comments on commit 7fba7c7

Please sign in to comment.