@@ -72,7 +72,7 @@ |
||
72 | 72 | */ |
73 | 73 | public static function getDataSourceFrom(ApplicationResource $resource, string $groupName) |
74 | 74 | { |
75 | - $group = $groupName === 'default' ? '': '-'. $groupName; |
|
75 | + $group = $groupName === 'default' ? '' : '-'.$groupName; |
|
76 | 76 | $dataSourceConfigPath = $resource->getConfigResourcePath('config/data-source'.$group); |
77 | 77 | $dataSource = new DataSource; |
78 | 78 | if ($dataSourceConfigPath !== null) { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | $path = $source; |
42 | 42 | if (Path::isRelativePath($source)) { |
43 | - $path = $relative . '/' . $path; |
|
43 | + $path = $relative.'/'.$path; |
|
44 | 44 | } |
45 | 45 | return Path::toAbsolutePath($path); |
46 | 46 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | foreach ($this->resource as $root) { |
97 | 97 | if ($pathInfo = $this->getTarget($root, $path)) { |
98 | 98 | list($root, $target) = $pathInfo; |
99 | - $templateLimitPath = $limitPath ? $root . '/' . $limitPath : $root; |
|
99 | + $templateLimitPath = $limitPath ? $root.'/'.$limitPath : $root; |
|
100 | 100 | if (FileSystem::exist($target) |
101 | 101 | && FileSystem::isOverflowPath($templateLimitPath, $target) === false) { |
102 | 102 | return $target; |
@@ -115,11 +115,11 @@ discard block |
||
115 | 115 | private function getTarget($root, string $path) |
116 | 116 | { |
117 | 117 | if (is_string($root)) { |
118 | - return [$root, $root . '/' . $path]; |
|
118 | + return [$root, $root.'/'.$path]; |
|
119 | 119 | } |
120 | 120 | list($prefix, $root) = $root; |
121 | 121 | if (strpos($path, $prefix) === 0) { |
122 | - return [$root, $root . '/' . ltrim(substr($path, strlen($prefix)), '/')]; |
|
122 | + return [$root, $root.'/'.ltrim(substr($path, strlen($prefix)), '/')]; |
|
123 | 123 | } |
124 | 124 | return null; |
125 | 125 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $group = $group ?? $request->getAttribute('group'); |
37 | 37 | $default = $default ?? $request->getAttribute('module'); |
38 | 38 | $url = $this->route->create($this->getRouteName($name, $default, $group), $parameter, $allowQuery); |
39 | - return $this->getUrlIndex($request) . '/' . ltrim($url, '/'); |
|
39 | + return $this->getUrlIndex($request).'/'.ltrim($url, '/'); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $module = $default; |
71 | 71 | } |
72 | 72 | if ($module !== null && ($moduleObj = $this->find($module))) { |
73 | - return $moduleObj->getFullName() . ':' . $name; |
|
73 | + return $moduleObj->getFullName().':'.$name; |
|
74 | 74 | } |
75 | 75 | return $name; |
76 | 76 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | } |
93 | 93 | $prefixGroup = $this->getRouteGroupPrefix($group); |
94 | 94 | if ($module !== null && ($moduleObj = $this->find($module))) { |
95 | - return $moduleObj->getFullName() . $prefixGroup . ':' . $name; |
|
95 | + return $moduleObj->getFullName().$prefixGroup.':'.$name; |
|
96 | 96 | } |
97 | 97 | return $name; |
98 | 98 | } |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | public function getUriBase(Request $request, bool $beautify = true): string |
135 | 135 | { |
136 | 136 | $index = $beautify ? $this->getUrlIndex($request) : $request->getIndex(); |
137 | - return $request->getUriBase() . $index; |
|
137 | + return $request->getUriBase().$index; |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
@@ -145,6 +145,6 @@ discard block |
||
145 | 145 | */ |
146 | 146 | protected function getRouteGroupPrefix(?string $group): string |
147 | 147 | { |
148 | - return $group === null || $group === 'default' ? '' : '@' . $group; |
|
148 | + return $group === null || $group === 'default' ? '' : '@'.$group; |
|
149 | 149 | } |
150 | 150 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | protected function parseStatic($content) |
29 | 29 | { |
30 | - $content = strlen(trim($content)) === 0 ?'()':$content; |
|
30 | + $content = strlen(trim($content)) === 0 ? '()' : $content; |
|
31 | 31 | return '<?php echo $this->getStaticModulePrefix'.$content.'; ?>'; |
32 | 32 | } |
33 | 33 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | protected function parseE($content) |
39 | 39 | { |
40 | - $content = strlen(trim($content)) === 0 ?'()':$content; |
|
40 | + $content = strlen(trim($content)) === 0 ? '()' : $content; |
|
41 | 41 | return '<?php echo $this->application->_'.$content.'; ?>'; |
42 | 42 | } |
43 | 43 | } |