File tree Expand file tree Collapse file tree 5 files changed +16
-15
lines changed
Authorization/Model/ResourceModel
Backup/Model/ResourceModel
Captcha/Model/Config/Form
CurrencySymbol/Controller/Adminhtml/System/Currency Expand file tree Collapse file tree 5 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- // @codingStandardsIgnoreFile
8
-
9
7
namespace Magento \Authorization \Model \ResourceModel ;
10
8
11
9
use Magento \Framework \App \ObjectManager ;
@@ -101,7 +99,10 @@ public function saveRel(\Magento\Authorization\Model\Rules $rule)
101
99
102
100
// If all was selected save it only and nothing else.
103
101
if ($ postedResources === [$ this ->_rootResource ->getId ()]) {
104
- $ insertData = $ this ->_prepareDataForTable (new \Magento \Framework \DataObject ($ row ), $ this ->getMainTable ());
102
+ $ insertData = $ this ->_prepareDataForTable (
103
+ new \Magento \Framework \DataObject ($ row ),
104
+ $ this ->getMainTable ()
105
+ );
105
106
106
107
$ connection ->insert ($ this ->getMainTable (), $ insertData );
107
108
} else {
@@ -113,7 +114,10 @@ public function saveRel(\Magento\Authorization\Model\Rules $rule)
113
114
$ row ['permission ' ] = in_array ($ resourceId , $ postedResources ) ? 'allow ' : 'deny ' ;
114
115
$ row ['resource_id ' ] = $ resourceId ;
115
116
116
- $ insertData = $ this ->_prepareDataForTable (new \Magento \Framework \DataObject ($ row ), $ this ->getMainTable ());
117
+ $ insertData = $ this ->_prepareDataForTable (
118
+ new \Magento \Framework \DataObject ($ row ),
119
+ $ this ->getMainTable ()
120
+ );
117
121
$ connection ->insert ($ this ->getMainTable (), $ insertData );
118
122
}
119
123
}
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- // @codingStandardsIgnoreFile
8
-
9
7
namespace Magento \Backup \Model \ResourceModel ;
10
8
11
9
class Helper extends \Magento \Framework \DB \Helper
@@ -176,7 +174,9 @@ public function getHeader()
176
174
$ dbConfig = $ this ->getConnection ()->getConfig ();
177
175
178
176
$ versionRow = $ this ->getConnection ()->fetchRow ('SHOW VARIABLES LIKE \'version \'' );
179
- $ hostName = !empty ($ dbConfig ['unix_socket ' ]) ? $ dbConfig ['unix_socket ' ] : (!empty ($ dbConfig ['host ' ]) ? $ dbConfig ['host ' ] : 'localhost ' );
177
+ $ hostName = !empty ($ dbConfig ['unix_socket ' ])
178
+ ? $ dbConfig ['unix_socket ' ]
179
+ : (!empty ($ dbConfig ['host ' ]) ? $ dbConfig ['host ' ] : 'localhost ' );
180
180
181
181
$ header = "-- Magento DB backup \n" .
182
182
"-- \n" .
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- // @codingStandardsIgnoreFile
8
-
9
7
/**
10
8
* Data source to fill "Forms" field
11
9
*
12
10
* @author Magento Core Team <core@magentocommerce.com>
13
11
*/
14
12
namespace Magento \Captcha \Model \Config \Form ;
15
13
16
- abstract class AbstractForm extends \Magento \Framework \App \Config \Value implements \Magento \Framework \Option \ArrayInterface
14
+ use Magento \Framework \App \Config \Value ;
15
+
16
+ abstract class AbstractForm extends Value implements \Magento \Framework \Option \ArrayInterface
17
17
{
18
18
/**
19
19
* @var string
Original file line number Diff line number Diff line change 5
5
* See COPYING.txt for license details.
6
6
*/
7
7
8
- // @codingStandardsIgnoreFile
9
-
10
8
namespace Magento \CurrencySymbol \Controller \Adminhtml \System \Currency ;
11
9
12
10
class SaveRates extends \Magento \CurrencySymbol \Controller \Adminhtml \System \Currency
@@ -24,7 +22,8 @@ public function execute()
24
22
foreach ($ data as $ currencyCode => $ rate ) {
25
23
foreach ($ rate as $ currencyTo => $ value ) {
26
24
$ value = abs ($ this ->_objectManager ->get (
27
- \Magento \Framework \Locale \FormatInterface::class)->getNumber ($ value ));
25
+ \Magento \Framework \Locale \FormatInterface::class
26
+ )->getNumber ($ value ));
28
27
$ data [$ currencyCode ][$ currencyTo ] = $ value ;
29
28
if ($ value == 0 ) {
30
29
$ this ->messageManager ->addWarning (
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- // @codingStandardsIgnoreFile
8
-
9
7
namespace Magento \Dhl \Model ;
10
8
11
9
use Magento \Catalog \Model \Product \Type ;
You can’t perform that action at this time.
0 commit comments