Failed Conditions
Push — future/ConfuenceWrapper ( 07e591...c4d11e )
by
unknown
08:15
created
src/ConfluenceImporter/Parser/Parser.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -48,19 +48,19 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $fileCollection = new \SplObjectStorage();
50 50
 
51
-        foreach ($this->classArray as $class){
51
+        foreach ($this->classArray as $class) {
52 52
 
53 53
             $file = new File();
54 54
 
55
-            if (isset($class['@attributes'])){
55
+            if (isset($class['@attributes'])) {
56 56
                 $path = $class['@attributes']['path'];
57 57
                 $package = $class['@attributes']['package'];
58 58
                 $file->setPath($path);
59 59
                 $file->setPackage($package);
60 60
             }
61 61
 
62
-            foreach ($class as $key => $value){
63
-                switch($key){
62
+            foreach ($class as $key => $value) {
63
+                switch ($key) {
64 64
                     case 'class':
65 65
                         $file->setType($key);
66 66
                         $file->setAbstract(strtolower($class['class']['@attributes']['abstract']) === 'true');
@@ -78,13 +78,13 @@  discard block
 block discarded – undo
78 78
 
79 79
                         }
80 80
 
81
-                        if (isset($class['namespace-alias'])){
81
+                        if (isset($class['namespace-alias'])) {
82 82
                             $file->setNamespaceAlias($class['namespace-alias']);
83 83
                         }
84 84
 
85 85
 //                        var_dump($class);die;
86 86
 //                        var_dump((isset($class['constant'])));
87
-                        if (isset($class['class']['constant'])){
87
+                        if (isset($class['class']['constant'])) {
88 88
                             $constant = new Constant();
89 89
                             $name = $class['class']['constant']['name'];
90 90
                             $fullName = $class['class']['constant']['full_name'];
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                             $file->setConstant($constant);
98 98
                         }
99 99
 
100
-                        if (isset($class['class']['property'])){
100
+                        if (isset($class['class']['property'])) {
101 101
                             $test = $class['class']['property'];
102 102
                             $this->setProperty($class['class']['property'], $file);
103 103
                         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                     case 'interface':
109 109
                         $file->setType($key);
110 110
                         $file->setNamespace($class['interface']['@attributes']['namespace']);
111
-                        if (isset($class['namespace-alias'])){
111
+                        if (isset($class['namespace-alias'])) {
112 112
                             $file->setNamespaceAlias($class['namespace-alias']);
113 113
                         }
114 114
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                         break;
117 117
                     case 'trait':
118 118
                         $file->setType($key);
119
-                        if (isset($class['namespace-alias'])){
119
+                        if (isset($class['namespace-alias'])) {
120 120
                             $file->setNamespaceAlias($class['namespace-alias']);
121 121
                         }
122 122
                         echo $key . PHP_EOL;
@@ -178,8 +178,8 @@  discard block
 block discarded – undo
178 178
 //        print_r($property);
179 179
         $zal = array_key_exists('name', $property);
180 180
         $zalozenie = (FALSE === array_key_exists('name', $property));
181
-        if(FALSE === array_key_exists('name', $property)){
182
-            foreach ($property as $prop){
181
+        if (FALSE === array_key_exists('name', $property)) {
182
+            foreach ($property as $prop) {
183 183
                 $this->setProperty($prop, $file);
184 184
             }
185 185
             return;
Please login to merge, or discard this patch.
src/ConfluenceImporter/Parser/Structure/Attribute/Collection/Properties.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
 namespace CodeMine\ConfluenceImporter\Parser\Structure\Attribute\Collection;
10 10
 
11 11
 
12
-class Properties extends \SplObjectStorage{}
13 12
\ No newline at end of file
13
+class Properties extends \SplObjectStorage {}
14 14
\ No newline at end of file
Please login to merge, or discard this patch.