Completed
Push — master ( 308a3c...ebb499 )
by Alexey
08:08
created
system/modules/Materials/appControllers/content/category.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@  discard block
 block discarded – undo
2 2
     <div class="row">
3 3
         <div class="col-md-3">
4 4
           <?php
5
-          \Ui\Tree::ul($category->getRoot(), 0, function($category) {
6
-              echo "<a href='{$category->getHref()}'> {$category->name()}</a>";
7
-          });
8
-          ?>
5
+            \Ui\Tree::ul($category->getRoot(), 0, function($category) {
6
+                echo "<a href='{$category->getHref()}'> {$category->name()}</a>";
7
+            });
8
+            ?>
9 9
         </div>
10 10
         <div class="col-md-9">
11 11
             <div class="content">
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
                 <div class ="category-materials">
17 17
                     <div class ="row">
18 18
                       <?php
19
-                      $i = 0;
20
-                      foreach ($materials as $material) {
21
-                          ?>
19
+                        $i = 0;
20
+                        foreach ($materials as $material) {
21
+                            ?>
22 22
                             <div class = "col-sm-6 category-material">
23 23
                                 <a class="category-material-name" href ="<?= $material->getHref(); ?>"><h3><?= $material->name; ?></h3></a>
24 24
                                 <div class="category-material-preview"><?= $material->preview; ?></div>
Please login to merge, or discard this patch.
system/modules/Materials/appControllers/content/materialWithCategorys.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
     <div class="row">
3 3
         <div class="col-md-3">
4 4
           <?php
5
-          $category = $material->category;
6
-          \Ui\Tree::ul($category->getRoot(), 0, function($category) {
7
-              echo "<a href='{$category->getHref()}'> {$category->name()}</a>";
8
-          });
9
-          ?>
5
+            $category = $material->category;
6
+            \Ui\Tree::ul($category->getRoot(), 0, function($category) {
7
+                echo "<a href='{$category->getHref()}'> {$category->name()}</a>";
8
+            });
9
+            ?>
10 10
         </div>
11 11
         <div class="col-md-9">
12 12
             <div class="content">
Please login to merge, or discard this patch.
system/modules/Sliders/widgets/slider.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
     <!-- Indicators -->
15 15
     <ol class="carousel-indicators">
16 16
       <?php
17
-      $i = 0;
18
-      for ($i = 0; $i < count($slides); $i++) {
19
-          ?>
17
+        $i = 0;
18
+        for ($i = 0; $i < count($slides); $i++) {
19
+            ?>
20 20
             <li data-target="#sliderWidget-<?= $slider->id; ?>" data-slide-to="<?= $i; ?>" <?= !$i ? 'class="active"' : ''; ?>></li>
21 21
             <?php
22 22
         }
@@ -27,15 +27,15 @@  discard block
 block discarded – undo
27 27
     <!-- Wrapper for slides -->
28 28
     <div class="carousel-inner" role="listbox">
29 29
       <?php
30
-      $i = 0;
31
-      foreach ($slides as $item) {
32
-          ?>
30
+        $i = 0;
31
+        foreach ($slides as $item) {
32
+            ?>
33 33
             <div class="item <?= !$i ? 'active' : ''; ?>">
34 34
               <?php
35
-              if ($item->link) {
36
-                  echo "<a href = '{$item->link}' style = 'display:inline-block;'>";
37
-              }
38
-              ?>
35
+                if ($item->link) {
36
+                    echo "<a href = '{$item->link}' style = 'display:inline-block;'>";
37
+                }
38
+                ?>
39 39
                 <img src="<?= Statics::file($item->image->path); ?>" alt="<?= $item->name; ?>">
40 40
                 <div class="carousel-caption">
41 41
                   <?= $item->description; ?>
Please login to merge, or discard this patch.
system/modules/Sliders/install_script.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-return function ($step = NULL, $params = []) {
3
+return function ($step = null, $params = []) {
4 4
     
5 5
 };
Please login to merge, or discard this patch.
system/modules/Recaptcha/Recaptcha.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@
 block discarded – undo
17 17
     public function show() {
18 18
         if (!$this->config['sitekey']) {
19 19
             echo 'SiteKey not set for reCAPTCHA';
20
-        } else {
20
+        }
21
+        else {
21 22
             echo "<div class='g-recaptcha' data-sitekey='{$this->config['sitekey']}'></div>";
22 23
         }
23 24
     }
Please login to merge, or discard this patch.
system/modules/View/appAdminControllers/TemplateController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,8 @@
 block discarded – undo
31 31
             $content = file_get_contents($template->path . '/' . Tools::parsePath($_GET['path']));
32 32
             $this->libs->loadLib('Ace');
33 33
             $this->view->page(['content' => 'Template/edit', 'data' => compact('template', 'content')]);
34
-        } else {
34
+        }
35
+        else {
35 36
             $this->view->page(['content' => 'Template/chooseFile', 'data' => compact('template')]);
36 37
         }
37 38
     }
Please login to merge, or discard this patch.
system/modules/View/appAdminControllers/content/index.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,12 +11,13 @@
 block discarded – undo
11 11
     '',
12 12
     ''
13 13
 ]);
14
-if (!empty($templates['app']['installed']))
14
+if (!empty($templates['app']['installed'])) {
15 15
     foreach ($templates['app']['installed'] as $template => $name) {
16 16
         $table->addRow([
17 17
             $name,
18 18
             (empty($templates['app']['current']) || $templates['app']['current'] != $template) ? '<a href = "/admin/view/setDefault/' . $template . '">Установить по умолчанию</a>' : 'Тема по умолчанию',
19 19
             '<a href = "/admin/view/template/editFile/' . $template . '">Файлы</a> <a href = "/admin/view/editTemplate/' . $template . '">Редактировать</a>'
20 20
         ]);
21
+}
21 22
     }
22 23
 $table->draw();
Please login to merge, or discard this patch.
system/modules/View/objects/Template.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,8 @@
 block discarded – undo
165 165
     public function setModule($module = null) {
166 166
         if (!$module && !$this->module) {
167 167
             $this->module = \Module::$cur;
168
-        } else {
168
+        }
169
+        else {
169 170
             $this->module = $module;
170 171
         }
171 172
         if (is_string($this->module)) {
Please login to merge, or discard this patch.
system/modules/View/appControllers/ViewController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,8 @@
 block discarded – undo
13 13
     public function editorcssAction() {
14 14
         if (file_exists($this->view->template->path . '/css/editor.css')) {
15 15
             Tools::redirect('/static/templates/' . $this->view->template['name'] . '/css/editor.css');
16
-        } else {
16
+        }
17
+        else {
17 18
             header("Content-type: text/css");
18 19
             exit();
19 20
         }
Please login to merge, or discard this patch.