Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
6de19d16
Unverified
Commit
6de19d16
authored
Nov 20, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CS: PSR1/2
parent
a047aef0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
CachePageDecorator.php
Modules/Page/Repositories/Cache/CachePageDecorator.php
+1
-1
CacheSettingDecorator.php
Modules/Setting/Repositories/Cache/CacheSettingDecorator.php
+6
-6
CacheTagDecorator.php
Modules/Tag/Repositories/Cache/CacheTagDecorator.php
+1
-1
No files found.
Modules/Page/Repositories/Cache/CachePageDecorator.php
View file @
6de19d16
...
@@ -52,7 +52,7 @@ class CachePageDecorator extends BaseCacheDecorator implements PageRepository
...
@@ -52,7 +52,7 @@ class CachePageDecorator extends BaseCacheDecorator implements PageRepository
*/
*/
public
function
findBySlugInLocale
(
$slug
,
$locale
)
public
function
findBySlugInLocale
(
$slug
,
$locale
)
{
{
return
$this
->
remember
(
function
()
use
(
$slug
,
$locale
)
{
return
$this
->
remember
(
function
()
use
(
$slug
,
$locale
)
{
return
$this
->
repository
->
findBySlugInLocale
(
$slug
,
$locale
);
return
$this
->
repository
->
findBySlugInLocale
(
$slug
,
$locale
);
});
});
}
}
...
...
Modules/Setting/Repositories/Cache/CacheSettingDecorator.php
View file @
6de19d16
...
@@ -46,7 +46,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
...
@@ -46,7 +46,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
*/
*/
public
function
moduleSettings
(
$modules
)
public
function
moduleSettings
(
$modules
)
{
{
return
$this
->
remember
(
function
()
use
(
$modules
)
{
return
$this
->
remember
(
function
()
use
(
$modules
)
{
return
$this
->
repository
->
moduleSettings
(
$modules
);
return
$this
->
repository
->
moduleSettings
(
$modules
);
});
});
}
}
...
@@ -58,7 +58,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
...
@@ -58,7 +58,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
*/
*/
public
function
savedModuleSettings
(
$module
)
public
function
savedModuleSettings
(
$module
)
{
{
return
$this
->
remember
(
function
()
use
(
$module
)
{
return
$this
->
remember
(
function
()
use
(
$module
)
{
return
$this
->
repository
->
savedModuleSettings
(
$module
);
return
$this
->
repository
->
savedModuleSettings
(
$module
);
});
});
}
}
...
@@ -70,7 +70,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
...
@@ -70,7 +70,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
*/
*/
public
function
findByModule
(
$module
)
public
function
findByModule
(
$module
)
{
{
return
$this
->
remember
(
function
()
use
(
$module
)
{
return
$this
->
remember
(
function
()
use
(
$module
)
{
return
$this
->
repository
->
findByModule
(
$module
);
return
$this
->
repository
->
findByModule
(
$module
);
});
});
}
}
...
@@ -82,7 +82,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
...
@@ -82,7 +82,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
*/
*/
public
function
get
(
$settingName
)
public
function
get
(
$settingName
)
{
{
return
$this
->
remember
(
function
()
use
(
$settingName
)
{
return
$this
->
remember
(
function
()
use
(
$settingName
)
{
return
$this
->
repository
->
get
(
$settingName
);
return
$this
->
repository
->
get
(
$settingName
);
});
});
}
}
...
@@ -94,7 +94,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
...
@@ -94,7 +94,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
*/
*/
public
function
translatableModuleSettings
(
$module
)
public
function
translatableModuleSettings
(
$module
)
{
{
return
$this
->
remember
(
function
()
use
(
$module
)
{
return
$this
->
remember
(
function
()
use
(
$module
)
{
return
$this
->
repository
->
translatableModuleSettings
(
$module
);
return
$this
->
repository
->
translatableModuleSettings
(
$module
);
});
});
}
}
...
@@ -106,7 +106,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
...
@@ -106,7 +106,7 @@ class CacheSettingDecorator extends BaseCacheDecorator implements SettingReposit
*/
*/
public
function
plainModuleSettings
(
$module
)
public
function
plainModuleSettings
(
$module
)
{
{
return
$this
->
remember
(
function
()
use
(
$module
)
{
return
$this
->
remember
(
function
()
use
(
$module
)
{
return
$this
->
repository
->
plainModuleSettings
(
$module
);
return
$this
->
repository
->
plainModuleSettings
(
$module
);
});
});
}
}
...
...
Modules/Tag/Repositories/Cache/CacheTagDecorator.php
View file @
6de19d16
...
@@ -21,7 +21,7 @@ class CacheTagDecorator extends BaseCacheDecorator implements TagRepository
...
@@ -21,7 +21,7 @@ class CacheTagDecorator extends BaseCacheDecorator implements TagRepository
*/
*/
public
function
allForNamespace
(
$namespace
)
public
function
allForNamespace
(
$namespace
)
{
{
return
$this
->
remember
(
function
()
use
(
$namespace
)
{
return
$this
->
remember
(
function
()
use
(
$namespace
)
{
return
$this
->
repository
->
allForNamespace
(
$namespace
);
return
$this
->
repository
->
allForNamespace
(
$namespace
);
});
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment