Skip to content

Commit 6517bf0

Browse files
committed
PHPCS Changes
1 parent c83e423 commit 6517bf0

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

src/Magento/FunctionalTestingFramework/Suite/Handlers/SuiteObjectHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ class SuiteObjectHandler implements ObjectHandlerInterface
3434

3535
/**
3636
* Avoids instantiation of SuiteObjectHandler by new.
37+
* @return void
3738
*/
3839
private function __construct()
3940
{
4041
}
4142

4243
/**
4344
* Avoids instantiation of SuiteObjectHandler by clone.
45+
* @return void
4446
*/
4547
private function __clone()
4648
{

src/Magento/FunctionalTestingFramework/Suite/SuiteGenerator.php

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class SuiteGenerator
3333
*
3434
* @var SuiteGenerator
3535
*/
36-
private static $SUITE_GENERATOR_INSTANCE;
36+
private static $instance;
3737

3838
/**
3939
* Group Class Generator initialized in constructor.
@@ -43,28 +43,37 @@ class SuiteGenerator
4343
private $groupClassGenerator;
4444

4545
/**
46-
* SuiteGenerator constructor.
46+
* Avoids instantiation of LoggingUtil by new.
47+
* @return void
4748
*/
4849
private function __construct()
4950
{
5051
$this->groupClassGenerator = new GroupClassGenerator();
5152
}
5253

54+
/**
55+
* Avoids instantiation of SuiteGenerator by clone.
56+
* @return void
57+
*/
58+
private function __clone()
59+
{
60+
}
61+
5362
/**
5463
* Singleton method which is used to retrieve the instance of the suite generator.
5564
*
5665
* @return SuiteGenerator
5766
*/
58-
public static function getInstance()
67+
public static function getInstance(): SuiteGenerator
5968
{
60-
if (!self::$SUITE_GENERATOR_INSTANCE) {
69+
if (!self::$instance) {
6170
// clear any previous configurations before any generation occurs.
6271
self::clearPreviousGroupPreconditions();
6372
self::clearPreviousSessionConfigEntries();
64-
self::$SUITE_GENERATOR_INSTANCE = new SuiteGenerator();
73+
self::$instance = new SuiteGenerator();
6574
}
6675

67-
return self::$SUITE_GENERATOR_INSTANCE;
76+
return self::$instance;
6877
}
6978

7079
/**

src/Magento/FunctionalTestingFramework/Util/Logger/LoggingUtil.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ public static function getInstance(): LoggingUtil
4141

4242
/**
4343
* Avoids instantiation of LoggingUtil by new.
44+
* @return void
4445
*/
4546
private function __construct()
4647
{
4748
}
4849

4950
/**
5051
* Avoids instantiation of LoggingUtil by clone.
52+
* @return void
5153
*/
5254
private function __clone()
5355
{

0 commit comments

Comments
 (0)