Completed
Push — master ( 12c2bf...bce041 )
by Vincent
07:50
created
src/Aop/TransactionalPointcut.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
                     default:
109 109
                         $policyName = 'default';
110 110
                 }
111
-                $methodString = $method->getDeclaringClass()->name . '::' . $method->name;
112
-                $this->logger->debug('TX policy for \'' . $methodString . '\': ' . $policyName);
111
+                $methodString = $method->getDeclaringClass()->name.'::'.$method->name;
112
+                $this->logger->debug('TX policy for \''.$methodString.'\': '.$policyName);
113 113
                 $noRollbackExceptionsStr = implode(
114 114
                     ', ',
115 115
                     ($annotation->getNoRollbackExceptions() === null)
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                         : $annotation->getNoRollbackExceptions()
118 118
                 );
119 119
                 $this->logger->debug(
120
-                    'TX no-rollback exceptions for \'' . $methodString . '\': ' . $noRollbackExceptionsStr
120
+                    'TX no-rollback exceptions for \''.$methodString.'\': '.$noRollbackExceptionsStr
121 121
                 );
122 122
             }
123 123
         }
Please login to merge, or discard this patch.
src/Annotation/Transactional.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
             $policy = $annotationPolicy;
139 139
         } else {
140 140
             throw new AnnotationException(
141
-                'Invalid policy: "' . $annotationPolicy . '", must be one of the constants [' .
142
-                implode(', ', $policies) . ']'
141
+                'Invalid policy: "'.$annotationPolicy.'", must be one of the constants ['.
142
+                implode(', ', $policies).']'
143 143
             );
144 144
         }
145 145
         return $policy;
@@ -159,11 +159,11 @@  discard block
 block discarded – undo
159 159
             try {
160 160
                 $exceptionClass = new ReflectionClass($exceptionClassName);
161 161
             } catch (ReflectionException $e) {
162
-                throw new AnnotationException('Class not found: \'' . $exceptionClassName . '\'', null, $e);
162
+                throw new AnnotationException('Class not found: \''.$exceptionClassName.'\'', null, $e);
163 163
             }
164 164
 
165 165
             if (($exceptionClassName !== Exception::class) && !$exceptionClass->isSubclassOf(Exception::class)) {
166
-                throw new AnnotationException('Not an exception: \'' . $exceptionClassName . '\'');
166
+                throw new AnnotationException('Not an exception: \''.$exceptionClassName.'\'');
167 167
             }
168 168
 
169 169
             $noRollbackExceptions[] = $exceptionClassName;
Please login to merge, or discard this patch.
src/DependencyInjection/InneairTransactionExtension.php 2 patches
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.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function load(array $configs, ContainerBuilder $container)
45 45
     {
46
-        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
46
+        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
47 47
         $loader->load('services.yml');
48 48
 
49 49
         $config = $this->processConfiguration($this->getConfiguration($configs, $container), $configs);
50 50
 
51 51
         $container->setParameter(
52
-            Configuration::ROOT_NODE_NAME . '.' . Configuration::STRICT_MODE,
52
+            Configuration::ROOT_NODE_NAME.'.'.Configuration::STRICT_MODE,
53 53
             $config[Configuration::STRICT_MODE]
54 54
         );
55 55
 
@@ -65,25 +65,25 @@  discard block
 block discarded – undo
65 65
                 break;
66 66
             default:
67 67
                 throw new InvalidArgumentException(
68
-                    'Unsupported default policy "' . $config[Configuration::DEFAULT_POLICY] . '"'
68
+                    'Unsupported default policy "'.$config[Configuration::DEFAULT_POLICY].'"'
69 69
                 );
70 70
         }
71
-        $container->setParameter(Configuration::ROOT_NODE_NAME . '.' . Configuration::DEFAULT_POLICY, $policy);
71
+        $container->setParameter(Configuration::ROOT_NODE_NAME.'.'.Configuration::DEFAULT_POLICY, $policy);
72 72
 
73 73
         $noRollbackExceptions = array_unique($config[Configuration::NO_ROLLBACK_EXCEPTIONS]);
74 74
         foreach ($noRollbackExceptions as $exceptionClassName) {
75 75
             try {
76 76
                 $exceptionClass = new ReflectionClass($exceptionClassName);
77 77
             } catch (ReflectionException $e) {
78
-                throw new InvalidArgumentException('Class not found: \'' . $exceptionClassName . '\'', null, $e);
78
+                throw new InvalidArgumentException('Class not found: \''.$exceptionClassName.'\'', null, $e);
79 79
             }
80 80
 
81 81
             if (($exceptionClassName !== Exception::class) && !$exceptionClass->isSubclassOf(Exception::class)) {
82
-                throw new InvalidArgumentException('Not an exception: \'' . $exceptionClassName . '\'');
82
+                throw new InvalidArgumentException('Not an exception: \''.$exceptionClassName.'\'');
83 83
             }
84 84
         }
85 85
         $container->setParameter(
86
-            Configuration::ROOT_NODE_NAME . '.' . Configuration::NO_ROLLBACK_EXCEPTIONS,
86
+            Configuration::ROOT_NODE_NAME.'.'.Configuration::NO_ROLLBACK_EXCEPTIONS,
87 87
             $noRollbackExceptions
88 88
         );
89 89
     }
@@ -93,6 +93,6 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function getXsdValidationBasePath()
95 95
     {
96
-        return __DIR__ . '/../Resources/config/schema';
96
+        return __DIR__.'/../Resources/config/schema';
97 97
     }
98 98
 }
Please login to merge, or discard this patch.