File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/SecretStorage Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \FunctionalTestingFramework \DataGenerator \Handlers \SecretStorage ;
8
8
9
- use Magento \FunctionalTestingFramework \Exceptions \TestFrameworkException ;
10
9
use Magento \FunctionalTestingFramework \Config \MftfApplicationConfig ;
10
+ use Magento \FunctionalTestingFramework \Exceptions \TestFrameworkException ;
11
11
use Magento \FunctionalTestingFramework \Util \Logger \LoggingUtil ;
12
12
use Magento \FunctionalTestingFramework \Util \Path \FilePathFormatter ;
13
13
@@ -93,18 +93,18 @@ private function readInCredentialsFile()
93
93
*
94
94
* @param array $credContents
95
95
* @return array
96
+ * @throws TestFrameworkException
96
97
*/
97
98
private function encryptCredFileContents ($ credContents )
98
99
{
99
100
$ encryptedCreds = [];
100
101
foreach ($ credContents as $ credValue ) {
101
102
if (substr ($ credValue , 0 , 1 ) === '# ' || empty ($ credValue )) {
102
103
continue ;
103
- }
104
- elseif (strpos ($ credValue , "= " ) === false ){
105
- throw new TestFrameworkException (
106
- $ credValue ." not configured correctly in .credentials file "
107
- );
104
+ } elseif (strpos ($ credValue , "= " ) === false ) {
105
+ throw new TestFrameworkException (
106
+ $ credValue . " not configured correctly in .credentials file "
107
+ );
108
108
}
109
109
110
110
list ($ key , $ value ) = explode ("= " , $ credValue , 2 );
You can’t perform that action at this time.
0 commit comments