Passed
Branch master (6a7148)
by Curtis
01:48
created
library/PhpGedcom/Parser/Indi/Name/Fone.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
           $fone = new \PhpGedcom\Record\Indi\Name\Fone();
34 34
           $fone->setFone(trim($record[2]));
35 35
         }
36
-        else{
36
+        else {
37 37
            return null;
38 38
         }
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();
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                     $fone->setNsfx(trim($record[2]));
78 78
                     break;
79 79
                 default:
80
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
80
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
81 81
             }
82 82
 
83 83
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Famc.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  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
         if (count($record) < 3) {
34
-            $parser->logSkippedRecord('Missing family information; ' . get_class(), ' @ ' . __LINE__);
34
+            $parser->logSkippedRecord('Missing family information; '.get_class(), ' @ '.__LINE__);
35 35
             $parser->skipToNextLevel($depth);
36 36
             return null;
37 37
         }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         while (!$parser->eof()) {
47 47
             $record = $parser->getCurrentLineRecord();
48 48
             $recordType = strtoupper(trim($record[1]));
49
-            $currentDepth = (int)$record[0];
49
+            $currentDepth = (int) $record[0];
50 50
 
51 51
             if ($currentDepth <= $depth) {
52 52
                 $parser->back();
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                     }
65 65
                     break;
66 66
                 default:
67
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
67
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
68 68
             }
69 69
 
70 70
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Asso.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
           $asso = new \PhpGedcom\Record\Indi\Asso();
34 34
           $asso->setIndi($parser->normalizeIdentifier($record[2]));
35 35
         }
36
-        else{
36
+        else {
37 37
            $parser->skipToNextLevel($depth);
38 38
            return null;
39 39
         }
@@ -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();
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                     }
67 67
                     break;
68 68
                 default:
69
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
69
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
70 70
             }
71 71
 
72 72
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Adop.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@
 block discarded – undo
23 23
     public static function parseAdop($parser, $even)
24 24
     {
25 25
         $record = $parser->getCurrentLineRecord();
26
-        if(isset($record[1]))
26
+        if (isset($record[1]))
27 27
         $even->setAdop(trim($record[2]));
28 28
     }
29 29
 
30 30
     public static function parseFamc($parser, $even)
31 31
     {
32 32
         $record = $parser->getCurrentLineRecord();
33
-        if(isset($record[1]))
33
+        if (isset($record[1]))
34 34
         $even->setFamc(trim($record[2]));
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Even/Plac.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
         $plac = new \PhpGedcom\Record\Indi\Even\Plac();
34 34
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         while (!$parser->eof()) {
42 42
             $record = $parser->getCurrentLineRecord();
43 43
             $recordType = strtoupper(trim($record[1]));
44
-            $currentDepth = (int)$record[0];
44
+            $currentDepth = (int) $record[0];
45 45
 
46 46
             if ($currentDepth <= $depth) {
47 47
                 $parser->back();
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                     $plac->addSour($sour);
64 64
                     break;
65 65
                 default:
66
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
66
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
67 67
             }
68 68
 
69 69
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Even.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 		$even = null;
38 38
 
39 39
 		if (strtoupper(trim($record[1])) != 'EVEN') {
40
-			$className = '\\PhpGedcom\\Record\\Indi\\' . ucfirst(strtolower(trim($record[1])));
40
+			$className = '\\PhpGedcom\\Record\\Indi\\'.ucfirst(strtolower(trim($record[1])));
41 41
 			$even = new $className();
42 42
 		} else {
43 43
 			$even = new \PhpGedcom\Record\Indi\Even();
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
 				break;
114 114
 			default:
115 115
 				$self = get_called_class();
116
-				$method = 'parse' . $recordType;
116
+				$method = 'parse'.$recordType;
117 117
 
118 118
 				if (method_exists($self, $method)) {
119 119
 					$self::$method($parser, $even);
120 120
 				} else {
121
-					$parser->logUnhandledRecord($self . ' @ ' . __LINE__);
121
+					$parser->logUnhandledRecord($self.' @ '.__LINE__);
122 122
 					$parser->skipToNextLevel($currentDepth);
123 123
 				}
124 124
 			}
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Name.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
           $name = new \PhpGedcom\Record\Indi\Name();
34 34
           $name->setName(trim($record[2]));
35 35
         }
36
-        else{
36
+        else {
37 37
            $parser->skipToNextLevel($depth);
38 38
            return null;
39 39
         }
@@ -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();
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                     $name->setRomn(\PhpGedcom\Parser\Indi\Name\Romn::parse($parser));
95 95
                     break;
96 96
                 default:
97
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
97
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
98 98
             }
99 99
 
100 100
             $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Birt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public static function parseFamc($parser, $even)
24 24
     {
25 25
         $record = $parser->getCurrentLineRecord();
26
-        if(isset($record[2]))
26
+        if (isset($record[2]))
27 27
           $even->setFamc(trim($record[2]));
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Lds.php 1 patch
Spacing   +7 added lines, -7 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[1])){
33
-          $className = '\\PhpGedcom\\Record\\Indi\\' . ucfirst(strtolower(trim($record[1])));
31
+        $depth = (int) $record[0];
32
+        if (isset($record[1])) {
33
+          $className = '\\PhpGedcom\\Record\\Indi\\'.ucfirst(strtolower(trim($record[1])));
34 34
           $lds = new $className();
35 35
         }
36
-        else{
36
+        else {
37 37
            $parser->skipToNextLevel($depth);
38 38
            return null;
39 39
         }
@@ -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();
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
                     break;
77 77
                 default:
78 78
                     $self = get_called_class();
79
-                    $method = 'parse' . $recordType;
79
+                    $method = 'parse'.$recordType;
80 80
 
81 81
                     if (method_exists($self, $method)) {
82 82
                         $self::$method($parser, $lds);
83 83
                     } else {
84
-                        $parser->logUnhandledRecord($self . ' @ ' . __LINE__);
84
+                        $parser->logUnhandledRecord($self.' @ '.__LINE__);
85 85
                     }
86 86
             }
87 87
 
Please login to merge, or discard this patch.