Completed
Push — master ( fb7a26...d5e2d7 )
by Agiel Kurniawan
04:29
created
frontend/widgets/Alert.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,17 +51,17 @@
 block discarded – undo
51 51
         parent::init();
52 52
         $session = \Yii::$app->getSession();
53 53
         $flashes = $session->getAllFlashes();
54
-        $appendCss = isset($this->options['class']) ? ' ' . $this->options['class'] : '';
54
+        $appendCss = isset($this->options['class']) ? ' '.$this->options['class'] : '';
55 55
 
56 56
         foreach ($flashes as $type => $data) {
57 57
             if (isset($this->alertTypes[$type])) {
58 58
                 $data = (array)$data;
59 59
                 foreach ($data as $i => $message) {
60 60
                     /* initialize css class for each alert box */
61
-                    $this->options['class'] = $this->alertTypes[$type] . $appendCss;
61
+                    $this->options['class'] = $this->alertTypes[$type].$appendCss;
62 62
 
63 63
                     /* assign unique id to each alert box */
64
-                    $this->options['id'] = $this->getId() . '-' . $type . '-' . $i;
64
+                    $this->options['id'] = $this->getId().'-'.$type.'-'.$i;
65 65
 
66 66
                     echo \yii\bootstrap\Alert::widget([
67 67
                         'body' => $message,
Please login to merge, or discard this patch.
frontend/config/main.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@  discard block
 block discarded – undo
2 2
 use yii\web\Request;
3 3
 
4 4
 $params = array_merge(
5
-    require(__DIR__ . '/../../common/config/params.php'),
6
-    require(__DIR__ . '/../../common/config/params-local.php'),
7
-    require(__DIR__ . '/params.php'),
8
-    require(__DIR__ . '/params-local.php')
5
+    require(__DIR__.'/../../common/config/params.php'),
6
+    require(__DIR__.'/../../common/config/params-local.php'),
7
+    require(__DIR__.'/params.php'),
8
+    require(__DIR__.'/params-local.php')
9 9
 );
10 10
 
11
-$baseUrlBack = (new Request())->getBaseUrl() . '/admin';
11
+$baseUrlBack = (new Request())->getBaseUrl().'/admin';
12 12
 
13 13
 return [
14 14
     'id' => 'app-frontend',
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         ],
49 49
         'urlManagerBack' => [
50 50
             'class' => 'yii\web\urlManager',
51
-            'scriptUrl' => $baseUrlBack . '/index.php',
51
+            'scriptUrl' => $baseUrlBack.'/index.php',
52 52
             'baseUrl' => $baseUrlBack,
53 53
         ],
54 54
         'authManager' => [
Please login to merge, or discard this patch.
console/migrations/m000000_000002_user.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -25,16 +25,16 @@
 block discarded – undo
25 25
 
26 26
         $this->createTable('{{%user}}', [
27 27
             'id' => Schema::TYPE_PK,
28
-            'username' => Schema::TYPE_STRING . '(255) NOT NULL',
29
-            'email' => Schema::TYPE_STRING . '(255) NOT NULL',
30
-            'full_name' => Schema::TYPE_STRING . '(255)',
31
-            'display_name' => Schema::TYPE_STRING . '(255)',
32
-            'password_hash' => Schema::TYPE_STRING . '(255) NOT NULL',
33
-            'password_reset_token' => Schema::TYPE_STRING . '(255)',
34
-            'auth_key' => Schema::TYPE_STRING . '(32) NOT NULL',
35
-            'status' => Schema::TYPE_SMALLINT . '(6) NOT NULL DEFAULT 5',
36
-            'created_at' => Schema::TYPE_DATETIME . ' NOT NULL',
37
-            'updated_at' => Schema::TYPE_DATETIME . ' NOT NULL',
28
+            'username' => Schema::TYPE_STRING.'(255) NOT NULL',
29
+            'email' => Schema::TYPE_STRING.'(255) NOT NULL',
30
+            'full_name' => Schema::TYPE_STRING.'(255)',
31
+            'display_name' => Schema::TYPE_STRING.'(255)',
32
+            'password_hash' => Schema::TYPE_STRING.'(255) NOT NULL',
33
+            'password_reset_token' => Schema::TYPE_STRING.'(255)',
34
+            'auth_key' => Schema::TYPE_STRING.'(32) NOT NULL',
35
+            'status' => Schema::TYPE_SMALLINT.'(6) NOT NULL DEFAULT 5',
36
+            'created_at' => Schema::TYPE_DATETIME.' NOT NULL',
37
+            'updated_at' => Schema::TYPE_DATETIME.' NOT NULL',
38 38
             'login_at' => Schema::TYPE_DATETIME,
39 39
         ], $tableOptions);
40 40
 
Please login to merge, or discard this patch.
console/migrations/m000000_000019_menu_item.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
 
24 24
         $this->createTable('{{%menu_item}}', [
25 25
             'id' => Schema::TYPE_PK,
26
-            'menu_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
27
-            'label' => Schema::TYPE_STRING . '(255) NOT NULL',
28
-            'url' => Schema::TYPE_TEXT . ' NOT NULL',
26
+            'menu_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
27
+            'label' => Schema::TYPE_STRING.'(255) NOT NULL',
28
+            'url' => Schema::TYPE_TEXT.' NOT NULL',
29 29
             'description' => Schema::TYPE_TEXT,
30
-            'order' => Schema::TYPE_INTEGER . '(11) NOT NULL DEFAULT 0',
31
-            'parent' => Schema::TYPE_INTEGER . '(11) NOT NULL DEFAULT 0',
30
+            'order' => Schema::TYPE_INTEGER.'(11) NOT NULL DEFAULT 0',
31
+            'parent' => Schema::TYPE_INTEGER.'(11) NOT NULL DEFAULT 0',
32 32
             'options' => Schema::TYPE_TEXT,
33 33
             'FOREIGN KEY ([[menu_id]]) REFERENCES {{%menu}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
34 34
         ], $tableOptions);
Please login to merge, or discard this patch.
console/migrations/m000000_000009_post_type_taxonomy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         $this->createTable('{{%post_type_taxonomy}}', [
25
-            'post_type_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
26
-            'taxonomy_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
25
+            'post_type_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
26
+            'taxonomy_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
27 27
             'PRIMARY KEY ([[post_type_id]], [[taxonomy_id]])',
28 28
             'FOREIGN KEY ([[post_type_id]]) REFERENCES {{%post_type}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
29 29
             'FOREIGN KEY ([[taxonomy_id]]) REFERENCES {{%taxonomy}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
Please login to merge, or discard this patch.
console/migrations/m000000_000018_menu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 
24 24
         $this->createTable('{{%menu}}', [
25 25
             'id' => Schema::TYPE_PK,
26
-            'title' => Schema::TYPE_STRING . '(255) NOT NULL',
27
-            'location' => Schema::TYPE_STRING . '(50)',
26
+            'title' => Schema::TYPE_STRING.'(255) NOT NULL',
27
+            'location' => Schema::TYPE_STRING.'(50)',
28 28
         ], $tableOptions);
29 29
     }
30 30
 
Please login to merge, or discard this patch.
console/migrations/m000000_000021_widget.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@
 block discarded – undo
23 23
 
24 24
         $this->createTable('{{%widget}}', [
25 25
             'id' => Schema::TYPE_PK,
26
-            'title' => Schema::TYPE_STRING . '(255) NOT NULL',
27
-            'config' => Schema::TYPE_TEXT . ' NOT NULL',
28
-            'location' => Schema::TYPE_STRING . '(128) NOT NULL',
29
-            'order' => Schema::TYPE_INTEGER . '(11) NOT NULL DEFAULT 0',
30
-            'directory' => Schema::TYPE_STRING . '(128) NOT NULL',
31
-            'date' => Schema::TYPE_DATETIME . ' NOT NULL',
32
-            'modified' => Schema::TYPE_DATETIME . ' NOT NULL',
26
+            'title' => Schema::TYPE_STRING.'(255) NOT NULL',
27
+            'config' => Schema::TYPE_TEXT.' NOT NULL',
28
+            'location' => Schema::TYPE_STRING.'(128) NOT NULL',
29
+            'order' => Schema::TYPE_INTEGER.'(11) NOT NULL DEFAULT 0',
30
+            'directory' => Schema::TYPE_STRING.'(128) NOT NULL',
31
+            'date' => Schema::TYPE_DATETIME.' NOT NULL',
32
+            'modified' => Schema::TYPE_DATETIME.' NOT NULL',
33 33
         ], $tableOptions);
34 34
     }
35 35
 
Please login to merge, or discard this patch.
console/migrations/m000000_000012_term_relationship.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         $this->createTable('{{%term_relationship}}', [
25
-            'post_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
26
-            'term_id' => Schema::TYPE_INTEGER . '(11) NOT NULL',
25
+            'post_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
26
+            'term_id' => Schema::TYPE_INTEGER.'(11) NOT NULL',
27 27
             'PRIMARY KEY ([[post_id]], [[term_id]])',
28 28
             'FOREIGN KEY ([[post_id]]) REFERENCES {{%post}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
29 29
             'FOREIGN KEY ([[term_id]]) REFERENCES {{%term}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
Please login to merge, or discard this patch.
console/migrations/m000000_000011_post.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,18 +23,18 @@
 block discarded – undo
23 23
 
24 24
         $this->createTable('{{%post}}', [
25 25
             'id' => Schema::TYPE_PK,
26
-            'author' => Schema::TYPE_INTEGER . '(11) NOT NULL',
27
-            'type' => Schema::TYPE_INTEGER . '(11)',
28
-            'title' => Schema::TYPE_TEXT . ' NOT NULL',
26
+            'author' => Schema::TYPE_INTEGER.'(11) NOT NULL',
27
+            'type' => Schema::TYPE_INTEGER.'(11)',
28
+            'title' => Schema::TYPE_TEXT.' NOT NULL',
29 29
             'excerpt' => Schema::TYPE_TEXT,
30 30
             'content' => Schema::TYPE_TEXT,
31
-            'date' => Schema::TYPE_DATETIME . ' NOT NULL',
32
-            'modified' => Schema::TYPE_DATETIME . ' NOT NULL',
33
-            'status' => Schema::TYPE_STRING . "(20) NOT NULL DEFAULT 'publish'",
34
-            'password' => Schema::TYPE_STRING . '(255)',
35
-            'slug' => Schema::TYPE_STRING . '(255) NOT NULL',
36
-            'comment_status' => Schema::TYPE_STRING . "(20) NOT NULL DEFAULT 'open'",
37
-            'comment_count' => Schema::TYPE_INTEGER . '(11) NOT NULL DEFAULT 0',
31
+            'date' => Schema::TYPE_DATETIME.' NOT NULL',
32
+            'modified' => Schema::TYPE_DATETIME.' NOT NULL',
33
+            'status' => Schema::TYPE_STRING."(20) NOT NULL DEFAULT 'publish'",
34
+            'password' => Schema::TYPE_STRING.'(255)',
35
+            'slug' => Schema::TYPE_STRING.'(255) NOT NULL',
36
+            'comment_status' => Schema::TYPE_STRING."(20) NOT NULL DEFAULT 'open'",
37
+            'comment_count' => Schema::TYPE_INTEGER.'(11) NOT NULL DEFAULT 0',
38 38
             'FOREIGN KEY ([[type]]) REFERENCES {{%post_type}} ([[id]]) ON DELETE SET NULL ON UPDATE CASCADE',
39 39
             'FOREIGN KEY ([[author]]) REFERENCES {{%user}} ([[id]]) ON DELETE CASCADE ON UPDATE CASCADE',
40 40
         ], $tableOptions);
Please login to merge, or discard this patch.