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 66
77namespace Magento \FunctionalTestingFramework \DataGenerator \Handlers \SecretStorage ;
88
9- use Magento \FunctionalTestingFramework \Exceptions \TestFrameworkException ;
109use Magento \FunctionalTestingFramework \Config \MftfApplicationConfig ;
10+ use Magento \FunctionalTestingFramework \Exceptions \TestFrameworkException ;
1111use Magento \FunctionalTestingFramework \Util \Logger \LoggingUtil ;
1212use Magento \FunctionalTestingFramework \Util \Path \FilePathFormatter ;
1313
@@ -93,18 +93,18 @@ private function readInCredentialsFile()
9393 *
9494 * @param array $credContents
9595 * @return array
96+ * @throws TestFrameworkException
9697 */
9798 private function encryptCredFileContents ($ credContents )
9899 {
99100 $ encryptedCreds = [];
100101 foreach ($ credContents as $ credValue ) {
101102 if (substr ($ credValue , 0 , 1 ) === '# ' || empty ($ credValue )) {
102103 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+ );
108108 }
109109
110110 list ($ key , $ value ) = explode ("= " , $ credValue , 2 );
You can’t perform that action at this time.
0 commit comments