@@ -42,7 +42,7 @@ |
||
42 | 42 | $parts = explode('#', $input); |
43 | 43 | array_walk( |
44 | 44 | $parts, |
45 | - function (&$value) { |
|
45 | + function(&$value) { |
|
46 | 46 | $value = ucfirst(strtolower($value)); |
47 | 47 | } |
48 | 48 | ); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | foreach ($this->configuration->getData('themes') as $themeName => $themeData) { |
70 | 70 | $themeStaticPath = '/resources/'. |
71 | - ($themeName == 'default' ? 'default_theme' : 'vendor_themes/' . $themeName) |
|
71 | + ($themeName == 'default' ? 'default_theme' : 'vendor_themes/'.$themeName) |
|
72 | 72 | . '/static/'; |
73 | 73 | |
74 | 74 | |
@@ -82,19 +82,19 @@ discard block |
||
82 | 82 | 'license' => $themeData['legal']['license'] ?? '', |
83 | 83 | 'read_only' => isset($usedThemes[$themeName]), |
84 | 84 | 'feature_website' => isset($themeData['features']['website_support']) |
85 | - ? (bool)$themeData['features']['website_support'] |
|
85 | + ? (bool) $themeData['features']['website_support'] |
|
86 | 86 | : false, |
87 | 87 | 'feature_login' => isset($themeData['features']['admin_login_support']) |
88 | - ? (bool)$themeData['features']['admin_login_support'] |
|
88 | + ? (bool) $themeData['features']['admin_login_support'] |
|
89 | 89 | : false, |
90 | 90 | 'feature_admin' => isset($themeData['features']['admin_support']) |
91 | - ? (bool)$themeData['features']['admin_support'] |
|
91 | + ? (bool) $themeData['features']['admin_support'] |
|
92 | 92 | : false, |
93 | 93 | 'logo' => isset($themeData['legal']['logo']) |
94 | - ? $themeStaticPath . $themeData['legal']['logo'] |
|
94 | + ? $themeStaticPath.$themeData['legal']['logo'] |
|
95 | 95 | : '', |
96 | 96 | 'preview' => isset($themeData['legal']['preview']) |
97 | - ? $themeStaticPath . $themeData['legal']['preview'] |
|
97 | + ? $themeStaticPath.$themeData['legal']['preview'] |
|
98 | 98 | : '', |
99 | 99 | ]; |
100 | 100 | } |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * @param string $text |
109 | 109 | * @return TagParserFilter |
110 | 110 | */ |
111 | - private function getCurrentUri(string &$text) : TagParserFilter |
|
111 | + private function getCurrentUri(string&$text) : TagParserFilter |
|
112 | 112 | { |
113 | 113 | $uri = rtrim($this->environmentManager->getRequestUri(), '/'); |
114 | 114 | $text = str_replace('[URL]', $uri, $text); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $parameters = $this->getRoutingParameters(); |
50 | 50 | $userName = $parameters['uri_parameter'] ?? ''; |
51 | 51 | $user = $this->getUser($userName); |
52 | - $userMeta = $this->getUserMeta((int)$user->getUserId()); |
|
52 | + $userMeta = $this->getUserMeta((int) $user->getUserId()); |
|
53 | 53 | |
54 | 54 | $blogPosts = []; |
55 | 55 |
@@ -41,10 +41,10 @@ |
||
41 | 41 | $routingParams = $this->getRoutingParameters(); |
42 | 42 | |
43 | 43 | $content = 'Lorem ipsum dolor sit amet...'; |
44 | - $testFile = __DIR__ . '/../../../../../data/temp/markdownTest.md'; |
|
44 | + $testFile = __DIR__.'/../../../../../data/temp/markdownTest.md'; |
|
45 | 45 | |
46 | 46 | if (file_exists($testFile)) { |
47 | - $content = file_get_contents(__DIR__ . '/../../../../../data/temp/markdownTest.md'); |
|
47 | + $content = file_get_contents(__DIR__.'/../../../../../data/temp/markdownTest.md'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | return [ |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * @param Result $routeResult |
49 | 49 | * @return void |
50 | 50 | */ |
51 | - public function resolveMiddleware(string $application, Result &$routeResult) : void |
|
51 | + public function resolveMiddleware(string $application, Result&$routeResult) : void |
|
52 | 52 | { |
53 | 53 | $applicationEntity = $this->getApplicationEntity($application); |
54 | 54 |
@@ -44,5 +44,5 @@ |
||
44 | 44 | * @param Result $routeResult |
45 | 45 | * @return void |
46 | 46 | */ |
47 | - public function resolveMiddleware(string $application, Result &$routeResult) : void; |
|
47 | + public function resolveMiddleware(string $application, Result&$routeResult) : void; |
|
48 | 48 | } |
@@ -80,12 +80,12 @@ |
||
80 | 80 | /* @var FilesystemEntity $dataEntity */ |
81 | 81 | $dataEntity->setFilesystemId((int) $data[$this->idKey]) |
82 | 82 | ->setApplicationId((int) $data[$this->idApplication]) |
83 | - ->setCategoryId(isset($data[$this->idCategory]) ? (int)$data[$this->idCategory] : null) |
|
84 | - ->setParentId(isset($data[$this->idParent]) ? (int)$data[$this->idParent] : null) |
|
85 | - ->setDocumentId(isset($data[$this->idDocument]) ? (int)$data[$this->idDocument] : null) |
|
86 | - ->setFileId(isset($data[$this->idFile]) ? (int)$data[$this->idFile] : null) |
|
87 | - ->setDirectoryId(isset($data[$this->idDirectory]) ? (int)$data[$this->idDirectory] : null) |
|
88 | - ->setLinkId(isset($data[$this->idLink]) ? (int)$data[$this->idLink] : null) |
|
83 | + ->setCategoryId(isset($data[$this->idCategory]) ? (int) $data[$this->idCategory] : null) |
|
84 | + ->setParentId(isset($data[$this->idParent]) ? (int) $data[$this->idParent] : null) |
|
85 | + ->setDocumentId(isset($data[$this->idDocument]) ? (int) $data[$this->idDocument] : null) |
|
86 | + ->setFileId(isset($data[$this->idFile]) ? (int) $data[$this->idFile] : null) |
|
87 | + ->setDirectoryId(isset($data[$this->idDirectory]) ? (int) $data[$this->idDirectory] : null) |
|
88 | + ->setLinkId(isset($data[$this->idLink]) ? (int) $data[$this->idLink] : null) |
|
89 | 89 | ->setPath($data[$this->path]) |
90 | 90 | ->setBaseName($data[$this->baseName]) |
91 | 91 | ->setTitle($data[$this->title]) |