Failed Conditions
Push — future/ConfuenceWrapper ( 28d061...f8e71e )
by
unknown
22:28
created
src/ConfluenceImporter/Parser/Parser.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -46,19 +46,19 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $fileCollection = new \SplObjectStorage();
48 48
 
49
-        foreach ($this->classArray as $class){
49
+        foreach ($this->classArray as $class) {
50 50
 
51 51
             $file = new File();
52 52
 
53
-            if (isset($class['@attributes'])){
53
+            if (isset($class['@attributes'])) {
54 54
                 $path = $class['@attributes']['path'];
55 55
                 $package = $class['@attributes']['package'];
56 56
                 $file->setPath($path);
57 57
                 $file->setPackage($package);
58 58
             }
59 59
 
60
-            foreach ($class as $key => $value){
61
-                switch($key){
60
+            foreach ($class as $key => $value) {
61
+                switch ($key) {
62 62
                     case 'class':
63 63
                         $file->setType($key);
64 64
                         $file->setAbstract(strtolower($class['class']['@attributes']['abstract']) === 'true');
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
 
77 77
                         }
78 78
 
79
-                        if (isset($class['namespace-alias'])){
79
+                        if (isset($class['namespace-alias'])) {
80 80
                             $file->setNamespaceAlias($class['namespace-alias']);
81 81
                         }
82 82
 
83
-                        if (isset($class['constant'])){
83
+                        if (isset($class['constant'])) {
84 84
                             $file->setConstant();
85 85
                         }
86 86
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                     case 'interface':
91 91
                         $file->setType($key);
92 92
                         $file->setNamespace($class['interface']['@attributes']['namespace']);
93
-                        if (isset($class['namespace-alias'])){
93
+                        if (isset($class['namespace-alias'])) {
94 94
                             $file->setNamespaceAlias($class['namespace-alias']);
95 95
                         }
96 96
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                         break;
99 99
                     case 'trait':
100 100
                         $file->setType($key);
101
-                        if (isset($class['namespace-alias'])){
101
+                        if (isset($class['namespace-alias'])) {
102 102
                             $file->setNamespaceAlias($class['namespace-alias']);
103 103
                         }
104 104
                         echo $key . PHP_EOL;
Please login to merge, or discard this patch.
src/ConfluenceImporter/Service/Confluence.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
         $stdBody = json_decode($returnBody->getContents());
102 102
         if ($response->getStatusCode() == 200 && count($stdBody->results) == 1) {
103
-            $id = (string)$stdBody->results[0]->id;
103
+            $id = (string) $stdBody->results[0]->id;
104 104
 
105 105
             return $id;
106 106
 
@@ -159,11 +159,11 @@  discard block
 block discarded – undo
159 159
         ];
160 160
 
161 161
         if (isset($parentPage)) {
162
-            if (isset($id)){
162
+            if (isset($id)) {
163 163
                 $bodyArray['ancestors'] = [
164 164
                     ['id' => $id]
165 165
                 ];
166
-            }else {
166
+            } else {
167 167
                 $pageId = $this->getPageId($key, $parentPage);
168 168
                 $bodyArray['ancestors'] = [
169 169
                     ['id' => $pageId]
Please login to merge, or discard this patch.