@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -104,7 +104,7 @@ |
||
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; |
@@ -28,26 +28,26 @@ |
||
28 | 28 | $this->output($fileName); |
29 | 29 | } |
30 | 30 | //$this->output(print_r($fileList, true)); |
31 | - $this->outputInfo(count($fileList) . " files to remove."); |
|
31 | + $this->outputInfo(count($fileList)." files to remove."); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | if (count($fileList) !== 0) { |
35 | 35 | $success = true; |
36 | - if ($this->confirm("Do you want to delete " . count($fileList) . " files which are not referenced in the database any more? (can not be undon, maybe create a backup first!)")) { |
|
36 | + if ($this->confirm("Do you want to delete ".count($fileList)." files which are not referenced in the database any more? (can not be undon, maybe create a backup first!)")) { |
|
37 | 37 | foreach ($fileList as $file) { |
38 | 38 | if (is_file($file) && @unlink($file)) { |
39 | - $this->outputSuccess($file . " successful deleted."); |
|
39 | + $this->outputSuccess($file." successful deleted."); |
|
40 | 40 | } elseif (is_file($file)) { |
41 | - $this->outputError($file . " could not be deleted!"); |
|
41 | + $this->outputError($file." could not be deleted!"); |
|
42 | 42 | $success = false; |
43 | 43 | } else { |
44 | - $this->outputError($file . " could not be found!"); |
|
44 | + $this->outputError($file." could not be found!"); |
|
45 | 45 | $success = false; |
46 | 46 | } |
47 | 47 | } |
48 | 48 | } |
49 | 49 | if ($success) { |
50 | - return $this->outputSuccess(count($fileList) . " files successful deleted."); |
|
50 | + return $this->outputSuccess(count($fileList)." files successful deleted."); |
|
51 | 51 | } |
52 | 52 | return $this->outputError("Cleanup could not be completed. Please look into error above."); |
53 | 53 | } |
@@ -63,7 +63,7 @@ |
||
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; |
@@ -114,9 +114,9 @@ |
||
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 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | if (!is_object($this->tags[$tag])) { |
64 | 64 | $this->tags[$tag] = Yii::createObject($this->tags[$tag]); |
65 | - Yii::trace('tag parser object generated for:'. $tag, __CLASS__); |
|
65 | + Yii::trace('tag parser object generated for:'.$tag, __CLASS__); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $value = isset($context['value']) ? $context['value'] : false; |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | public function parse($value, $sub) |
17 | 17 | { |
18 | - return Html::a(empty($sub) ? $value : $sub, 'tel:' . $this->ensureNumber($value)); |
|
18 | + return Html::a(empty($sub) ? $value : $sub, 'tel:'.$this->ensureNumber($value)); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | private function ensureNumber($number) |
@@ -105,7 +105,7 @@ |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | if (empty($this->langShortCode)) { |
108 | - $this->langShortCode = $this->prompt('Short-Code of the Standard language:', ['required' => true, 'default' => 'en', 'validator' => function ($input, &$error) { |
|
108 | + $this->langShortCode = $this->prompt('Short-Code of the Standard language:', ['required' => true, 'default' => 'en', 'validator' => function($input, &$error) { |
|
109 | 109 | if (strlen($input) !== 2) { |
110 | 110 | $error = 'The Short-Code must be 2 chars length only. Examples: de, en, fr, ru'; |
111 | 111 | return false; |
@@ -27,7 +27,7 @@ |
||
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; |