@@ -42,7 +42,7 @@ |
||
| 42 | 42 | 'composer-plugin' => 'Composer Plugins' |
| 43 | 43 | ]; |
| 44 | 44 | $types = array_keys($typeOrder); |
| 45 | - usort($packages, function ($a, $b) use ($types) { |
|
| 45 | + usort($packages, function($a, $b) use ($types) { |
|
| 46 | 46 | return array_search($a['type'], $types) - array_search($b['type'], $types); |
| 47 | 47 | }); |
| 48 | 48 | |
@@ -319,7 +319,7 @@ |
||
| 319 | 319 | -----------------sha1sums----------------- |
| 320 | 320 | $zipSha1 $name.zip |
| 321 | 321 | $tarSha1 $name.tar.gz |
| 322 | -CHECKSUM; |
|
| 322 | +checksum; |
|
| 323 | 323 | file_put_contents("$name-checksum.txt", $checksum); |
| 324 | 324 | $progress->advance(); |
| 325 | 325 | |
@@ -92,10 +92,10 @@ |
||
| 92 | 92 | |
| 93 | 93 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 94 | 94 | { |
| 95 | - $loader->load($this->rootDir.'/config/config_'.$this->getEnvironment().'.yml'); |
|
| 96 | - $loader->load($this->rootDir.'/config/parameters.yml'); |
|
| 97 | - if (is_readable($this->rootDir.'/config/custom_parameters.yml')) { |
|
| 98 | - $loader->load($this->rootDir.'/config/custom_parameters.yml'); |
|
| 95 | + $loader->load($this->rootDir . '/config/config_' . $this->getEnvironment() . '.yml'); |
|
| 96 | + $loader->load($this->rootDir . '/config/parameters.yml'); |
|
| 97 | + if (is_readable($this->rootDir . '/config/custom_parameters.yml')) { |
|
| 98 | + $loader->load($this->rootDir . '/config/custom_parameters.yml'); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | if (!is_readable($this->rootDir . '/config/' . DynamicConfigDumper::CONFIG_GENERATED)) { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * @var ClassLoader |
| 18 | 18 | */ |
| 19 | -$loader = require __DIR__.'/../vendor/autoload.php'; |
|
| 19 | +$loader = require __DIR__ . '/../vendor/autoload.php'; |
|
| 20 | 20 | |
| 21 | 21 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
| 22 | 22 | AnnotationReader::addGlobalIgnoredName('type'); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | if (isset($_SERVER['HTTP_HOST'])) { |
| 30 | 30 | echo "<html><body><pre>"; |
| 31 | 31 | } |
| 32 | - echo 'The following errors were discovered when checking the' .PHP_EOL. 'Zikula Core system/environment requirements:' . PHP_EOL; |
|
| 32 | + echo 'The following errors were discovered when checking the' . PHP_EOL . 'Zikula Core system/environment requirements:' . PHP_EOL; |
|
| 33 | 33 | echo '******************************************************' . PHP_EOL . PHP_EOL; |
| 34 | 34 | foreach ($versionChecker->requirementsErrors as $error) { |
| 35 | 35 | echo $error . PHP_EOL; |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $router = \ServiceUtil::get('router'); |
| 49 | 49 | $fqUrl = (is_bool($fqUrl) && $fqUrl) ? RouterInterface::ABSOLUTE_URL : RouterInterface::ABSOLUTE_PATH; |
| 50 | - $fragment = (!empty($this->fragment)) ? '#' . $this->fragment : ''; |
|
| 50 | + $fragment = (!empty($this->fragment)) ? '#' . $this->fragment : ''; |
|
| 51 | 51 | |
| 52 | 52 | $oldScheme = $router->getContext()->getScheme(); |
| 53 | 53 | if ($ssl) { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | public function addStylesheet($name = 'style.css') |
| 27 | 27 | { |
| 28 | - $moduleStylesheet = $this->getContainer()->get('zikula_core.common.theme.asset_helper')->resolve('@' . $this->getName() . ":css/$name"); |
|
| 28 | + $moduleStylesheet = $this->getContainer()->get('zikula_core.common.theme.asset_helper')->resolve('@' . $this->getName() . ":css/$name"); |
|
| 29 | 29 | if (!empty($moduleStylesheet)) { |
| 30 | 30 | $this->container->get('zikula_core.common.theme.assets_css')->add([$moduleStylesheet => AssetBag::WEIGHT_DEFAULT]); |
| 31 | 31 | } |
@@ -70,9 +70,9 @@ discard block |
||
| 70 | 70 | $config = $this->config; |
| 71 | 71 | $alias = $config->getAlias(); |
| 72 | 72 | $qb = $config->getQueryBuilder(); |
| 73 | - $qb->join($alias.'.categories', $alias.'_cat_plugin')->join( |
|
| 74 | - $alias.'_cat_plugin.category', |
|
| 75 | - $alias.'_cat_plugin_category' |
|
| 73 | + $qb->join($alias . '.categories', $alias . '_cat_plugin')->join( |
|
| 74 | + $alias . '_cat_plugin.category', |
|
| 75 | + $alias . '_cat_plugin_category' |
|
| 76 | 76 | ); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | if (empty($property)) { |
| 87 | 87 | $this->property = null; |
| 88 | 88 | } else { |
| 89 | - $this->property = (array) $property; |
|
| 89 | + $this->property = (array)$property; |
|
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | |
@@ -132,9 +132,9 @@ discard block |
||
| 132 | 132 | $alias = $config->getAlias(); |
| 133 | 133 | $expr = $config->getQueryBuilder()->expr(); |
| 134 | 134 | if ($op == 'sub' || is_numeric($value)) { |
| 135 | - $column = $alias.'_cat_plugin_category.id'; |
|
| 135 | + $column = $alias . '_cat_plugin_category.id'; |
|
| 136 | 136 | } else { |
| 137 | - $column = $alias.'_cat_plugin_category.name'; |
|
| 137 | + $column = $alias . '_cat_plugin_category.name'; |
|
| 138 | 138 | } |
| 139 | 139 | $con = null; |
| 140 | 140 | switch ($op) { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | if (null !== $this->modname && null !== $this->property) { |
| 154 | 154 | $propertyCon = $expr->in( |
| 155 | - $alias.'_cat_plugin.categoryRegistryId', |
|
| 155 | + $alias . '_cat_plugin.categoryRegistryId', |
|
| 156 | 156 | $config->toParam($this->getRegistryIds(), 'category', $field) |
| 157 | 157 | ); |
| 158 | 158 | if (null !== $con) { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | /** |
| 56 | 56 | * Returns the operators the plugin can handle. |
| 57 | 57 | * |
| 58 | - * @return array Operators |
|
| 58 | + * @return string[] Operators |
|
| 59 | 59 | */ |
| 60 | 60 | public function availableOperators() |
| 61 | 61 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function load(array $configs, ContainerBuilder $container) |
| 31 | 31 | { |
| 32 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 32 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 33 | 33 | $loader->load('services.yml'); |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -43,8 +43,7 @@ |
||
| 43 | 43 | $dbh = new \PDO("$object[database_driver]:host=$object[database_host];dbname=$object[database_name]", $object['database_user'], $object['database_password']); |
| 44 | 44 | $dbh->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); |
| 45 | 45 | $sql = ($object['database_driver'] == 'mysql' || $object['database_driver'] == 'mysqli') ? |
| 46 | - "SHOW TABLES FROM `$object[database_name]` LIKE '%'" : |
|
| 47 | - "SHOW TABLES FROM $object[database_name] LIKE '%'"; |
|
| 46 | + "SHOW TABLES FROM `$object[database_name]` LIKE '%'" : "SHOW TABLES FROM $object[database_name] LIKE '%'"; |
|
| 48 | 47 | $tables = $dbh->query($sql); |
| 49 | 48 | if (!is_object($tables)) { |
| 50 | 49 | $this->context->buildViolation($this->__('Error! Determination existing tables failed.') . ' SQL: ' . $sql) |