Completed
Push — master ( 9bf96f...1e2b53 )
by Marc
03:56
created
core/tag/tags/LinkTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function parse($value, $sub)
28 28
     {
29 29
         if (substr($value, 0, 2) == '//') {
30
-            $value = StringHelper::replaceFirst('//', Url::base(true) . '/', $value);
30
+            $value = StringHelper::replaceFirst('//', Url::base(true).'/', $value);
31 31
             $external = false;
32 32
         } else {
33 33
             $external = true;
Please login to merge, or discard this patch.
core/lazyload/LazyLoad.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,14 +70,14 @@
 block discarded – undo
70 70
      */
71 71
     public function run()
72 72
     {
73
-        $class = 'lazy-image ' . $this->extraClass;
73
+        $class = 'lazy-image '.$this->extraClass;
74 74
         
75 75
         if ($this->attributesOnly) {
76 76
             return "class=\"{$class}\" data-src=\"$this->src\" data-width=\"$this->width\" data-height=\"$this->height\" data-as-background=\"1\"";
77 77
         }
78 78
         
79 79
         $tag = Html::tag('img', '', ['class' => $class, 'data-src' => $this->src, 'data-width' => $this->width, 'data-height' => $this->height]);
80
-        $tag.= '<noscript><img class="'.$class.'" src="'.$this->src.'" /></noscript>';
80
+        $tag .= '<noscript><img class="'.$class.'" src="'.$this->src.'" /></noscript>';
81 81
         return $tag;
82 82
     }
83 83
 }
Please login to merge, or discard this patch.
core/console/commands/CrudController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             
57 57
             if ($sqlTable == '?') {
58 58
                 foreach ($this->getSqlTablesArray() as $table) {
59
-                    $this->outputInfo("- " . $table);
59
+                    $this->outputInfo("- ".$table);
60 60
                 }
61 61
             }
62 62
             
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
                 case 'model':
154 154
 
155 155
                     if (!$extended) {
156
-                        $modelName = $modelName . 'NgRest';
157
-                        $item['file'] = $modelName . '.php';
156
+                        $modelName = $modelName.'NgRest';
157
+                        $item['file'] = $modelName.'.php';
158 158
                         $item['class'] = $modelName;
159 159
                     }
160 160
                     
Please login to merge, or discard this patch.
core/console/commands/ModuleController.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -34,22 +34,22 @@  discard block
 block discarded – undo
34 34
             }
35 35
         }
36 36
         
37
-        $appModulesFolder = Yii::$app->basePath . DIRECTORY_SEPARATOR . 'modules';
38
-        $moduleFolder = $appModulesFolder . DIRECTORY_SEPARATOR . $moduleName;
37
+        $appModulesFolder = Yii::$app->basePath.DIRECTORY_SEPARATOR.'modules';
38
+        $moduleFolder = $appModulesFolder.DIRECTORY_SEPARATOR.$moduleName;
39 39
         
40 40
         if (file_exists($moduleFolder)) {
41
-            return $this->outputError("The folder " . $moduleFolder . " exists already.");
41
+            return $this->outputError("The folder ".$moduleFolder." exists already.");
42 42
         }
43 43
         
44 44
         $folders = [
45 45
             'basePath' => $moduleFolder,
46
-            'adminPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'admin',
47
-            'adminPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . 'aws',
48
-            'frontendPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'frontend',
49
-            'blocksPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'frontend' . DIRECTORY_SEPARATOR . 'blocks',
50
-            'blocksPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'frontend' . DIRECTORY_SEPARATOR . 'controllers',
51
-            'blocksPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'frontend' . DIRECTORY_SEPARATOR . 'views',
52
-            'modelsPath' => $moduleFolder . DIRECTORY_SEPARATOR . 'models',
46
+            'adminPath' => $moduleFolder.DIRECTORY_SEPARATOR.'admin',
47
+            'adminPath' => $moduleFolder.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'aws',
48
+            'frontendPath' => $moduleFolder.DIRECTORY_SEPARATOR.'frontend',
49
+            'blocksPath' => $moduleFolder.DIRECTORY_SEPARATOR.'frontend'.DIRECTORY_SEPARATOR.'blocks',
50
+            'blocksPath' => $moduleFolder.DIRECTORY_SEPARATOR.'frontend'.DIRECTORY_SEPARATOR.'controllers',
51
+            'blocksPath' => $moduleFolder.DIRECTORY_SEPARATOR.'frontend'.DIRECTORY_SEPARATOR.'views',
52
+            'modelsPath' => $moduleFolder.DIRECTORY_SEPARATOR.'models',
53 53
         ];
54 54
 
55 55
         $vars = ['folders' => $folders, 'name' => $moduleName, 'ns' => 'app\\modules\\'.$moduleName];
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
         }
60 60
         
61 61
         $contents = [
62
-            $moduleFolder. DIRECTORY_SEPARATOR . 'README.md' => $this->view->render('@luya/console/commands/views/module/readme.php', $vars),
63
-            $moduleFolder. DIRECTORY_SEPARATOR . 'admin/Module.php' => $this->view->render('@luya/console/commands/views/module/adminmodule.php', $vars),
64
-            $moduleFolder. DIRECTORY_SEPARATOR . 'frontend/Module.php' => $this->view->render('@luya/console/commands/views/module/frontendmodule.php', $vars),
62
+            $moduleFolder.DIRECTORY_SEPARATOR.'README.md' => $this->view->render('@luya/console/commands/views/module/readme.php', $vars),
63
+            $moduleFolder.DIRECTORY_SEPARATOR.'admin/Module.php' => $this->view->render('@luya/console/commands/views/module/adminmodule.php', $vars),
64
+            $moduleFolder.DIRECTORY_SEPARATOR.'frontend/Module.php' => $this->view->render('@luya/console/commands/views/module/frontendmodule.php', $vars),
65 65
         ];
66 66
         
67 67
         foreach ($contents as $fileName => $content) {
Please login to merge, or discard this patch.