Passed
Push — master ( 803693...151800 )
by Dāvis
03:44
created
DependencyInjection/Component/Openidconnect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 class Openidconnect implements Extension
12 12
 {
13
-    public function buildClientConfiguration(NodeDefinition &$node)
13
+    public function buildClientConfiguration(NodeDefinition & $node)
14 14
     {
15 15
         $optionsNode = $node->children();
16 16
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $optionsNode->end();
46 46
     }
47 47
 
48
-    private function buildUri(NodeDefinition &$node)
48
+    private function buildUri(NodeDefinition & $node)
49 49
     {
50 50
         $optionsNode = $node->children();
51 51
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         ]);
71 71
     }
72 72
 
73
-    public function configure(ContainerBuilder &$container)
73
+    public function configure(ContainerBuilder & $container)
74 74
     {
75 75
         $clientConfigurations = $container->getParameter('sludio_helper.openidconnect.clients');
76 76
         $clientServiceKeys = [];
Please login to merge, or discard this patch.
Translatable/Form/Type/TranslatorType.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
         $this->container = $container;
34 34
     }
35 35
 
36
-    private function checkOptions(array $object, $field){
37
-        if(!isset($object['fields']) || !isset($object['fields'][$field])){
36
+    private function checkOptions(array $object, $field) {
37
+        if (!isset($object['fields']) || !isset($object['fields'][$field])) {
38 38
             return false;
39 39
         }
40 40
 
41 41
         $fields = ['class', 'type'];
42
-        foreach($fields as $type){
43
-            if(!isset($object['fields'][$field][$type])){
42
+        foreach ($fields as $type) {
43
+            if (!isset($object['fields'][$field][$type])) {
44 44
                 $object['ields'][$field][$type] = constant('self::DEFAULT_'.strtoupper($type));
45 45
             }
46 46
         }
@@ -55,20 +55,20 @@  discard block
 block discarded – undo
55 55
         $entities = $this->container->getParameter('sludio_helper.translatable.entities');
56 56
         $entity = null;
57 57
         $className = $admin->getClass();
58
-        foreach($entities as $entity){
59
-            if($entity['entity'] === $className){
58
+        foreach ($entities as $entity) {
59
+            if ($entity['entity'] === $className) {
60 60
                 break;
61 61
             }
62 62
         }
63 63
 
64
-        if($entity === null){
64
+        if ($entity === null) {
65 65
             throw new \Exception('No entities defined');
66 66
         }
67 67
 
68 68
         $id = $admin->getSubject()->getId();
69 69
         $fieldName = $builder->getName();
70 70
 
71
-        if(!$this->checkOptions($entity, $fieldName)){
71
+        if (!$this->checkOptions($entity, $fieldName)) {
72 72
             throw new \Exception('No fields defined for this entity');
73 73
         }
74 74
 
Please login to merge, or discard this patch.
Braces   +9 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,14 +33,15 @@  discard block
 block discarded – undo
33 33
         $this->container = $container;
34 34
     }
35 35
 
36
-    private function checkOptions(array $object, $field){
37
-        if(!isset($object['fields']) || !isset($object['fields'][$field])){
36
+    private function checkOptions(array $object, $field)
37
+    {
38
+        if(!isset($object['fields']) || !isset($object['fields'][$field])) {
38 39
             return false;
39 40
         }
40 41
 
41 42
         $fields = ['class', 'type'];
42
-        foreach($fields as $type){
43
-            if(!isset($object['fields'][$field][$type])){
43
+        foreach($fields as $type) {
44
+            if(!isset($object['fields'][$field][$type])) {
44 45
                 $object['ields'][$field][$type] = constant('self::DEFAULT_'.strtoupper($type));
45 46
             }
46 47
         }
@@ -55,20 +56,20 @@  discard block
 block discarded – undo
55 56
         $entities = $this->container->getParameter('sludio_helper.translatable.entities');
56 57
         $entity = null;
57 58
         $className = $admin->getClass();
58
-        foreach($entities as $entity){
59
-            if($entity['entity'] === $className){
59
+        foreach($entities as $entity) {
60
+            if($entity['entity'] === $className) {
60 61
                 break;
61 62
             }
62 63
         }
63 64
 
64
-        if($entity === null){
65
+        if($entity === null) {
65 66
             throw new \Exception('No entities defined');
66 67
         }
67 68
 
68 69
         $id = $admin->getSubject()->getId();
69 70
         $fieldName = $builder->getName();
70 71
 
71
-        if(!$this->checkOptions($entity, $fieldName)){
72
+        if(!$this->checkOptions($entity, $fieldName)) {
72 73
             throw new \Exception('No fields defined for this entity');
73 74
         }
74 75
 
Please login to merge, or discard this patch.