@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | isset($_REQUEST['desclang']) && |
| 25 | 25 | !isset($_REQUEST['descid'])) { // Ocprop |
| 26 | 26 | |
| 27 | - $cache_id = $_REQUEST['cacheid']; // Ocprop |
|
| 28 | - $desc_lang = $_REQUEST['desclang']; // Ocprop |
|
| 27 | + $cache_id = $_REQUEST['cacheid']; // Ocprop |
|
| 28 | + $desc_lang = $_REQUEST['desclang']; // Ocprop |
|
| 29 | 29 | |
| 30 | 30 | $rs = sql("SELECT `id` FROM `cache_desc` WHERE `cache_id`='&1' AND `language`='&2'", $cache_id, $desc_lang); |
| 31 | 31 | if (mysqli_num_rows($rs) == 1) { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | //save to DB? |
| 93 | 93 | if (isset($_POST['post'])) { // Ocprop |
| 94 | 94 | //here we read all used information from the form if submitted |
| 95 | - $descMode = (int) $_POST['descMode'] ?? EditorConstants::EDITOR_MODE; // Ocprop |
|
| 95 | + $descMode = (int)$_POST['descMode'] ?? EditorConstants::EDITOR_MODE; // Ocprop |
|
| 96 | 96 | |
| 97 | 97 | switch ($descMode) { |
| 98 | 98 | case EditorConstants::HTML_MODE: |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $oldDescMode = $descMode; |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - $short_desc = trim($_POST['short_desc']); // Ocprop |
|
| 118 | + $short_desc = trim($_POST['short_desc']); // Ocprop |
|
| 119 | 119 | $hint = htmlspecialchars(trim($_POST['hints']), ENT_COMPAT, 'UTF-8'); |
| 120 | 120 | $desclang = $_POST['desclang']; |
| 121 | 121 | $show_all_langs = isset($_POST['show_all_langs_value']) ? $_POST['show_all_langs_value'] : 0; |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | // Text from textarea |
| 133 | - $desc = trim($_POST['desc']); // Ocprop |
|
| 133 | + $desc = trim($_POST['desc']); // Ocprop |
|
| 134 | 134 | |
| 135 | 135 | // fuer alte Versionen von OCProp |
| 136 | 136 | if (isset($_POST['submit']) && !isset($_POST['version2'])) { |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | tpl_set_var('desclang', htmlspecialchars($desc_lang, ENT_COMPAT, 'UTF-8')); |
| 288 | 288 | tpl_set_var('desclang_name', htmlspecialchars(db_LanguageFromShort($desc_lang), ENT_COMPAT, 'UTF-8')); |
| 289 | 289 | tpl_set_var('cachename', htmlspecialchars($desc_record['name'], ENT_COMPAT, 'UTF-8')); |
| 290 | - tpl_set_var('reset', $reset); // obsolete |
|
| 290 | + tpl_set_var('reset', $reset); // obsolete |
|
| 291 | 291 | tpl_set_var('submit', $submit); |
| 292 | 292 | |
| 293 | 293 | // Text / normal HTML / HTML editor |
@@ -108,12 +108,12 @@ |
||
| 108 | 108 | // descMode auslesen, falls nicht gesetzt aus dem Profil laden |
| 109 | 109 | if (isset($_POST['descMode'])) { |
| 110 | 110 | // Ocprop |
| 111 | - $descMode = (int) $_POST['descMode']; |
|
| 111 | + $descMode = (int)$_POST['descMode']; |
|
| 112 | 112 | if (($descMode < EditorConstants::HTML_MODE) || ($descMode > EditorConstants::EDITOR_MODE)) { |
| 113 | 113 | $descMode = EditorConstants::EDITOR_MODE; |
| 114 | 114 | } |
| 115 | 115 | if (isset($_POST['oldDescMode'])) { |
| 116 | - $oldDescMode = (int) $_POST['oldDescMode']; |
|
| 116 | + $oldDescMode = (int)$_POST['oldDescMode']; |
|
| 117 | 117 | if (($oldDescMode < EditorConstants::HTML_MODE) || ($oldDescMode > EditorConstants::EDITOR_MODE)) { |
| 118 | 118 | $oldDescMode = $descMode; |
| 119 | 119 | } |
@@ -5,9 +5,9 @@ discard block |
||
| 5 | 5 | use Symfony\Component\ErrorHandler\Debug; |
| 6 | 6 | use Symfony\Component\HttpFoundation\Request; |
| 7 | 7 | |
| 8 | -require dirname(__DIR__).'/vendor/autoload.php'; |
|
| 8 | +require dirname(__DIR__) . '/vendor/autoload.php'; |
|
| 9 | 9 | |
| 10 | -(new Dotenv())->bootEnv(dirname(__DIR__).'/.env'); |
|
| 10 | +(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env'); |
|
| 11 | 11 | |
| 12 | 12 | if ($_SERVER['APP_DEBUG']) { |
| 13 | 13 | umask(0000); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | Request::setTrustedHosts([$trustedHosts]); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | -$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); |
|
| 26 | +$kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']); |
|
| 27 | 27 | $request = Request::createFromGlobals(); |
| 28 | 28 | $response = $kernel->handle($request); |
| 29 | 29 | $response->send(); |
@@ -6,18 +6,18 @@ |
||
| 6 | 6 | |
| 7 | 7 | class SecurityRolesEntity extends AbstractEntity |
| 8 | 8 | { |
| 9 | - /** @var int */ |
|
| 10 | - public $id; |
|
| 9 | + /** @var int */ |
|
| 10 | + public $id; |
|
| 11 | 11 | |
| 12 | - /** @var string */ |
|
| 13 | - public $role; |
|
| 12 | + /** @var string */ |
|
| 13 | + public $role; |
|
| 14 | 14 | |
| 15 | 15 | |
| 16 | - /** |
|
| 17 | - * @return bool |
|
| 18 | - */ |
|
| 19 | - public function isNew(): bool |
|
| 20 | - { |
|
| 21 | - return $this->id === null; |
|
| 22 | - } |
|
| 16 | + /** |
|
| 17 | + * @return bool |
|
| 18 | + */ |
|
| 19 | + public function isNew(): bool |
|
| 20 | + { |
|
| 21 | + return $this->id === null; |
|
| 22 | + } |
|
| 23 | 23 | } |
@@ -14,19 +14,19 @@ |
||
| 14 | 14 | protected function configureContainer(ContainerConfigurator $container): void |
| 15 | 15 | { |
| 16 | 16 | $container->import('../config/{packages}/*.php'); |
| 17 | - $container->import('../config/{packages}/'.$this->environment.'/*.php'); |
|
| 17 | + $container->import('../config/{packages}/' . $this->environment . '/*.php'); |
|
| 18 | 18 | |
| 19 | - if (is_file($path = \dirname(__DIR__).'/config/services.php')) { |
|
| 19 | + if (is_file($path = \dirname(__DIR__) . '/config/services.php')) { |
|
| 20 | 20 | (require $path)($container->withPath($path), $this); |
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | protected function configureRoutes(RoutingConfigurator $routes): void |
| 25 | 25 | { |
| 26 | - $routes->import('../config/{routes}/'.$this->environment.'/*.php'); |
|
| 26 | + $routes->import('../config/{routes}/' . $this->environment . '/*.php'); |
|
| 27 | 27 | $routes->import('../config/{routes}/*.php'); |
| 28 | 28 | |
| 29 | - if (is_file($path = \dirname(__DIR__).'/config/routes.php')) { |
|
| 29 | + if (is_file($path = \dirname(__DIR__) . '/config/routes.php')) { |
|
| 30 | 30 | (require $path)($routes->withPath($path), $this); |
| 31 | 31 | } |
| 32 | 32 | } |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Symfony\Component\Dotenv\Dotenv; |
| 4 | 4 | |
| 5 | -require dirname(__DIR__).'/vendor/autoload.php'; |
|
| 5 | +require dirname(__DIR__) . '/vendor/autoload.php'; |
|
| 6 | 6 | |
| 7 | -if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) { |
|
| 8 | - require dirname(__DIR__).'/config/bootstrap.php'; |
|
| 7 | +if (file_exists(dirname(__DIR__) . '/config/bootstrap.php')) { |
|
| 8 | + require dirname(__DIR__) . '/config/bootstrap.php'; |
|
| 9 | 9 | } elseif (method_exists(Dotenv::class, 'bootEnv')) { |
| 10 | - (new Dotenv())->bootEnv(dirname(__DIR__).'/.env'); |
|
| 10 | + (new Dotenv())->bootEnv(dirname(__DIR__) . '/.env'); |
|
| 11 | 11 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (file_exists(dirname(__DIR__).'/var/cache/prod/Oc_KernelProdContainer.preload.php')) { |
|
| 4 | - require dirname(__DIR__).'/var/cache/prod/Oc_KernelProdContainer.preload.php'; |
|
| 3 | +if (file_exists(dirname(__DIR__) . '/var/cache/prod/Oc_KernelProdContainer.preload.php')) { |
|
| 4 | + require dirname(__DIR__) . '/var/cache/prod/Oc_KernelProdContainer.preload.php'; |
|
| 5 | 5 | } |
@@ -2,6 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; |
| 4 | 4 | |
| 5 | -return function (RoutingConfigurator $routes) { |
|
| 5 | +return function(RoutingConfigurator $routes) { |
|
| 6 | 6 | |
| 7 | 7 | }; |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
| 6 | 6 | |
| 7 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 7 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 8 | 8 | $containerConfigurator->extension('framework', [ |
| 9 | 9 | 'notifier' => [ |
| 10 | 10 | 'channel_policy' => [ |