@@ -54,7 +54,7 @@ |
||
54 | 54 | ->getMock(); |
55 | 55 | $kernel |
56 | 56 | ->method('getModule') |
57 | - ->will($this->returnCallback(function ($moduleName) { |
|
57 | + ->will($this->returnCallback(function($moduleName) { |
|
58 | 58 | if ($moduleName == 'ExceptionModule') { |
59 | 59 | // mocks situation where module is not namespaced. |
60 | 60 | throw new \Exception(); |
@@ -76,6 +76,6 @@ |
||
76 | 76 | |
77 | 77 | private function getSplFileInfo($file) |
78 | 78 | { |
79 | - return new SplFileInfo(realpath(__DIR__ . '/../Fixtures/'. $file), '/../Fixtures', '/../Fixtures/' . $file); |
|
79 | + return new SplFileInfo(realpath(__DIR__ . '/../Fixtures/' . $file), '/../Fixtures', '/../Fixtures/' . $file); |
|
80 | 80 | } |
81 | 81 | } |
@@ -1130,7 +1130,7 @@ |
||
1130 | 1130 | * |
1131 | 1131 | * @return array of entity objects |
1132 | 1132 | */ |
1133 | - public function getRelatedObjectsToPersist(&$objects = []) |
|
1133 | + public function getRelatedObjectsToPersist(&$objects = []) |
|
1134 | 1134 | { |
1135 | 1135 | return []; |
1136 | 1136 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | $builder |
25 | 25 | ->add('users', EntityType::class, [ |
26 | - 'choice_attr' => function () { |
|
26 | + 'choice_attr' => function() { |
|
27 | 27 | return ['class' => 'user-checkboxes']; |
28 | 28 | }, |
29 | 29 | 'class' => 'ZikulaUsersModule:UserEntity', |
@@ -208,7 +208,7 @@ |
||
208 | 208 | if (typeof exports !== "undefined" && typeof module !== "undefined") { |
209 | 209 | module.exports = components; |
210 | 210 | } |
211 | -EOT; |
|
211 | +eot; |
|
212 | 212 | |
213 | 213 | return $output; |
214 | 214 | } |
@@ -109,11 +109,11 @@ discard block |
||
109 | 109 | $scripts = isset($options['scripts']) ? $options['scripts'] : []; |
110 | 110 | if (!empty($scripts)) { |
111 | 111 | // Put all scripts into a build.js file. |
112 | - $result = $this->aggregateScripts($package, $scripts, $name.DIRECTORY_SEPARATOR.$name.'-built.js'); |
|
112 | + $result = $this->aggregateScripts($package, $scripts, $name . DIRECTORY_SEPARATOR . $name . '-built.js'); |
|
113 | 113 | if (false !== $result) { |
114 | 114 | // If the aggregation was successful, add the script to the |
115 | 115 | // packages array. |
116 | - $component['main'] = $name.'-built.js'; |
|
116 | + $component['main'] = $name . '-built.js'; |
|
117 | 117 | |
118 | 118 | // Add the component to the packages array. |
119 | 119 | $json['packages'][] = $component; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | |
163 | 163 | foreach ($scripts as $script) { |
164 | 164 | // Collect each candidate from a glob file search. |
165 | - $path = $this->getVendorDir($package).DIRECTORY_SEPARATOR.$script; |
|
165 | + $path = $this->getVendorDir($package) . DIRECTORY_SEPARATOR . $script; |
|
166 | 166 | $matches = $this->fs->recursiveGlobFiles($path); |
167 | 167 | foreach ($matches as $match) { |
168 | 168 | $assets->add(new FileAsset($match)); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | |
173 | 173 | // Write the file if there are any JavaScript assets. |
174 | 174 | if (!empty($js)) { |
175 | - $destination = $this->componentDir.DIRECTORY_SEPARATOR.$file; |
|
175 | + $destination = $this->componentDir . DIRECTORY_SEPARATOR . $file; |
|
176 | 176 | $this->fs->ensureDirectoryExists(dirname($destination)); |
177 | 177 | |
178 | 178 | return file_put_contents($destination, $js); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | $router |
33 | 33 | ->method('generate') |
34 | - ->will($this->returnCallback(function ($id, $params) { |
|
34 | + ->will($this->returnCallback(function($id, $params) { |
|
35 | 35 | return '/foo?' . http_build_query($params); |
36 | 36 | })); |
37 | 37 |
@@ -128,7 +128,7 @@ |
||
128 | 128 | return $getMethod; |
129 | 129 | } |
130 | 130 | |
131 | - $isMethod = 'is' . ucfirst($name); |
|
131 | + $isMethod = 'is' . ucfirst($name); |
|
132 | 132 | if (method_exists($this, $isMethod)) { |
133 | 133 | return $isMethod; |
134 | 134 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | $finder = Finder::create()->files() |
111 | - ->filter(function (\SplFileInfo $file) { |
|
111 | + ->filter(function(\SplFileInfo $file) { |
|
112 | 112 | return 2 === substr_count($file->getBasename(), '.') && preg_match('/\.\w+$/', $file->getBasename()); |
113 | 113 | }) |
114 | 114 | ->in($dirs); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | list($domain, $locale, $format) = explode('.', $file->getBasename(), 3); |
119 | 119 | $translatorServiceDefinition->addMethodCall('addResource', [ |
120 | 120 | $format, |
121 | - (string) $file, |
|
121 | + (string)$file, |
|
122 | 122 | $locale, |
123 | 123 | $domain |
124 | 124 | ]); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function __construct($debug) |
31 | 31 | { |
32 | - $this->debug = (bool) $debug; |
|
32 | + $this->debug = (bool)$debug; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | ->fixXmlConfig('fallback') |
57 | 57 | ->children() |
58 | 58 | ->arrayNode('fallbacks') |
59 | - ->beforeNormalization()->ifString()->then(function ($v) { |
|
59 | + ->beforeNormalization()->ifString()->then(function($v) { |
|
60 | 60 | return [$v]; |
61 | 61 | })->end() |
62 | 62 | ->prototype('scalar')->end() |