Passed
Branch master (6a7148)
by Curtis
01:48
created
library/PhpGedcom/Parser/Indi.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 			case 'WILL':
89 89
 			case 'EVEN':
90 90
 				$className = ucfirst(strtolower($recordType));
91
-				$class = '\\PhpGedcom\\Parser\\Indi\\' . $className;
91
+				$class = '\\PhpGedcom\\Parser\\Indi\\'.$className;
92 92
 
93 93
 				$event = $class::parse($parser);
94 94
 				$indi->addEven($event);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 			case 'SSN':
108 108
 			case 'TITL':
109 109
 				$className = ucfirst(strtolower($recordType));
110
-				$class = '\\PhpGedcom\\Parser\\Indi\\' . $className;
110
+				$class = '\\PhpGedcom\\Parser\\Indi\\'.$className;
111 111
 
112 112
 				$att = $class::parse($parser);
113 113
 				$indi->addAttr($att);
@@ -117,10 +117,10 @@  discard block
 block discarded – undo
117 117
 			case 'ENDL':
118 118
 			case 'SLGC':
119 119
 				$className = ucfirst(strtolower($recordType));
120
-				$class = '\\PhpGedcom\\Parser\\Indi\\' . $className;
120
+				$class = '\\PhpGedcom\\Parser\\Indi\\'.$className;
121 121
 
122 122
 				$lds = $class::parse($parser);
123
-				$indi->{'add' . $recordType}[] = $lds;
123
+				$indi->{'add'.$recordType}[] = $lds;
124 124
 				break;
125 125
 			case 'FAMC':
126 126
 				$famc = \PhpGedcom\Parser\Indi\Famc::parse($parser);
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 				$indi->addObje($obje);
183 183
 				break;
184 184
 			default:
185
-				$parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
185
+				$parser->logUnhandledRecord(get_class().' @ '.__LINE__);
186 186
 			}
187 187
 
188 188
 			$parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Sour.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
     public static function parse(\PhpGedcom\Parser $parser)
29 29
     {
30 30
         $record = $parser->getCurrentLineRecord();
31
-        $depth = (int)$record[0];
32
-        if(isset($record[1])){
31
+        $depth = (int) $record[0];
32
+        if (isset($record[1])) {
33 33
           $identifier = $parser->normalizeIdentifier($record[1]);
34 34
         }
35
-        else{
35
+        else {
36 36
            $parser->skipToNextLevel($depth);
37 37
            return null;
38 38
         }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         while (!$parser->eof()) {
48 48
             $record = $parser->getCurrentLineRecord();
49
-            $currentDepth = (int)$record[0];
49
+            $currentDepth = (int) $record[0];
50 50
             $recordType = strtoupper(trim($record[1]));
51 51
 
52 52
             if ($currentDepth <= $depth) {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     $sour->addObje($obje);
99 99
                     break;
100 100
                 default:
101
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
101
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
102 102
             }
103 103
 
104 104
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Plac/Romn.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
     public static function parse(\PhpGedcom\Parser $parser)
29 29
     {
30 30
         $record = $parser->getCurrentLineRecord();
31
-        $depth = (int)$record[0];
32
-        if(isset($record[2])){
31
+        $depth = (int) $record[0];
32
+        if (isset($record[2])) {
33 33
           $_romn = trim($record[2]);
34 34
         }
35
-        else{
35
+        else {
36 36
            $parser->skipToNextLevel($depth);
37 37
            return null;
38 38
         }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         while (!$parser->eof()) {
46 46
             $record = $parser->getCurrentLineRecord();
47
-            $currentDepth = (int)$record[0];
47
+            $currentDepth = (int) $record[0];
48 48
             $recordType = strtoupper(trim($record[1]));
49 49
 
50 50
             if ($currentDepth <= $depth) {
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                     $romn->setType(trim($record[2]));
58 58
                     break;
59 59
                 default:
60
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
60
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
61 61
             }
62 62
 
63 63
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Plac/Fone.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
     public static function parse(\PhpGedcom\Parser $parser)
29 29
     {
30 30
         $record = $parser->getCurrentLineRecord();
31
-        $depth = (int)$record[0];
32
-        if(isset($record[2])){
31
+        $depth = (int) $record[0];
32
+        if (isset($record[2])) {
33 33
           $_fone = trim($record[2]);
34 34
         }
35
-        else{
35
+        else {
36 36
            $parser->skipToNextLevel($depth);
37 37
            return null;
38 38
         }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         while (!$parser->eof()) {
46 46
             $record = $parser->getCurrentLineRecord();
47
-            $currentDepth = (int)$record[0];
47
+            $currentDepth = (int) $record[0];
48 48
             $recordType = strtoupper(trim($record[1]));
49 49
 
50 50
             if ($currentDepth <= $depth) {
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                     $fone->setType(trim($record[2]));
58 58
                     break;
59 59
                 default:
60
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
60
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
61 61
             }
62 62
 
63 63
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Plac/Map.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public static function parse(\PhpGedcom\Parser $parser)
29 29
     {
30 30
         $record = $parser->getCurrentLineRecord();
31
-        $depth = (int)$record[0];
31
+        $depth = (int) $record[0];
32 32
         
33 33
 
34 34
         $map = new \PhpGedcom\Record\Plac\Map();
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         while (!$parser->eof()) {
39 39
             $record = $parser->getCurrentLineRecord();
40
-            $currentDepth = (int)$record[0];
40
+            $currentDepth = (int) $record[0];
41 41
             $recordType = strtoupper(trim($record[1]));
42 42
 
43 43
             if ($currentDepth <= $depth) {
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                     $map->setLong(trim($record[2]));
54 54
                     break;
55 55
                 default:
56
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
56
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
57 57
             }
58 58
 
59 59
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/SourRef.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@  discard block
 block discarded – undo
28 28
     public static function parse(\PhpGedcom\Parser $parser)
29 29
     {
30 30
         $record = $parser->getCurrentLineRecord();
31
-        $depth = (int)$record[0];
32
-        if(isset($record[2])){
31
+        $depth = (int) $record[0];
32
+        if (isset($record[2])) {
33 33
           $sour = new \PhpGedcom\Record\SourRef();
34 34
           $sour->setSour($parser->normalizeIdentifier($record[2]));
35 35
         }
36
-        else{
36
+        else {
37 37
            $parser->skipToNextLevel($depth);
38 38
            return null;
39 39
         }        
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         while (!$parser->eof()) {
44 44
             $record = $parser->getCurrentLineRecord();
45 45
             $recordType = strtoupper(trim($record[1]));
46
-            $currentDepth = (int)$record[0];
46
+            $currentDepth = (int) $record[0];
47 47
 
48 48
             if ($currentDepth <= $depth) {
49 49
                 $parser->back();
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                     $sour->setQuay(trim($record[2]));
81 81
                     break;
82 82
                 default:
83
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
83
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
84 84
             }
85 85
 
86 86
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Fam/Slgs/Stat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         while (!$parser->eof()) {
45 45
             $record = $parser->getCurrentLineRecord();
46 46
             $recordType = strtoupper(trim($record[1]));
47
-            $currentDepth = (int)$record[0];
47
+            $currentDepth = (int) $record[0];
48 48
             
49 49
             if ($currentDepth <= $depth) {
50 50
                 $parser->back();
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                     $stat->setDate(trim($record[2]));
57 57
                     break;
58 58
                 default:
59
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
59
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
60 60
             }
61 61
             
62 62
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Fam/Even/Wife.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public static function parse(\PhpGedcom\Parser $parser)
29 29
     {
30 30
         $record = $parser->getCurrentLineRecord();
31
-        $depth = (int)$record[0];
31
+        $depth = (int) $record[0];
32 32
         
33 33
         $wife = new \PhpGedcom\Record\Fam\Even\Wife();
34 34
         
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         while (!$parser->eof()) {
38 38
             $record = $parser->getCurrentLineRecord();
39 39
             $recordType = strtoupper(trim($record[1]));
40
-            $currentDepth = (int)$record[0];
40
+            $currentDepth = (int) $record[0];
41 41
             
42 42
             if ($currentDepth <= $depth) {
43 43
                 $parser->back();
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                     $wife->setAge(trim($record[2]));
50 50
                     break;
51 51
                 default:
52
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
52
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
53 53
             }
54 54
             
55 55
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Fam/Even/Husb.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public static function parse(\PhpGedcom\Parser $parser)
29 29
     {
30 30
         $record = $parser->getCurrentLineRecord();
31
-        $depth = (int)$record[0];
31
+        $depth = (int) $record[0];
32 32
         
33 33
         $husband = new \PhpGedcom\Record\Fam\Even\Husb();
34 34
         
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         while (!$parser->eof()) {
38 38
             $record = $parser->getCurrentLineRecord();
39 39
             $recordType = strtoupper(trim($record[1]));
40
-            $currentDepth = (int)$record[0];
40
+            $currentDepth = (int) $record[0];
41 41
             
42 42
             if ($currentDepth <= $depth) {
43 43
                 $parser->back();
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                     $husband->setAge(trim($record[2]));
50 50
                     break;
51 51
                 default:
52
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
52
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
53 53
             }
54 54
             
55 55
             $parser->forward();
Please login to merge, or discard this patch.