Completed
Push — master ( 88bd89...935965 )
by Alexander
03:24
created
app/modules/Application/Mvc/Model/Model.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         if ($this->translateModel && defined('LANG')) {
41 41
             // Если есть массив переводов и установлена константа активного языка или другого языка
42
-            if(self::$custom_lang){
42
+            if (self::$custom_lang) {
43 43
                 self::setLang(self::$custom_lang);
44 44
             } else {
45 45
                 self::setLang(LANG); // Устанавливаем текущий язык
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         if ($this->translateModel && defined('LANG')) {
41 41
             // Если есть массив переводов и установлена константа активного языка или другого языка
42
-            if(self::$custom_lang){
42
+            if(self::$custom_lang) {
43 43
                 self::setLang(self::$custom_lang);
44 44
             } else {
45 45
                 self::setLang(LANG); // Устанавливаем текущий язык
Please login to merge, or discard this patch.
app/modules/Cms/Controller/ConfigurationController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-     * @copyright Copyright (c) 2011 - 2014 Aleksandr Torosh (http://wezoom.com.ua)
4
-     * @author Aleksandr Torosh <[email protected]>
5
-     */
3
+ * @copyright Copyright (c) 2011 - 2014 Aleksandr Torosh (http://wezoom.com.ua)
4
+ * @author Aleksandr Torosh <[email protected]>
5
+ */
6 6
 
7 7
 namespace Cms\Controller;
8 8
 
Please login to merge, or discard this patch.
app/modules/Cms/Model/Javascript.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-     * @copyright Copyright (c) 2011 - 2014 Aleksandr Torosh (http://wezoom.net)
4
-     * @author Aleksandr Torosh <[email protected]>
5
-     */
3
+ * @copyright Copyright (c) 2011 - 2014 Aleksandr Torosh (http://wezoom.net)
4
+ * @author Aleksandr Torosh <[email protected]>
5
+ */
6 6
 
7 7
 namespace Cms\Model;
8 8
 
Please login to merge, or discard this patch.
app/modules/Cms/Model/Translate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     {
54 54
         $save = [];
55 55
         $languages = Language::find();
56
-        foreach($languages as $lang) {
56
+        foreach ($languages as $lang) {
57 57
             $save[$lang->getIso()] = [""=>""];
58 58
         }
59 59
 
Please login to merge, or discard this patch.
app/modules/Sitemap/Controller/IndexController.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -15,23 +15,23 @@  discard block
 block discarded – undo
15 15
 
16 16
     public function initialize()
17 17
     {
18
-        $this->cacheViewKey =  HOST_HASH . md5('Sitemap\Model\Sitemap');
18
+        $this->cacheViewKey = HOST_HASH . md5('Sitemap\Model\Sitemap');
19 19
 
20 20
         $this->models = [
21 21
             [
22 22
                 'class' => 'Publication',
23 23
                 'model' => 'Publication',
24 24
                 'where' => "", // preview_inner='0'  ,  etc.
25
-                'getLink' => function($model, $lang){
25
+                'getLink' => function ($model, $lang) {
26 26
                     return $this->langUrlCustom([
27 27
                         'for' => 'publication',
28 28
                         'type' => $model->getTypeSlug(),
29 29
                         'slug' => $model->getSlug()], $lang);
30 30
                 }
31
-            ],[
31
+            ], [
32 32
                 'class' => 'Page',
33 33
                 'model' => 'Page',
34
-                'getLink'      => function($model, $lang){
34
+                'getLink'      => function ($model, $lang) {
35 35
                     return $this->langUrlCustom([
36 36
                         'for' => 'page',
37 37
                         'slug' => $model->getSlug()], $lang);
@@ -43,19 +43,19 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function indexAction()
45 45
     {
46
-        $this->view->setRenderLevel( \Phalcon\Mvc\View::LEVEL_NO_RENDER );
46
+        $this->view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_NO_RENDER);
47 47
         $cache = $this->getDi()->get('cache');
48 48
         $sitemap_xml = $cache->get($this->cacheViewKey);
49 49
 
50
-        if(!$sitemap_xml){
50
+        if (!$sitemap_xml) {
51 51
             $langs = Language::find(['columns' => 'iso,primary']);
52 52
 
53 53
             //link(s) for main-page(s)
54
-            foreach ($langs as $lang){
54
+            foreach ($langs as $lang) {
55 55
                 $suffix = !$lang['primary'] ? $lang['iso'] . '/' : '';
56 56
                 $this->links[] = [
57
-                    'url' => 'http://' . $_SERVER['HTTP_HOST'] .  '/' . $suffix,
58
-                    'updated_at' => date('c',time()),
57
+                    'url' => 'http://' . $_SERVER['HTTP_HOST'] . '/' . $suffix,
58
+                    'updated_at' => date('c', time()),
59 59
                 ];
60 60
             }
61 61
 
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
                 foreach ($langs as $lang) {
69 69
                     foreach ($rows as $row) {
70 70
                         $row::setCustomLang($lang->iso);
71
-                        if($row->getSlug() !== 'index' && $row->getTitle()){
71
+                        if ($row->getSlug() !== 'index' && $row->getTitle()) {
72 72
                             $this->links[] = [
73
-                                'url'        => 'http://' . $_SERVER['HTTP_HOST'] .  $m['getLink']($row, $lang->iso),
73
+                                'url'        => 'http://' . $_SERVER['HTTP_HOST'] . $m['getLink']($row, $lang->iso),
74 74
                                 'updated_at' => date('c', strtotime($row->getUpdatedAt())),
75 75
                             ];
76 76
                         }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
     private function getRawXml()
99 99
     {
100
-        $this->view->setRenderLevel( \Phalcon\Mvc\View::LEVEL_ACTION_VIEW );
100
+        $this->view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_ACTION_VIEW);
101 101
         $this->view->links = $this->links;
102 102
         $this->view->start();
103 103
         $this->view->setLayoutsDir('../views/');
Please login to merge, or discard this patch.
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
                 'class' => 'Publication',
23 23
                 'model' => 'Publication',
24 24
                 'where' => "", // preview_inner='0'  ,  etc.
25
-                'getLink' => function($model, $lang){
25
+                'getLink' => function($model, $lang) {
26 26
                     return $this->langUrlCustom([
27 27
                         'for' => 'publication',
28 28
                         'type' => $model->getTypeSlug(),
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             ],[
32 32
                 'class' => 'Page',
33 33
                 'model' => 'Page',
34
-                'getLink'      => function($model, $lang){
34
+                'getLink'      => function($model, $lang) {
35 35
                     return $this->langUrlCustom([
36 36
                         'for' => 'page',
37 37
                         'slug' => $model->getSlug()], $lang);
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
         $cache = $this->getDi()->get('cache');
48 48
         $sitemap_xml = $cache->get($this->cacheViewKey);
49 49
 
50
-        if(!$sitemap_xml){
50
+        if(!$sitemap_xml) {
51 51
             $langs = Language::find(['columns' => 'iso,primary']);
52 52
 
53 53
             //link(s) for main-page(s)
54
-            foreach ($langs as $lang){
54
+            foreach ($langs as $lang) {
55 55
                 $suffix = !$lang['primary'] ? $lang['iso'] . '/' : '';
56 56
                 $this->links[] = [
57 57
                     'url' => 'http://' . $_SERVER['HTTP_HOST'] .  '/' . $suffix,
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 foreach ($langs as $lang) {
69 69
                     foreach ($rows as $row) {
70 70
                         $row::setCustomLang($lang->iso);
71
-                        if($row->getSlug() !== 'index' && $row->getTitle()){
71
+                        if($row->getSlug() !== 'index' && $row->getTitle()) {
72 72
                             $this->links[] = [
73 73
                                 'url'        => 'http://' . $_SERVER['HTTP_HOST'] .  $m['getLink']($row, $lang->iso),
74 74
                                 'updated_at' => date('c', strtotime($row->getUpdatedAt())),
Please login to merge, or discard this patch.