Completed
Push — master ( 12c2bf...bce041 )
by Vincent
07:50
created
src/Aop/TransactionalPointcut.php 1 patch
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -96,17 +96,17 @@
 block discarded – undo
96 96
 
97 97
             if ($transactionalEnabled) {
98 98
                 switch ($annotation->getPolicy()) {
99
-                    case Transactional::NOT_REQUIRED:
100
-                        $policyName = 'not required';
101
-                        break;
102
-                    case Transactional::REQUIRED:
103
-                        $policyName = 'required';
104
-                        break;
105
-                    case Transactional::NESTED:
106
-                        $policyName = 'nested';
107
-                        break;
108
-                    default:
109
-                        $policyName = 'default';
99
+                case Transactional::NOT_REQUIRED:
100
+                    $policyName = 'not required';
101
+                    break;
102
+                case Transactional::REQUIRED:
103
+                    $policyName = 'required';
104
+                    break;
105
+                case Transactional::NESTED:
106
+                    $policyName = 'nested';
107
+                    break;
108
+                default:
109
+                    $policyName = 'default';
110 110
                 }
111 111
                 $methodString = $method->getDeclaringClass()->name . '::' . $method->name;
112 112
                 $this->logger->debug('TX policy for \'' . $methodString . '\': ' . $policyName);
Please login to merge, or discard this patch.
src/DependencyInjection/InneairTransactionExtension.php 1 patch
Switch Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -54,19 +54,19 @@
 block discarded – undo
54 54
         );
55 55
 
56 56
         switch ($config[Configuration::DEFAULT_POLICY]) {
57
-            case Configuration::POLICY_NOT_REQUIRED:
58
-                $policy = Transactional::NOT_REQUIRED;
59
-                break;
60
-            case Configuration::POLICY_REQUIRED:
61
-                $policy = Transactional::REQUIRED;
62
-                break;
63
-            case Configuration::POLICY_NESTED:
64
-                $policy = Transactional::NESTED;
65
-                break;
66
-            default:
67
-                throw new InvalidArgumentException(
68
-                    'Unsupported default policy "' . $config[Configuration::DEFAULT_POLICY] . '"'
69
-                );
57
+        case Configuration::POLICY_NOT_REQUIRED:
58
+            $policy = Transactional::NOT_REQUIRED;
59
+            break;
60
+        case Configuration::POLICY_REQUIRED:
61
+            $policy = Transactional::REQUIRED;
62
+            break;
63
+        case Configuration::POLICY_NESTED:
64
+            $policy = Transactional::NESTED;
65
+            break;
66
+        default:
67
+            throw new InvalidArgumentException(
68
+                'Unsupported default policy "' . $config[Configuration::DEFAULT_POLICY] . '"'
69
+            );
70 70
         }
71 71
         $container->setParameter(Configuration::ROOT_NODE_NAME . '.' . Configuration::DEFAULT_POLICY, $policy);
72 72
 
Please login to merge, or discard this patch.