Completed
Push — master ( 76e6f8...100486 )
by Basil
07:11
created
modules/cms/src/widgets/LanguageSwitcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             if ($item) {
57 57
                 $link = $item->link;
58 58
                 
59
-                if ($item->type == 2  && !empty($rule)) {
59
+                if ($item->type == 2 && !empty($rule)) {
60 60
                     $routeParams = [$rule['route']];
61 61
                     
62 62
                     foreach ($rule['params'] as $key => $value) {
Please login to merge, or discard this patch.
modules/cms/src/menu/InjectItem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     
110 110
     public function getAlias()
111 111
     {
112
-        return $this->menuItem->alias . '/' . $this->alias;
112
+        return $this->menuItem->alias.'/'.$this->alias;
113 113
     }
114 114
     
115 115
     public function getContainer()
@@ -189,12 +189,12 @@  discard block
 block discarded – undo
189 189
 
190 190
     public function getId()
191 191
     {
192
-        return $this->menuItem->id . '_' . md5(spl_object_hash($this) . $this->getAlias());
192
+        return $this->menuItem->id.'_'.md5(spl_object_hash($this).$this->getAlias());
193 193
     }
194 194
     
195 195
     public function getNavId()
196 196
     {
197
-        return $this->menuItem->navId . '_' . $this->getChildOf();
197
+        return $this->menuItem->navId.'_'.$this->getChildOf();
198 198
     }
199 199
     
200 200
     public function toArray()
Please login to merge, or discard this patch.
modules/cmsadmin/src/blocks/ModuleBlock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     public function twigAdmin()
70 70
     {
71
-        return '{% if vars.moduleName is empty %}<span class="block__empty-text">' . Module::t('block_module_no_module') . '</span>{% else %}<p><i class="material-icons">developer_board</i> ' . Module::t('block_module_integration') . ': <strong>{{ vars.moduleName }}</strong></p>{% endif %}';
71
+        return '{% if vars.moduleName is empty %}<span class="block__empty-text">'.Module::t('block_module_no_module').'</span>{% else %}<p><i class="material-icons">developer_board</i> '.Module::t('block_module_integration').': <strong>{{ vars.moduleName }}</strong></p>{% endif %}';
72 72
     }
73 73
 
74 74
     public function twigFrontend()
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             
113 113
             return $response;
114 114
         } catch (\Exception $err) {
115
-            throw new Exception('Module Block Exception: ' . $err->getMessage());
115
+            throw new Exception('Module Block Exception: '.$err->getMessage());
116 116
         }
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
modules/cmsadmin/src/blocks/ImageBlock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@
 block discarded – undo
92 92
 
93 93
     public function twigAdmin()
94 94
     {
95
-        $image = '{% if extras.imageAdmin.source %}<p><img src="{{extras.imageAdmin.source}}"{% if cfgs.width %} width="{{cfgs.width}}"{% endif %}{% if cfgs.height %} height="{{cfgs.height}}"{% endif %} border="0" style="max-width: 100%;" /><p>{% else %}<span class="block__empty-text">' . Module::t('block_image_no_image') . '</span>{% endif %}';
96
-        $image.= '{% if vars.caption is not empty %}{{vars.caption}}{% endif %}';
95
+        $image = '{% if extras.imageAdmin.source %}<p><img src="{{extras.imageAdmin.source}}"{% if cfgs.width %} width="{{cfgs.width}}"{% endif %}{% if cfgs.height %} height="{{cfgs.height}}"{% endif %} border="0" style="max-width: 100%;" /><p>{% else %}<span class="block__empty-text">'.Module::t('block_image_no_image').'</span>{% endif %}';
96
+        $image .= '{% if vars.caption is not empty %}{{vars.caption}}{% endif %}';
97 97
 
98 98
         return $image;
99 99
     }
Please login to merge, or discard this patch.
modules/cmsadmin/src/blocks/TableBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
 
102 102
     public function twigAdmin()
103 103
     {
104
-        return  '<p>{% if extras.table is empty %}<span class="block__empty-text">' . Module::t('block_table_no_table') . '</span>{% else %}'.
104
+        return  '<p>{% if extras.table is empty %}<span class="block__empty-text">'.Module::t('block_table_no_table').'</span>{% else %}'.
105 105
                 '<table>'.
106 106
                     '{% if cfgs.header %}'.
107 107
                     '<thead>'.
Please login to merge, or discard this patch.
modules/cmsadmin/src/blocks/MapBlock.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,25 +38,25 @@  discard block
 block discarded – undo
38 38
                     'options' => [
39 39
                         ['value' => '0', 'label' => Module::t('block_map_zoom_entire')],
40 40
                         ['value' => '1', 'label' => '4000 km'],
41
-                        ['value' => '2', 'label' => '2000 km (' . Module::t('block_map_zoom_world') . ')'],
41
+                        ['value' => '2', 'label' => '2000 km ('.Module::t('block_map_zoom_world').')'],
42 42
                         ['value' => '3', 'label' => '1000 km'],
43
-                        ['value' => '4', 'label' => '400 km (' . Module::t('block_map_zoom_continent') . ')'],
43
+                        ['value' => '4', 'label' => '400 km ('.Module::t('block_map_zoom_continent').')'],
44 44
                         ['value' => '5', 'label' => '200 km'],
45
-                        ['value' => '6', 'label' => '100 km (' . Module::t('block_map_zoom_country') . ')'],
45
+                        ['value' => '6', 'label' => '100 km ('.Module::t('block_map_zoom_country').')'],
46 46
                         ['value' => '7', 'label' => '50 km'],
47 47
                         ['value' => '8', 'label' => '30 km'],
48 48
                         ['value' => '9', 'label' => '15 km'],
49 49
                         ['value' => '10', 'label' => '8 km'],
50 50
                         ['value' => '11', 'label' => '4 km'],
51
-                        ['value' => '12', 'label' => '2 km (' . Module::t('block_map_zoom_city') . ')'],
51
+                        ['value' => '12', 'label' => '2 km ('.Module::t('block_map_zoom_city').')'],
52 52
                         ['value' => '13', 'label' => '1 km'],
53
-                        ['value' => '14', 'label' => '400 m (' . Module::t('block_map_zoom_district') . ')'],
53
+                        ['value' => '14', 'label' => '400 m ('.Module::t('block_map_zoom_district').')'],
54 54
                         ['value' => '15', 'label' => '200 m'],
55 55
                         ['value' => '16', 'label' => '100 m'],
56
-                        ['value' => '17', 'label' => '50 m (' . Module::t('block_map_zoom_street') . ')'],
56
+                        ['value' => '17', 'label' => '50 m ('.Module::t('block_map_zoom_street').')'],
57 57
                         ['value' => '18', 'label' => '20 m'],
58 58
                         ['value' => '19', 'label' => '10 m'],
59
-                        ['value' => '20', 'label' => '5 m (' . Module::t('block_map_zoom_house') . ')'],
59
+                        ['value' => '20', 'label' => '5 m ('.Module::t('block_map_zoom_house').')'],
60 60
                         ['value' => '21', 'label' => '2.5 m'],
61 61
                     ],
62 62
                 ],
@@ -90,6 +90,6 @@  discard block
 block discarded – undo
90 90
 
91 91
     public function twigAdmin()
92 92
     {
93
-        return '{% if vars.address is not empty %}<div class="video-container" style="margin:100px;"><iframe src="http://maps.google.com/maps?f=q&source=s_q&hl=de&geocode=&q={{ extras.address }}&z={{ extras.zoom }}&t={{ extras.maptype }}&output=embed" width="600" height="450" frameborder="0" style="border:0"></iframe></div>{% else %}<span class="block__empty-text">' . Module::t('block_map_no_content') . '</span>{% endif %}';
93
+        return '{% if vars.address is not empty %}<div class="video-container" style="margin:100px;"><iframe src="http://maps.google.com/maps?f=q&source=s_q&hl=de&geocode=&q={{ extras.address }}&z={{ extras.zoom }}&t={{ extras.maptype }}&output=embed" width="600" height="450" frameborder="0" style="border:0"></iframe></div>{% else %}<span class="block__empty-text">'.Module::t('block_map_no_content').'</span>{% endif %}';
94 94
     }
95 95
 }
Please login to merge, or discard this patch.
modules/cmsadmin/src/blocks/FormBlock.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
                     '{% if extras.name and extras.email and extras.message %}'.
126 126
                         '{% if extras.mailerResponse == "success" %}'.
127 127
                             '<div class="alert alert-success">{{ extras.sendSuccess }}</div>'.
128
-                         '{% else %}'.
128
+                            '{% else %}'.
129 129
                             '<div class="alert alert-danger">{{ extras.sendError }}</div>'.
130 130
                         '{% endif %}'.
131 131
                     '{% endif %}'.
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@
 block discarded – undo
84 84
             'email' => Yii::$app->request->post('email'),
85 85
             'mailerResponse' => $this->getPostResponse(),
86 86
             'csrf' => Yii::$app->request->csrfToken,
87
-            'nameErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('name') ? 1 : 0): 1,
88
-            'emailErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('email') ? 1 : 0): 1,
89
-            'messageErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('message') ? 1 : 0): 1,
87
+            'nameErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('name') ? 1 : 0) : 1,
88
+            'emailErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('email') ? 1 : 0) : 1,
89
+            'messageErrorFlag' => Yii::$app->request->isPost ? (Yii::$app->request->post('message') ? 1 : 0) : 1,
90 90
         ];
91 91
     }
92 92
 
Please login to merge, or discard this patch.
modules/cmsadmin/src/blocks/AudioBlock.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
     public function config()
25 25
     {
26 26
         return [
27
-           'vars' => [
27
+            'vars' => [
28 28
                 ['var' => 'soundUrl', 'label' => 'Embeded Code', 'type' => 'zaa-text'],
29
-           ],
29
+            ],
30 30
         ];
31 31
     }
32 32
 
Please login to merge, or discard this patch.
modules/cmsadmin/src/blocks/WysiwygBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,6 +41,6 @@
 block discarded – undo
41 41
 
42 42
     public function twigAdmin()
43 43
     {
44
-        return '{% if vars.content is empty %}<span class="block__empty-text">' . Module::t('block_wysiwyg_no_content') . '</span>{% else %}{{ vars.content }}{% endif %}';
44
+        return '{% if vars.content is empty %}<span class="block__empty-text">'.Module::t('block_wysiwyg_no_content').'</span>{% else %}{{ vars.content }}{% endif %}';
45 45
     }
46 46
 }
Please login to merge, or discard this patch.