@@ -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 | |
5 | 5 | $groups = [ |
6 | 6 | [ |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return function($step = NULL, $params = []) { |
|
3 | +return function($step = null, $params = []) { |
|
4 | 4 | |
5 | 5 | $groups = [ |
6 | 6 | [ |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | return [ |
3 | - 'accessCheck' => function() { |
|
3 | + 'accessCheck' => function () { |
|
4 | 4 | $dataManager = new \Ui\DataManager('Users\User'); |
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> |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $root->setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9"); |
38 | 38 | $root = $xml->appendChild($root); |
39 | 39 | |
40 | - $addToXml = function($xml, $parent, $nodeName, $text) { |
|
40 | + $addToXml = function ($xml, $parent, $nodeName, $text) { |
|
41 | 41 | $node = $parent->appendChild($xml->createElement($nodeName)); |
42 | 42 | $node->appendChild($xml->createTextNode($text)); |
43 | 43 | return $node; |
@@ -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,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,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | $tree = new Ui\Tree(); |
4 | -$tree->itemBodyFn = function($category) { |
|
4 | +$tree->itemBodyFn = function ($category) { |
|
5 | 5 | return Html::el('a', ['href' => $category->getHref()], $category->name()); |
6 | 6 | }; |
7 | -$tree->itemActiveCheck = function($curCategory) use($category) { |
|
7 | +$tree->itemActiveCheck = function ($curCategory) use($category) { |
|
8 | 8 | return $curCategory->id == $category->id || strpos($curCategory->tree_path, "/{$category->id}/") !== false; |
9 | 9 | }; |
10 | 10 | $tree->draw($category->getRoot()); |
@@ -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')); |