Skip to content

Commit 737ff37

Browse files
committed
style fixes
1 parent c7c53c8 commit 737ff37

16 files changed

+26
-27
lines changed

src/Cache/FixedTaggingCachePool.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/Cache/LoggingCachePool.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/CacheBundle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/Command/CacheFlushCommand.php

+11-12
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.
@@ -56,21 +56,21 @@ protected function configure()
5656
*/
5757
protected function execute(InputInterface $input, OutputInterface $output)
5858
{
59-
if (false ===$type = $this->verifyArguments($input, $output)) {
59+
if (false === $type = $this->verifyArguments($input, $output)) {
6060
return 0;
6161
}
6262

6363
$builtInTypes = ['session', 'router', 'doctrine'];
6464
if (in_array($type, $builtInTypes)) {
65-
return $this->clearCacheForBuiltInType($type)?0:1;
65+
return $this->clearCacheForBuiltInType($type) ? 0 : 1;
6666
}
6767

6868
if ($type === 'symfony') {
69-
return $this->clearSymfonyCache($output)?0:1;
69+
return $this->clearSymfonyCache($output) ? 0 : 1;
7070
}
7171

7272
if ($type === 'provider') {
73-
return $this->clearCacheForProvider($input->getArgument('service'))?0:1;
73+
return $this->clearCacheForProvider($input->getArgument('service')) ? 0 : 1;
7474
}
7575

7676
if ($type === 'all') {
@@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
8080
}
8181
$result = $result && $this->clearSymfonyCache($output);
8282

83-
return $result?0:1;
83+
return $result ? 0 : 1;
8484
}
8585
}
8686

@@ -129,8 +129,7 @@ private function clearTypedCacheFromService($type, $serviceId)
129129
}
130130

131131
/**
132-
*
133-
* @param InputInterface $input
132+
* @param InputInterface $input
134133
* @param OutputInterface $output
135134
*
136135
* @return string|bool type or false if invalid arguements
@@ -140,7 +139,7 @@ protected function verifyArguments(InputInterface $input, OutputInterface $outpu
140139
$type = $input->getArgument('type');
141140
if ($type === null) {
142141
// ask a question and default $type='all'
143-
$helper = $this->getHelper('question');
142+
$helper = $this->getHelper('question');
144143
$question = new ConfirmationQuestion('Do you want to clear all cache? [N] ', false);
145144

146145
if (!$helper->ask($input, $output, $question)) {
@@ -194,10 +193,10 @@ protected function clearCacheForProvider($serviceId)
194193
*/
195194
protected function clearSymfonyCache(OutputInterface $output)
196195
{
197-
$command = $this->getApplication()->find('cache:clear');
198-
$arguments = array(
196+
$command = $this->getApplication()->find('cache:clear');
197+
$arguments = [
199198
'command' => 'cache:clear',
200-
);
199+
];
201200

202201
return $command->run(new ArrayInput($arguments), $output) === 0;
203202
}

src/DataCollector/CacheDataCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/DependencyInjection/CacheExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/DependencyInjection/Compiler/BaseCompilerPass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/DependencyInjection/Compiler/DataCollectorCompilerPass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/DependencyInjection/Compiler/DoctrineSupportCompilerPass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/DependencyInjection/Compiler/SessionSupportCompilerPass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/DependencyInjection/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/Routing/CachingRouter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

src/Session/SessionHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

tests/ContainerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

tests/DependencyInjection/CacheExtensionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of php-cache\cache-bundle package.
55
*
6-
* (c) 2015-2015 Aaron Scherer <[email protected]>
6+
* (c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
77
*
88
* This source file is subject to the MIT license that is bundled
99
* with this source code in the file LICENSE.

0 commit comments

Comments
 (0)