@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $config = $this->processConfiguration($configuration, $configs); |
| 24 | 24 | $container->setParameter('entity_watch.classes', $config['classes']); |
| 25 | 25 | |
| 26 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 26 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 27 | 27 | $loader->load('services.yml'); |
| 28 | 28 | } |
| 29 | 29 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | ->end() |
| 75 | 75 | ->end() |
| 76 | 76 | ->end() |
| 77 | - ->end() |
|
| 77 | + ->end() |
|
| 78 | 78 | ; |
| 79 | 79 | |
| 80 | 80 | return $treeBuilder; |
@@ -17,9 +17,9 @@ |
||
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | $rootNode->children() |
| 20 | - ->arrayNode('classes')->validate()->ifTrue(function($classes){ |
|
| 20 | + ->arrayNode('classes')->validate()->ifTrue(function($classes) { |
|
| 21 | 21 | |
| 22 | - foreach($classes as $key=>$value) |
|
| 22 | + foreach ($classes as $key=>$value) |
|
| 23 | 23 | { |
| 24 | 24 | if (!class_exists($key)) |
| 25 | 25 | return $key; |
@@ -21,8 +21,9 @@ |
||
| 21 | 21 | |
| 22 | 22 | foreach($classes as $key=>$value) |
| 23 | 23 | { |
| 24 | - if (!class_exists($key)) |
|
| 25 | - return $key; |
|
| 24 | + if (!class_exists($key)) { |
|
| 25 | + return $key; |
|
| 26 | + } |
|
| 26 | 27 | } |
| 27 | 28 | return false; |
| 28 | 29 | |
@@ -103,16 +103,16 @@ |
||
| 103 | 103 | { |
| 104 | 104 | $driver = $this->getMockBuilder('Doctrine\DBAL\Driver')->getMock(); |
| 105 | 105 | $driver->expects($this->once()) |
| 106 | - ->method('getDatabasePlatform') |
|
| 107 | - ->will($this->returnValue($this->getMockBuilder('Doctrine\DBAL\Platforms\MySqlPlatform')->getMock())) |
|
| 106 | + ->method('getDatabasePlatform') |
|
| 107 | + ->will($this->returnValue($this->getMockBuilder('Doctrine\DBAL\Platforms\MySqlPlatform')->getMock())) |
|
| 108 | 108 | ; |
| 109 | 109 | $conn = $this->getMockBuilder('Doctrine\DBAL\Connection') |
| 110 | - ->setConstructorArgs([], $driver) |
|
| 111 | - ->getMock() |
|
| 110 | + ->setConstructorArgs([], $driver) |
|
| 111 | + ->getMock() |
|
| 112 | 112 | ; |
| 113 | 113 | $conn->expects($this->once()) |
| 114 | - ->method('getEventManager') |
|
| 115 | - ->will($this->returnValue($evm ?: $this->getEventManager())) |
|
| 114 | + ->method('getEventManager') |
|
| 115 | + ->will($this->returnValue($evm ?: $this->getEventManager())) |
|
| 116 | 116 | ; |
| 117 | 117 | $config = $this->getMockAnnotatedConfig(); |
| 118 | 118 | $this->em = EntityManager::create($conn, $config); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $config = null === $config ? $this->getMockAnnotatedConfig() : $config; |
| 53 | 53 | $em = EntityManager::create($conn, $config, $evm ?: $this->getEventManager()); |
| 54 | 54 | $schema = array_map( |
| 55 | - function ($class) use ($em) { |
|
| 55 | + function($class) use ($em) { |
|
| 56 | 56 | return $em->getClassMetadata($class); |
| 57 | 57 | }, |
| 58 | 58 | (array)$this->getUsedEntityFixtures() |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $config = $this->getMockAnnotatedConfig(); |
| 80 | 80 | $em = EntityManager::create($conn, $config, $evm ?: $this->getEventManager()); |
| 81 | 81 | $schema = array_map( |
| 82 | - function ($class) use ($em) { |
|
| 82 | + function($class) use ($em) { |
|
| 83 | 83 | return $em->getClassMetadata($class); |
| 84 | 84 | }, |
| 85 | 85 | (array)$this->getUsedEntityFixtures() |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $this->testDeleteAfterAccess = true; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function reset(){ |
|
| 26 | + public function reset() { |
|
| 27 | 27 | $this->testDeleteAccess = false; |
| 28 | 28 | $this->testDeleteAfterAccess = false; |
| 29 | 29 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $this->testCreateAfterAccess = true; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function reset(){ |
|
| 26 | + public function reset() { |
|
| 27 | 27 | $this->testCreateAccess = false; |
| 28 | 28 | $this->testCreateAfterAccess = false; |
| 29 | 29 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $this->testUpdateAfterAccess = true; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function reset(){ |
|
| 26 | + public function reset() { |
|
| 27 | 27 | $this->testUpdateAccess = false; |
| 28 | 28 | $this->testUpdateAfterAccess = false; |
| 29 | 29 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $this->testCreateAfterAccess = true; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function reset(){ |
|
| 26 | + public function reset() { |
|
| 27 | 27 | $this->testCreateAccess = false; |
| 28 | 28 | $this->testCreateAfterAccess = false; |
| 29 | 29 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $this->testUpdateSubEntitiesAfterAccess = true; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function reset(){ |
|
| 26 | + public function reset() { |
|
| 27 | 27 | $this->testUpdateSubEntitiesAccess = false; |
| 28 | 28 | $this->testUpdateSubEntitiesAfterAccess = false; |
| 29 | 29 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $configuration = new Configuration(); |
| 58 | 58 | |
| 59 | 59 | $node = $configuration->getConfigTreeBuilder() |
| 60 | - ->buildTree() |
|
| 60 | + ->buildTree() |
|
| 61 | 61 | ; |
| 62 | 62 | $normalizedConfig = $node->normalize($inputConfig); |
| 63 | 63 | $finalizedConfig = $node->finalize($normalizedConfig); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $configuration = new Configuration(); |
| 78 | 78 | |
| 79 | 79 | $node = $configuration->getConfigTreeBuilder() |
| 80 | - ->buildTree() |
|
| 80 | + ->buildTree() |
|
| 81 | 81 | ; |
| 82 | 82 | $normalizedConfig = $node->normalize($inputConfig); |
| 83 | 83 | $node->finalize($normalizedConfig); |