@@ -62,7 +62,7 @@ |
||
62 | 62 | public static function ul($objectRoot, $maxDeep = 0, $hrefFunc = null, $order = [], $activeFunc = '', $activeClass = 'active') { |
63 | 63 | $count = 0; |
64 | 64 | if (!$hrefFunc) { |
65 | - $hrefFunc = function($object) { |
|
65 | + $hrefFunc = function ($object) { |
|
66 | 66 | return "<a href='#'> {$object->name()}</a>"; |
67 | 67 | }; |
68 | 68 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * @covers Inji::unlisten |
9 | 9 | */ |
10 | 10 | public function testNotSavingEvent() { |
11 | - \Inji::$inst->listen('testEvent', 'testCallback', function() { |
|
11 | + \Inji::$inst->listen('testEvent', 'testCallback', function () { |
|
12 | 12 | return true; |
13 | 13 | }); |
14 | 14 | $this->assertEquals(true, Inji::$inst->event('testEvent')); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | define('INJI_DOMAIN_NAME', 'test.app'); |
17 | 17 | |
18 | -spl_autoload_register(function($class_name) { |
|
18 | +spl_autoload_register(function ($class_name) { |
|
19 | 19 | if (file_exists(INJI_SYSTEM_DIR . '/Inji/' . $class_name . '.php')) { |
20 | 20 | include_once INJI_SYSTEM_DIR . '/Inji/' . $class_name . '.php'; |
21 | 21 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | //load core |
25 | 25 | Inji::$inst = new Inji(); |
26 | 26 | Inji::$config = Config::system(); |
27 | -Inji::$inst->listen('Config-change-system', 'systemConfig', function($event) { |
|
27 | +Inji::$inst->listen('Config-change-system', 'systemConfig', function ($event) { |
|
28 | 28 | Inji::$config = $event['eventObject']; |
29 | 29 | return $event['eventObject']; |
30 | 30 | }); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | App::$cur->params = []; |
46 | 46 | App::$cur->config = Config::app(App::$cur); |
47 | 47 | App::$primary = App::$cur; |
48 | -Inji::$inst->listen('Config-change-app-' . App::$cur->name, 'curAppConfig', function($event) { |
|
48 | +Inji::$inst->listen('Config-change-app-' . App::$cur->name, 'curAppConfig', function ($event) { |
|
49 | 49 | App::$cur->config = $event['eventObject']; |
50 | 50 | return $event['eventObject']; |
51 | 51 | }); |
@@ -335,7 +335,7 @@ |
||
335 | 335 | } |
336 | 336 | |
337 | 337 | $categorys = \Ecommerce\Category::getList(['where' => ['parent_id', 0]]); |
338 | - $scan = function($category, $scan) { |
|
338 | + $scan = function ($category, $scan) { |
|
339 | 339 | $map = []; |
340 | 340 | |
341 | 341 | foreach ($category->items as $item) { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | return [ |
3 | - 'accessCheck' => function() { |
|
3 | + 'accessCheck' => function () { |
|
4 | 4 | $dataManager = new \Ui\DataManager('Materials\Material'); |
5 | 5 | return $dataManager->checkAccess(); |
6 | 6 | }, |
7 | - 'widget' => function() { |
|
7 | + 'widget' => function () { |
|
8 | 8 | ?> |
9 | 9 | <div class="panel panel-default"> |
10 | 10 | <div class="panel-heading">Материалы</div> |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return function($reward, $user) { |
|
3 | +return function ($reward, $user) { |
|
4 | 4 | return [ |
5 | 5 | 'date' => date('Y-m-d H:i:s', mktime(0, 0, 0, date('n'), date("j") + 1, date("Y"))), |
6 | 6 | 'type' => 'burn' |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | return [ |
3 | - 'widget' => function() { |
|
3 | + 'widget' => function () { |
|
4 | 4 | ?> |
5 | 5 | <div class="panel panel-default"> |
6 | 6 | <div class="panel-heading">Отзывы</div> |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return function($step = null, $params = []) { |
|
3 | +return function ($step = null, $params = []) { |
|
4 | 4 | $options = ['max_height' => 1200, 'max_width' => 1200]; |
5 | 5 | $types = [ |
6 | 6 | [ |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | return [ |
12 | 12 | 'classes' => ['Ui\DataManager'], |
13 | - 'get' => function($element) { |
|
13 | + 'get' => function ($element) { |
|
14 | 14 | $access = null; |
15 | 15 | $path = [ |
16 | 16 | 'models', |