Passed
Branch master (29943c)
by emilien
03:05
created
DependencyInjection/EntityChangeWatchExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
                             ->end()
75 75
                         ->end()
76 76
                     ->end()
77
-                 ->end()
77
+                    ->end()
78 78
         ;
79 79
 
80 80
         return $treeBuilder;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Tests/BaseTestCaseORM.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,16 +103,16 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
Tests/Fixtures/Services/EntityDeleteCallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Tests/Fixtures/Services/SubEntityCreateCallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Tests/Fixtures/Services/EntityUpdateCallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Tests/Fixtures/Services/EntityCreateCallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Tests/Fixtures/Services/EntityUpdateSubEntitiesCallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Tests/ConfigurationTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.