Completed
Push — master ( 606b71...4619bd )
by Marc
09:47
created
core/console/commands/MigrateController.php 2 patches
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -42,6 +42,11 @@
 block discarded – undo
42 42
         }
43 43
     }
44 44
 
45
+    /**
46
+     * @param string|boolean $module
47
+     *
48
+     * @return string
49
+     */
45 50
     private function getModuleMigrationDirectorie($module)
46 51
     {
47 52
         if (!array_key_exists($module, $this->moduleMigrationDirectories)) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     protected function createMigration($class)
68 68
     {
69
-        $orig = $this->migrationPath . DIRECTORY_SEPARATOR . $class . '.php';
69
+        $orig = $this->migrationPath.DIRECTORY_SEPARATOR.$class.'.php';
70 70
         
71 71
         if (file_exists($orig)) {
72 72
             require_once $orig;
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         
85 85
         $module = $this->prompt("Could not find migration class. Please enter the module name who belongs to '$class.':");
86 86
         $dir = $this->getModuleMigrationDirectorie($module);
87
-        $file = $dir . DIRECTORY_SEPARATOR . $class . '.php';
87
+        $file = $dir.DIRECTORY_SEPARATOR.$class.'.php';
88 88
         if (file_exists($file)) {
89 89
             require_once $file;
90 90
             return new $class();
Please login to merge, or discard this patch.
core/components/Mail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
                         return true;
169 169
                     } else {
170 170
                         $data = [$this->host, $this->port, $this->smtpSecure, $this->username];
171
-                        throw new Exception('Authentication failed ('.implode(',', $data).'): '.$smtp->getLastReply() . PHP_EOL . print_r($smtp->getError(), true));
171
+                        throw new Exception('Authentication failed ('.implode(',', $data).'): '.$smtp->getLastReply().PHP_EOL.print_r($smtp->getError(), true));
172 172
                     }
173 173
                 } else {
174 174
                     throw new Exception('HELO failed: '.$smtp->getLastReply());
Please login to merge, or discard this patch.
core/helpers/FileHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     {
42 42
         $info = pathinfo($file);
43 43
         if (!isset($info['extension']) || empty($info['extension'])) {
44
-            $file = rtrim($file, '.') . '.' . $extension;
44
+            $file = rtrim($file, '.').'.'.$extension;
45 45
         }
46 46
 
47 47
         return $file;
Please login to merge, or discard this patch.
core/console/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             if (isset($partial[0]) && (count($partial) > 1) && ($module = Yii::$app->getModule($partial[0]))) {
76 76
                 try {
77 77
                     // change the controller namespace of this module to make usage of `commands`.
78
-                    $module->controllerNamespace = $module->namespace . '\commands';
78
+                    $module->controllerNamespace = $module->namespace.'\commands';
79 79
                     unset($partial[0]);
80 80
                     // action response
81 81
                     return $module->runAction(implode("/", $partial), $params);
Please login to merge, or discard this patch.
core/console/Command.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function verbosePrint($message, $section = null)
36 36
     {
37 37
         if ($this->verbose) {
38
-            $this->output((!empty($section)) ? $section . ': ' . $message : $message);
38
+            $this->output((!empty($section)) ? $section.': '.$message : $message);
39 39
         }
40 40
     }
41 41
     
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $name = substr($name, 0, -(strlen($suffix)));
118 118
         }
119 119
     
120
-        return $name . $suffix;
120
+        return $name.$suffix;
121 121
     }
122 122
     
123 123
     /**
Please login to merge, or discard this patch.
core/helpers/Url.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     public static function ensureHttp($url, $https = false)
105 105
     {
106 106
         if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
107
-            $url = ($https ? "https://" : "http://") . $url;
107
+            $url = ($https ? "https://" : "http://").$url;
108 108
         }
109 109
         
110 110
         return $url;
Please login to merge, or discard this patch.
core/traits/ApplicationTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     public function getWebroot()
64 64
     {
65 65
         if ($this->_webroot === null) {
66
-            $this->_webroot = realpath(realpath($this->basePath) . DIRECTORY_SEPARATOR . $this->webrootDirectory);
66
+            $this->_webroot = realpath(realpath($this->basePath).DIRECTORY_SEPARATOR.$this->webrootDirectory);
67 67
         }
68 68
         
69 69
         return $this->_webroot;
Please login to merge, or discard this patch.
core/traits/ErrorHandlerTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,9 +114,9 @@
 block discarded – undo
114 114
             $_file = $exception->getFile();
115 115
             $_line = $exception->getLine();
116 116
         } elseif (is_string($exception)) {
117
-            $_message = 'exception string: ' . $exception;
117
+            $_message = 'exception string: '.$exception;
118 118
         } elseif (is_array($exception)) {
119
-            $_message = isset($exception['message']) ? $exception['message'] : 'exception array dump: ' . print_r($exception, true);
119
+            $_message = isset($exception['message']) ? $exception['message'] : 'exception array dump: '.print_r($exception, true);
120 120
             $_file = isset($exception['file']) ? $exception['file'] : __FILE__;
121 121
             $_line = isset($exception['line']) ? $exception['line'] : __LINE__;
122 122
         }
Please login to merge, or discard this patch.
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.