@@ -95,6 +95,9 @@ discard block |
||
| 95 | 95 | self::assertSame([$f1, $f2, $f3, $f4], $result->toArray()); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | + /** |
|
| 99 | + * @param integer $a |
|
| 100 | + */ |
|
| 98 | 101 | private function createFixture($a, $b, $c) |
| 99 | 102 | { |
| 100 | 103 | $entity = new AbcClass(); |
@@ -106,7 +109,7 @@ discard block |
||
| 106 | 109 | } |
| 107 | 110 | |
| 108 | 111 | /** |
| 109 | - * @return ReferenceProviderInterface|\PHPUnit_Framework_MockObject_MockObject |
|
| 112 | + * @return ReferenceProviderInterface |
|
| 110 | 113 | */ |
| 111 | 114 | private function getReferenceProvider() |
| 112 | 115 | { |
@@ -13,14 +13,14 @@ |
||
| 13 | 13 | { |
| 14 | 14 | parent::registerContainerConfiguration($loader); |
| 15 | 15 | |
| 16 | - $loader->load(__DIR__ . '/config.yml'); |
|
| 16 | + $loader->load(__DIR__.'/config.yml'); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** {@inheritdoc} */ |
| 20 | 20 | protected function buildContainer() |
| 21 | 21 | { |
| 22 | 22 | $container = parent::buildContainer(); |
| 23 | - $container->addResource(new FileResource(__DIR__ . '/config.yml')); |
|
| 23 | + $container->addResource(new FileResource(__DIR__.'/config.yml')); |
|
| 24 | 24 | |
| 25 | 25 | return $container; |
| 26 | 26 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | parent::registerContainerConfiguration($loader); |
| 16 | 16 | |
| 17 | - return $loader->load(__DIR__ . '/config.yml'); |
|
| 17 | + return $loader->load(__DIR__.'/config.yml'); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** {@inheritdoc} */ |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | protected function buildContainer() |
| 31 | 31 | { |
| 32 | 32 | $container = parent::buildContainer(); |
| 33 | - $container->addResource(new FileResource(__DIR__ . '/config.yml')); |
|
| 33 | + $container->addResource(new FileResource(__DIR__.'/config.yml')); |
|
| 34 | 34 | |
| 35 | 35 | return $container; |
| 36 | 36 | } |
@@ -27,24 +27,24 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public function getLogDir() |
| 29 | 29 | { |
| 30 | - return __DIR__ . '/../../../build/' . $this->getClassName() . '/logs'; |
|
| 30 | + return __DIR__.'/../../../build/'.$this->getClassName().'/logs'; |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** {@inheritdoc} */ |
| 34 | 34 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 35 | 35 | { |
| 36 | - return $loader->load(__DIR__ . '/config.yml'); |
|
| 36 | + return $loader->load(__DIR__.'/config.yml'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function getCacheDir() |
| 40 | 40 | { |
| 41 | - return __DIR__ . '/../../../build/' . $this->getClassName() . '/cache'; |
|
| 41 | + return __DIR__.'/../../../build/'.$this->getClassName().'/cache'; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | protected function initializeContainer() |
| 45 | 45 | { |
| 46 | 46 | $class = $this->getContainerClass(); |
| 47 | - $cache = new ConfigCache($this->getCacheDir() . '/' . $class . '.php', $this->debug); |
|
| 47 | + $cache = new ConfigCache($this->getCacheDir().'/'.$class.'.php', $this->debug); |
|
| 48 | 48 | |
| 49 | 49 | $container = $this->buildContainer(); |
| 50 | 50 | $container->compile(); |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | protected function buildContainer() |
| 58 | 58 | { |
| 59 | 59 | $container = parent::buildContainer(); |
| 60 | - $container->addResource(new FileResource(__DIR__ . '/config.yml')); |
|
| 61 | - $container->addResource(new FileResource(__DIR__ . '/routing.yml')); |
|
| 60 | + $container->addResource(new FileResource(__DIR__.'/config.yml')); |
|
| 61 | + $container->addResource(new FileResource(__DIR__.'/routing.yml')); |
|
| 62 | 62 | |
| 63 | 63 | return $container; |
| 64 | 64 | } |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | { |
| 49 | 49 | $mock = self::prophesize(CriteriaConfiguratorInterface::class); |
| 50 | 50 | $mock->configure(Argument::exact($fqcn), Argument::exact($criteria), Argument::exact($data)) |
| 51 | - ->shouldBeCalled(); |
|
| 51 | + ->shouldBeCalled(); |
|
| 52 | 52 | |
| 53 | 53 | return $mock->reveal(); |
| 54 | 54 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | ->defaultValue('api') |
| 72 | 72 | ->cannotBeEmpty() |
| 73 | 73 | ->info( |
| 74 | - 'Route mount. You can create different entries ' . |
|
| 74 | + 'Route mount. You can create different entries '. |
|
| 75 | 75 | 'with different mounts. You can use this value when loading routes' |
| 76 | 76 | ) |
| 77 | 77 | ->example('my-mount-name'); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | ->scalarNode('repository') |
| 82 | 82 | ->defaultNull() |
| 83 | 83 | ->info( |
| 84 | - 'Object repository. service reference,' . PHP_EOL . |
|
| 84 | + 'Object repository. service reference,'.PHP_EOL. |
|
| 85 | 85 | 'default to factory-acquired doctrine repository for class' |
| 86 | 86 | ) |
| 87 | 87 | ->example('@my_entity.repository'); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | ->scalarNode('manager') |
| 92 | 92 | ->defaultNull() |
| 93 | 93 | ->info( |
| 94 | - 'Object manager. service reference,' . PHP_EOL . |
|
| 94 | + 'Object manager. service reference,'.PHP_EOL. |
|
| 95 | 95 | 'default to factory-acquired doctrine manager for class' |
| 96 | 96 | ) |
| 97 | 97 | ->example('@my_entity.repository'); |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | ->beforeNormalization() |
| 105 | 105 | ->ifArray() |
| 106 | 106 | ->then( |
| 107 | - function (array $v) { |
|
| 107 | + function(array $v) { |
|
| 108 | 108 | if (array_keys($v) !== range(0, count($v) - 1)) { |
| 109 | 109 | return $v; |
| 110 | 110 | } |
@@ -139,9 +139,9 @@ discard block |
||
| 139 | 139 | ->defaultNull() |
| 140 | 140 | ->example('@my_entity.factory') |
| 141 | 141 | ->info( |
| 142 | - 'Service ID implementing ' . PHP_EOL . |
|
| 143 | - EntityFactoryInterface::class . PHP_EOL . |
|
| 144 | - 'Defaults to ' . ReflectionConstructorFactory::class |
|
| 142 | + 'Service ID implementing '.PHP_EOL. |
|
| 143 | + EntityFactoryInterface::class.PHP_EOL. |
|
| 144 | + 'Defaults to '.ReflectionConstructorFactory::class |
|
| 145 | 145 | ); |
| 146 | 146 | |
| 147 | 147 | $create |
@@ -150,9 +150,9 @@ discard block |
||
| 150 | 150 | ->defaultNull() |
| 151 | 151 | ->example('@my_entity.factory') |
| 152 | 152 | ->info( |
| 153 | - 'Service ID implementing ' . PHP_EOL . |
|
| 154 | - EntityFactoryInterface::class . PHP_EOL . |
|
| 155 | - 'Defaults to ' . ReflectionConstructorFactory::class |
|
| 153 | + 'Service ID implementing '.PHP_EOL. |
|
| 154 | + EntityFactoryInterface::class.PHP_EOL. |
|
| 155 | + 'Defaults to '.ReflectionConstructorFactory::class |
|
| 156 | 156 | ); |
| 157 | 157 | |
| 158 | 158 | $this->configureActionNode($create, 'create'); |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | |
| 174 | 174 | $criteria = $search->children()->variableNode('criteria'); |
| 175 | 175 | $criteria->info( |
| 176 | - 'Criteria modifiers. Array will be treated as nested criteria,' . PHP_EOL . |
|
| 176 | + 'Criteria modifiers. Array will be treated as nested criteria,'.PHP_EOL. |
|
| 177 | 177 | 'allowing configuring several modifiers by key:value' |
| 178 | 178 | ); |
| 179 | 179 | $criteria->defaultValue('cruds.criteria.entity'); |
@@ -201,9 +201,9 @@ discard block |
||
| 201 | 201 | ->defaultNull() |
| 202 | 202 | ->example('@my_entity.processor') |
| 203 | 203 | ->info( |
| 204 | - 'Service ID implementing ' . PHP_EOL . |
|
| 205 | - EntityProcessorInterface::class . PHP_EOL . |
|
| 206 | - 'Defaults to ' . PropertyAccessProcessor::class |
|
| 204 | + 'Service ID implementing '.PHP_EOL. |
|
| 205 | + EntityProcessorInterface::class.PHP_EOL. |
|
| 206 | + 'Defaults to '.PropertyAccessProcessor::class |
|
| 207 | 207 | ); |
| 208 | 208 | |
| 209 | 209 | $this->configureActionNode($update, 'update'); |
@@ -225,6 +225,6 @@ discard block |
||
| 225 | 225 | ->children() |
| 226 | 226 | ->scalarNode('path') |
| 227 | 227 | ->info('Action path (will be prefixed with entity prefix)') |
| 228 | - ->defaultValue('/' . $action); |
|
| 228 | + ->defaultValue('/'.$action); |
|
| 229 | 229 | } |
| 230 | 230 | } |
@@ -72,11 +72,11 @@ |
||
| 72 | 72 | |
| 73 | 73 | return $kernel instanceof Kernel && |
| 74 | 74 | ( |
| 75 | - $kernel::MAJOR_VERSION === '3' || |
|
| 75 | + $kernel::MAJOR_VERSION === '3' || |
|
| 76 | 76 | ( |
| 77 | - $kernel::MAJOR_VERSION === '2' |
|
| 77 | + $kernel::MAJOR_VERSION === '2' |
|
| 78 | 78 | && $kernel::MINOR_VERSION === '8' |
| 79 | - ) |
|
| 80 | - ); |
|
| 79 | + ) |
|
| 80 | + ); |
|
| 81 | 81 | } |
| 82 | 82 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | return; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../../Resources/config')); |
|
| 35 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config')); |
|
| 36 | 36 | $loader->load('symfony_serializer.yml'); |
| 37 | 37 | |
| 38 | 38 | /** @var Reference $converter */ |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $container->removeDefinition('jms_serializer.form_error_handler'); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../../Resources/config')); |
|
| 29 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../../Resources/config')); |
|
| 30 | 30 | $loader->load('jms_serializer.yml'); |
| 31 | 31 | |
| 32 | 32 | if ($container->has('validator')) { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $manager = $this->registry->getManagerForClass($class); |
| 54 | 54 | |
| 55 | 55 | if (null === $manager) { |
| 56 | - throw new \RuntimeException('Not supported class ' . $class); |
|
| 56 | + throw new \RuntimeException('Not supported class '.$class); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | if ($manager instanceof EntityManagerInterface) { |