@@ -75,7 +75,7 @@ |
||
75 | 75 | ->getMock(); |
76 | 76 | $kernel |
77 | 77 | ->method('getBundles') |
78 | - ->will($this->returnCallback(function () { |
|
78 | + ->will($this->returnCallback(function() { |
|
79 | 79 | $bundle = $this |
80 | 80 | ->getMockBuilder('Zikula\Core\AbstractBundle') |
81 | 81 | ->disableOriginalConstructor() |
@@ -29,8 +29,8 @@ |
||
29 | 29 | { |
30 | 30 | $this->tokenParser = new SwitchTokenParser(); |
31 | 31 | $this->twigParser = $this->getMockBuilder('Twig_Parser') |
32 | - ->disableOriginalConstructor() |
|
33 | - ->getMock(); |
|
32 | + ->disableOriginalConstructor() |
|
33 | + ->getMock(); |
|
34 | 34 | $this->tokenParser->setParser($this->twigParser); |
35 | 35 | } |
36 | 36 |
@@ -87,8 +87,8 @@ |
||
87 | 87 | $output->writeln(sprintf("Installing assets using the <comment>%s</comment> option", $input->getOption('symlink') ? 'symlink' : 'hard copy')); |
88 | 88 | foreach ($bundles as $bundle) { |
89 | 89 | if (is_dir($originDir = $bundle->getPath() . '/Resources/public')) { |
90 | - $bundlesDir = $targetArg . '/'.$type.'s/'; |
|
91 | - $targetDir = $bundlesDir . preg_replace('/'.$type.'$/', '', strtolower($bundle->getName())); |
|
90 | + $bundlesDir = $targetArg . '/' . $type . 's/'; |
|
91 | + $targetDir = $bundlesDir . preg_replace('/' . $type . '$/', '', strtolower($bundle->getName())); |
|
92 | 92 | $output->writeln(sprintf('Installing assets for <comment>%s</comment> into <comment>%s</comment>', $bundle->getNamespace(), $targetDir)); |
93 | 93 | $filesystem->remove($targetDir); |
94 | 94 | if ($input->getOption('symlink')) { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | |
57 | 57 | <info>php %command.full_name% web --symlink --relative</info> |
58 | 58 | |
59 | -EOT |
|
59 | +eot |
|
60 | 60 | ); |
61 | 61 | } |
62 | 62 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } |
65 | 65 | $requestUri = $event->getRequest()->getRequestUri(); |
66 | 66 | $frontController = $this->variableApi->getSystemVar('entrypoint', 'index.php'); |
67 | - $stripEntryPoint = (bool) $this->variableApi->getSystemVar('shorturlsstripentrypoint', false); |
|
67 | + $stripEntryPoint = (bool)$this->variableApi->getSystemVar('shorturlsstripentrypoint', false); |
|
68 | 68 | $containsFrontController = (strpos($requestUri, "$frontController") !== false); |
69 | 69 | |
70 | 70 | if ($containsFrontController && $stripEntryPoint) { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $i = 1; |
58 | 58 | foreach ($filters as $w_key => $w_value) { |
59 | 59 | $qb->andWhere($qb->expr()->eq('tbl.' . $w_key, '?' . $i)) |
60 | - ->setParameter($i, $w_value); |
|
60 | + ->setParameter($i, $w_value); |
|
61 | 61 | $i++; |
62 | 62 | } |
63 | 63 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | } |
58 | 58 | $headers = ''; |
59 | 59 | foreach ($assets as $asset) { |
60 | - $headers .= '<link rel="stylesheet" href="'.$asset.'" type="text/css">'."\n"; |
|
60 | + $headers .= '<link rel="stylesheet" href="' . $asset . '" type="text/css">' . "\n"; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | return $headers; |
@@ -47,7 +47,7 @@ |
||
47 | 47 | } |
48 | 48 | if (isset($component)) { |
49 | 49 | $qb->andWhere("p.component LIKE :permgrpparts") |
50 | - ->setParameter('permgrpparts', $component.'%'); |
|
50 | + ->setParameter('permgrpparts', $component . '%'); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | return $qb->getQuery()->getResult(); |
@@ -63,7 +63,7 @@ |
||
63 | 63 | $templateParameters['lockadmin'] = $this->getVar('lockadmin', 1) ? 1 : 0; |
64 | 64 | $templateParameters['adminId'] = $this->getVar('adminid', 1); |
65 | 65 | $templateParameters['schema'] = $this->get('zikula_permissions_module.helper.schema_helper')->getAllSchema(); |
66 | - $templateParameters['enableFilter'] = (bool) $this->getVar('filter', 1); |
|
66 | + $templateParameters['enableFilter'] = (bool)$this->getVar('filter', 1); |
|
67 | 67 | |
68 | 68 | return $templateParameters; |
69 | 69 | } |
@@ -135,7 +135,7 @@ |
||
135 | 135 | $factory = new RandomLibFactory(); |
136 | 136 | $generator = $factory->getMediumStrengthGenerator(); |
137 | 137 | $chars = str_replace($saltDelimiter, '', $this->randomStringCharacters); |
138 | - $saltStr = $generator->generateString($saltLength, $chars); |
|
138 | + $saltStr = $generator->generateString($saltLength, $chars); |
|
139 | 139 | |
140 | 140 | return $this->buildSaltedHash($unhashedData, $hashMethodName, $saltStr, $hashMethodNameToCode, $saltDelimiter); |
141 | 141 | } |