@@ -54,14 +54,14 @@ public function versionAction()
54
54
public function storeAction ()
55
55
{
56
56
$ this ->setStore ();
57
- $ data = array () ;
57
+ $ data = [] ;
58
58
59
59
foreach (Mage::helper ('clerk ' )->getAllStores () as $ store ) {
60
- $ data [] = array (
60
+ $ data [] = [
61
61
'id ' => $ store ->getId (),
62
62
'name ' => $ store ->getName (),
63
63
'active ' => (bool ) Mage::getStoreConfig ('clerk/general/active ' , $ store ),
64
- ) ;
64
+ ] ;
65
65
}
66
66
67
67
$ this ->getResponse ()->setBody (json_encode ($ data ));
@@ -123,7 +123,7 @@ public function categoryAction()
123
123
->getCollection ()
124
124
->addIsActiveFilter ()
125
125
->addAttributeToSelect ('name ' )
126
- ->addAttributeToFilter ('path ' , array ( 'like ' => "1/ {$ rootCategoryId }/% " ) )
126
+ ->addAttributeToFilter ('path ' , [ 'like ' => "1/ {$ rootCategoryId }/% " ] )
127
127
->setOrder ('entity_id ' , Varien_Db_Select::SQL_ASC )
128
128
->setPageSize ($ limit )
129
129
->setCurPage ($ page );
@@ -134,12 +134,12 @@ public function categoryAction()
134
134
//Get children categories
135
135
$ children = $ category ->getResource ()->getChildren ($ category );
136
136
137
- $ data = array (
137
+ $ data = [
138
138
'id ' => (int ) $ category ->getId (),
139
139
'name ' => $ category ->getName (),
140
140
'url ' => $ category ->getUrl (),
141
141
'subcategories ' => array_map ('intval ' , $ children ),
142
- ) ;
142
+ ] ;
143
143
144
144
$ items [] = $ data ;
145
145
}
@@ -167,7 +167,7 @@ public function orderAction()
167
167
$ days = $ this ->getIntParam ('days ' );
168
168
169
169
if (Mage::getStoreConfigFlag ('clerk/general/disable_order_synchronization ' )) {
170
- $ this ->getResponse ()->setBody (json_encode (array () ));
170
+ $ this ->getResponse ()->setBody (json_encode ([] ));
171
171
} else {
172
172
$ page = Mage::getModel ('clerk/orderpage ' )->load ($ page , $ limit , $ days );
173
173
$ this ->getResponse ()->setHeader ('Total-Page-Count ' , $ page ->totalPages );
0 commit comments