Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
camo-image-proxy
Commits
f74b0362
Commit
f74b0362
authored
Feb 19, 2019
by
Erick Hitter
Browse files
PHPCS
parent
592f0567
Pipeline
#1796
failed with stage
in 2 minutes and 53 seconds
Changes
1
Pipelines
45
Hide whitespace changes
Inline
Side-by-side
inc/trait-singleton.php
View file @
f74b0362
...
...
@@ -24,11 +24,13 @@ trait Singleton {
* @return object
*/
public
static
function
instance
()
{
// phpcs:disable WordPressVIPMinimum.Variables.VariableAnalysis.StaticOutsideClass
if
(
!
isset
(
static
::
$instance
)
)
{
static
::
$instance
=
new
static
();
static
::
$instance
->
setup
();
}
return
static
::
$instance
;
// phpcs:enable WordPressVIPMinimum.Variables.VariableAnalysis.StaticOutsideClass
}
/**
...
...
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