@@ -63,8 +63,8 @@ |
||
63 | 63 | { |
64 | 64 | $entity = $this->entityRef; |
65 | 65 | |
66 | - list($controller, ) = $this->sanitizeHelper->sanitizeController($entity['controller']); |
|
67 | - list($action, ) = $this->sanitizeHelper->sanitizeAction($entity['action']); |
|
66 | + list($controller,) = $this->sanitizeHelper->sanitizeController($entity['controller']); |
|
67 | + list($action,) = $this->sanitizeHelper->sanitizeAction($entity['action']); |
|
68 | 68 | |
69 | 69 | $entity['controller'] = $controller; |
70 | 70 | $entity['action'] = $action; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * Returns a list of custom Twig functions. |
81 | 81 | * |
82 | - * @return array |
|
82 | + * @return \Twig_SimpleFunction[] |
|
83 | 83 | */ |
84 | 84 | public function getFunctions() |
85 | 85 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * Returns a list of custom Twig filters. |
98 | 98 | * |
99 | - * @return array |
|
99 | + * @return \Twig_SimpleFilter[] |
|
100 | 100 | */ |
101 | 101 | public function getFilters() |
102 | 102 | { |
@@ -203,9 +203,9 @@ |
||
203 | 203 | /** |
204 | 204 | * Determine if a $currentVersion value is between $requiredMin and $requiredMax. |
205 | 205 | * |
206 | - * @param $requiredMin |
|
207 | - * @param $requiredMax |
|
208 | - * @param $currentVersion |
|
206 | + * @param string $requiredMin |
|
207 | + * @param string $requiredMax |
|
208 | + * @param string $currentVersion |
|
209 | 209 | * @return bool |
210 | 210 | */ |
211 | 211 | private function meetsVersionRequirements($requiredMin, $requiredMax, $currentVersion) |
@@ -158,7 +158,7 @@ |
||
158 | 158 | * @param ExtensionDependencyEntity $dependency |
159 | 159 | * @return bool |
160 | 160 | */ |
161 | - private function bundleDependencySatisfied(ExtensionDependencyEntity &$dependency) |
|
161 | + private function bundleDependencySatisfied(ExtensionDependencyEntity & $dependency) |
|
162 | 162 | { |
163 | 163 | if ($dependency->getModname() == "php") { |
164 | 164 | // Do not use PHP_VERSION constant, because it might throw off the semver parser. |
@@ -63,7 +63,7 @@ |
||
63 | 63 | |
64 | 64 | if ($constraint->propertyName == 'workflowState' && in_array($value, ['initial', 'deleted'])) { |
65 | 65 | return; |
66 | - } |
|
66 | + } |
|
67 | 67 | |
68 | 68 | $listEntries = $this->listEntriesHelper->getEntries($constraint->entityName, $constraint->propertyName); |
69 | 69 | $allowedValues = []; |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | public function __construct(ContainerInterface $container) |
44 | 44 | { |
45 | 45 | parent::__construct($container); |
46 | - $originalParameters = Yaml::parse(file_get_contents($this->container->get('kernel')->getRootDir() .'/config/parameters.yml')); |
|
47 | - $this->yamlManager = new YamlDumper($this->container->get('kernel')->getRootDir() .'/config', 'custom_parameters.yml'); |
|
46 | + $originalParameters = Yaml::parse(file_get_contents($this->container->get('kernel')->getRootDir() . '/config/parameters.yml')); |
|
47 | + $this->yamlManager = new YamlDumper($this->container->get('kernel')->getRootDir() . '/config', 'custom_parameters.yml'); |
|
48 | 48 | // load and set new default values from the original parameters.yml file into the custom_parameters.yml file. |
49 | 49 | $this->yamlManager->setParameters(array_merge($originalParameters['parameters'], $this->yamlManager->getParameters())); |
50 | 50 | $currentVersion = $this->container->getParameter(ZikulaKernel::CORE_INSTALLED_VERSION_PARAM); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $stage = $request->request->get('stage'); |
57 | 57 | $this->container->setParameter('upgrading', true); |
58 | 58 | $status = $this->executeStage($stage); |
59 | - $response = ['status' => (bool) $status]; |
|
59 | + $response = ['status' => (bool)$status]; |
|
60 | 60 | if (is_array($status)) { |
61 | 61 | $response['results'] = $status; |
62 | 62 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $containsUpgrade = $routeInfo['_route'] == 'upgrade'; |
51 | 51 | $containsLogin = $routeInfo['_controller'] == 'Zikula\\UsersModule\\Controller\\AccessController::loginAction'; |
52 | 52 | $containsDoc = $routeInfo['_route'] == 'doc'; |
53 | - $containsWdt = $routeInfo['_route'] == '_wdt'; |
|
53 | + $containsWdt = $routeInfo['_route'] == '_wdt'; |
|
54 | 54 | $containsProfiler = strpos($routeInfo['_route'], '_profiler') !== false; |
55 | 55 | $containsRouter = $routeInfo['_route'] == 'fos_js_routing_js'; |
56 | 56 | $doNotRedirect = $containsProfiler || $containsWdt || $containsRouter || $request->isXmlHttpRequest(); |
@@ -114,7 +114,7 @@ |
||
114 | 114 | // Fix the HTML that we want |
115 | 115 | $value = preg_replace_callback( |
116 | 116 | '#\022([^\024]*)\024#', |
117 | - function ($matches) { |
|
117 | + function($matches) { |
|
118 | 118 | if (!$matches) { |
119 | 119 | return; |
120 | 120 | } |