Completed
Push — master ( 14d951...94c0bf )
by Basil
05:03
created
modules/cmsadmin/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/blocks/LinkButtonBlock.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,14 +82,14 @@
 block discarded – undo
82 82
 
83 83
     public function twigFrontend()
84 84
     {
85
-        return '{% if extras.linkTarget is not empty %}<a class="{{ extras.cssClass }}"{% if cfgs.targetBlank == 1  %}target="_blank" ' .
86
-        '{% endif %} href="{{ extras.linkTarget }}">{% if vars.label is not empty %} {{ vars.label }} {% endif %}' .
85
+        return '{% if extras.linkTarget is not empty %}<a class="{{ extras.cssClass }}"{% if cfgs.targetBlank == 1  %}target="_blank" '.
86
+        '{% endif %} href="{{ extras.linkTarget }}">{% if vars.label is not empty %} {{ vars.label }} {% endif %}'.
87 87
         '</a>{% endif %}';
88 88
     }
89 89
 
90 90
     public function twigAdmin()
91 91
     {
92
-        return '<p>' . Module::t('block_link_button_name') . ': {% if vars.linkData is empty %}' . Module::t('block_link_button_empty') . '</p>{% else %}' .
92
+        return '<p>'.Module::t('block_link_button_name').': {% if vars.linkData is empty %}'.Module::t('block_link_button_empty').'</p>{% else %}'.
93 93
         '</p><br/><strong>{% if vars.label is not empty %} {{ vars.label }} {% endif %}</strong>{% endif %}';
94 94
     }
95 95
 }
Please login to merge, or discard this patch.
modules/cmsadmin/blocks/LineBlock.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function config()
25 25
     {
26 26
         return [
27
-           'vars' => [
27
+            'vars' => [
28 28
                 ['var' => 'lineSpace', 'label' => Module::t('block_line_linespace_label'), 'type' => 'zaa-select', 'options' => [
29 29
                     ['value' => '5px', 'label' => '5px ' . Module::t('block_line_linespace_space')],
30 30
                     ['value' => '10px', 'label' => '10px ' . Module::t('block_line_linespace_space')],
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
26 26
         return [
27 27
            'vars' => [
28 28
                 ['var' => 'lineSpace', 'label' => Module::t('block_line_linespace_label'), 'type' => 'zaa-select', 'options' => [
29
-                    ['value' => '5px', 'label' => '5px ' . Module::t('block_line_linespace_space')],
30
-                    ['value' => '10px', 'label' => '10px ' . Module::t('block_line_linespace_space')],
31
-                    ['value' => '20px', 'label' => '20px ' . Module::t('block_line_linespace_space')],
32
-                    ['value' => '30px', 'label' => '30px ' . Module::t('block_line_linespace_space')],
29
+                    ['value' => '5px', 'label' => '5px '.Module::t('block_line_linespace_space')],
30
+                    ['value' => '10px', 'label' => '10px '.Module::t('block_line_linespace_space')],
31
+                    ['value' => '20px', 'label' => '20px '.Module::t('block_line_linespace_space')],
32
+                    ['value' => '30px', 'label' => '30px '.Module::t('block_line_linespace_space')],
33 33
                 ], 'initvalue' => '5px'],
34 34
                 ['var' => 'lineStyle', 'label' => Module::t('block_line_linestyle_label'), 'type' => 'zaa-select', 'options' => [
35 35
                     ['value' => 'dotted', 'label' => Module::t('block_line_linestyle_dotted')],
Please login to merge, or discard this patch.
modules/cmsadmin/models/Nav.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -120,13 +120,13 @@  discard block
 block discarded – undo
120 120
 
121 121
         switch ($e->name) {
122 122
             case 'afterInsert':
123
-                Log::add(1, "nav.insert, cms_nav.id '" . $this->id . "'", $this->toArray());
123
+                Log::add(1, "nav.insert, cms_nav.id '".$this->id."'", $this->toArray());
124 124
                 break;
125 125
             case 'afterUpdate':
126
-                Log::add(2, "nav.update, cms_nav.id '" . $this->id . "'", $this->toArray());
126
+                Log::add(2, "nav.update, cms_nav.id '".$this->id."'", $this->toArray());
127 127
                 break;
128 128
             case 'afterDelete':
129
-                Log::add(3, "nav.delete, cms_nav.id '" . $this->id . "'", $this->toArray());
129
+                Log::add(3, "nav.delete, cms_nav.id '".$this->id."'", $this->toArray());
130 130
                 break;
131 131
         }
132 132
     }
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
     public function moveUpstairs()
229 229
     {
230
-        $startIndex = (int)$this->sort_index;
230
+        $startIndex = (int) $this->sort_index;
231 231
         foreach (self::find()->where('sort_index >= :index', ['index' => $startIndex])->andWhere(['nav_container_id' => $this->nav_container_id, 'parent_nav_id' => $this->parent_nav_id])->orderBy('sort_index ASC')->asArray()->all() as $item) {
232 232
             ++$startIndex;
233 233
             Yii::$app->db->createCommand()->update(self::tableName(), ['sort_index' => $startIndex], 'id=:id', ['id' => $item['id']])->execute();
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 
237 237
     public function moveDownstairs()
238 238
     {
239
-        $startIndex = (int)$this->sort_index;
239
+        $startIndex = (int) $this->sort_index;
240 240
         foreach (self::find()->where('sort_index >= :index', ['index' => $startIndex])->andWhere(['nav_container_id' => $this->nav_container_id, 'parent_nav_id' => $this->parent_nav_id])->orderBy('sort_index ASC')->asArray()->all() as $item) {
241 241
             --$startIndex;
242 242
             Yii::$app->db->createCommand()->update(self::tableName(), ['sort_index' => $startIndex], 'id=:id', ['id' => $item['id']])->execute();
Please login to merge, or discard this patch.
modules/cmsadmin/migrations/m141203_143052_cms_cat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 {
7 7
     public function up()
8 8
     {
9
-        $this->createTable('cms_cat', [ // renameed to cms_nav_container
9
+        $this->createTable('cms_cat', [// renameed to cms_nav_container
10 10
             'id' => 'pk',
11 11
             'name' => 'VARCHAR(180) NOT NULL',
12 12
             'rewrite' => 'VARCHAR(80) NOT NULL', // renamed to alias
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
             'is_deleted' => 'TINYINT(1) NOT NULL default 0',
16 16
         ]);
17 17
 
18
-        $this->insert('cms_cat', [ // renamed to cms_nav_container
18
+        $this->insert('cms_cat', [// renamed to cms_nav_container
19 19
             'name' => 'Default Container',
20 20
             'rewrite' => 'default', // renmaed to alias
21 21
             'default_nav_id' => 1,
Please login to merge, or discard this patch.
modules/remoteadmin/models/Site.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,14 +69,14 @@
 block discarded – undo
69 69
                 $curl->setBasicAuthentication($this->auth_user, $this->auth_pass);
70 70
             }
71 71
             
72
-            $curl->get($url . 'admin/api-admin-remote?token=' . sha1($this->token));
72
+            $curl->get($url.'admin/api-admin-remote?token='.sha1($this->token));
73 73
             if ($curl->error) {
74 74
                 $data = false;
75 75
             } else {
76 76
                 $data = json_decode($curl->response, true);
77 77
             }
78 78
             
79
-            Yii::$app->cache->set($url, $data, (60*2));
79
+            Yii::$app->cache->set($url, $data, (60 * 2));
80 80
         }
81 81
         
82 82
         return $data;
Please login to merge, or discard this patch.
modules/remoteadmin/views/status/index.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,10 @@
 block discarded – undo
40 40
                     </button>
41 41
                 </a>
42 42
             </td>
43
-        <?php else: $err = true; ?>
43
+        <?php else {
44
+    : $err = true;
45
+}
46
+?>
44 47
             <td colspan="7"><div style="background-color:#FF8A80; padding:4px; color:white;">We are unable to retrieve dat from this Remote Page.</div></td>
45 48
         <?php endif; ?>
46 49
     </tr>
Please login to merge, or discard this patch.
modules/contactform/controllers/DefaultController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@
 block discarded – undo
25 25
         if ($model->load(Yii::$app->request->post()) && $model->validate()) {
26 26
             
27 27
             $html = '<h1>Contact Form</h1><p>Submission Date: '.date("d.m.Y H:i").'</p><table border="1">';
28
-            foreach($model->getAttributes() as $key => $value) {
29
-                $html.='<tr><td>'.$model->getAttributeLabel($key).'</td><td>' . nl2br($value) . '</td>';
28
+            foreach ($model->getAttributes() as $key => $value) {
29
+                $html .= '<tr><td>'.$model->getAttributeLabel($key).'</td><td>'.nl2br($value).'</td>';
30 30
             }
31
-            $html.= '</table>';
31
+            $html .= '</table>';
32 32
             
33 33
             $mail = Yii::$app->mail->compose('contactform', $html);
34 34
             $mail->adresses($this->module->recipients);
Please login to merge, or discard this patch.
modules/errorapi/views/default/_mail.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @var $model
4
- */
3
+     * @var $model
4
+     */
5 5
 ?>
6 6
 <h1 style="color: #f00;"><?php echo $model->message; ?></h1>
7 7
 <p style="color: #800000;">from <strong><?php echo $model->serverName; ?></strong></p>
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 ?>
6 6
 <h1 style="color: #f00;"><?php echo $model->message; ?></h1>
7 7
 <p style="color: #800000;">from <strong><?php echo $model->serverName; ?></strong></p>
8
-<a href="https://github.com/luyadev/luya/issues/new?title=<?php echo urlencode('#'. $model->identifier . ' ' . $model->message);?>"><?php echo errorapi\Module::t('mail_create_issue') ?></a>
8
+<a href="https://github.com/luyadev/luya/issues/new?title=<?php echo urlencode('#'.$model->identifier.' '.$model->message); ?>"><?php echo errorapi\Module::t('mail_create_issue') ?></a>
9 9
 <table cellspacing="2" cellpadding="6" border="0" width="1200">
10 10
 <?php foreach ($model->errorArray as $key => $value): ?>
11 11
 <tr>
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
             <table cellspacing="0" cellpadding="4" border="0">
35 35
                 <?php foreach ($value as $k => $v): ?>
36 36
                 <tr>
37
-                    <td><?php echo $k; ?>:</td><td><?php echo (is_array($v)) ?  print_r($v, true) : $v; ?></td>
37
+                    <td><?php echo $k; ?>:</td><td><?php echo (is_array($v)) ? print_r($v, true) : $v; ?></td>
38 38
                 </tr>
39 39
                 <?php endforeach; ?>
40 40
             </table>
41 41
         <?php else: ?>
42 42
             <?php echo $value; ?>
43
-        <?php endif;?>
43
+        <?php endif; ?>
44 44
 </tr>
45 45
 <?php endforeach; ?>
46 46
 </table>
47 47
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,11 @@
 block discarded – undo
38 38
                 </tr>
39 39
                 <?php endforeach; ?>
40 40
             </table>
41
-        <?php else: ?>
42
-            <?php echo $value; ?>
41
+        <?php else {
42
+    : ?>
43
+            <?php echo $value;
44
+}
45
+?>
43 46
         <?php endif;?>
44 47
 </tr>
45 48
 <?php endforeach; ?>
Please login to merge, or discard this patch.