Passed
Branch master (6a7148)
by Curtis
01:48
created
library/PhpGedcom/Parser/Head/Sour.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
         $record = $parser->getCurrentLineRecord();
31 31
         $depth = (int)$record[0];
32 32
         if(isset($record[2])){
33
-          $source = new \PhpGedcom\Record\Head\Sour();
34
-          $source->setSour(trim($record[2]));
33
+            $source = new \PhpGedcom\Record\Head\Sour();
34
+            $source->setSour(trim($record[2]));
35 35
         }
36 36
         else{
37
-           $parser->skipToNextLevel($depth);
38
-           return null;
37
+            $parser->skipToNextLevel($depth);
38
+            return null;
39 39
         }
40 40
 
41 41
         $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Head/Sour/Data.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
         $record = $parser->getCurrentLineRecord();
31 31
         $depth = (int)$record[0];
32 32
         if(isset($record[2])){
33
-          $data = new \PhpGedcom\Record\Head\Sour\Data();
34
-          $data->setData(trim($record[2]));
33
+            $data = new \PhpGedcom\Record\Head\Sour\Data();
34
+            $data->setData(trim($record[2]));
35 35
         }
36 36
         else{
37
-           $parser->skipToNextLevel($depth);
38
-           return null;
37
+            $parser->skipToNextLevel($depth);
38
+            return null;
39 39
         }
40 40
 
41 41
         $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Head/Sour/Corp.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
         $record = $parser->getCurrentLineRecord();
31 31
         $depth = (int)$record[0];
32 32
         if(isset($record[2])){
33
-          $corp = new \PhpGedcom\Record\Head\Sour\Corp();
34
-          $corp->setCorp(trim($record[2]));
33
+            $corp = new \PhpGedcom\Record\Head\Sour\Corp();
34
+            $corp->setCorp(trim($record[2]));
35 35
         }
36 36
         else{
37
-           $parser->skipToNextLevel($depth);
38
-           return null;
37
+            $parser->skipToNextLevel($depth);
38
+            return null;
39 39
         }
40 40
 
41 41
 
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Head/Char.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
         $record = $parser->getCurrentLineRecord();
31 31
         $depth = (int)$record[0];
32 32
         if(isset($record[2])){
33
-          $char = new \PhpGedcom\Record\Head\Char();
34
-          $char->setChar(trim($record[2]));
33
+            $char = new \PhpGedcom\Record\Head\Char();
34
+            $char->setChar(trim($record[2]));
35 35
         }
36 36
         else{
37
-           $parser->skipToNextLevel($depth);
38
-           return null;
37
+            $parser->skipToNextLevel($depth);
38
+            return null;
39 39
         }
40 40
 
41 41
 
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Head/Date.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
         $record = $parser->getCurrentLineRecord();
31 31
         $depth = (int)$record[0];
32 32
         if(isset($record[2])){
33
-          $date = new \PhpGedcom\Record\Head\Date();
34
-          $date->setDate(trim($record[2]));
33
+            $date = new \PhpGedcom\Record\Head\Date();
34
+            $date->setDate(trim($record[2]));
35 35
         }
36 36
         else{
37
-           $parser->skipToNextLevel($depth);
38
-           return null;
37
+            $parser->skipToNextLevel($depth);
38
+            return null;
39 39
         }
40 40
 
41 41
         $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Caln.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
         $record = $parser->getCurrentLineRecord();
31 31
         $depth = (int)$record[0];
32 32
         if(isset($record[2])){
33
-          $identifier = $parser->normalizeIdentifier($record[2]);
33
+            $identifier = $parser->normalizeIdentifier($record[2]);
34 34
         }
35 35
         else{
36
-           $parser->skipToNextLevel($depth);
37
-           return null;
36
+            $parser->skipToNextLevel($depth);
37
+            return null;
38 38
         }
39 39
 
40 40
         $caln = new \PhpGedcom\Record\Caln();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Obje.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
         $record = $parser->getCurrentLineRecord();
31 31
         $depth = (int) $record[0];
32 32
         if(isset($record[1])){
33
-          $identifier = $parser->normalizeIdentifier($record[1]);
33
+            $identifier = $parser->normalizeIdentifier($record[1]);
34 34
         }
35 35
         else{
36
-           $parser->skipToNextLevel($depth);
37
-           return null;
36
+            $parser->skipToNextLevel($depth);
37
+            return null;
38 38
         }
39 39
 
40 40
         $obje = new \PhpGedcom\Record\Obje();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Date.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -20,23 +20,23 @@
 block discarded – undo
20 20
  */
21 21
 class Date extends \PhpGedcom\Parser\Component {
22 22
 
23
-	/**
24
-	 *
25
-	 *
26
-	 */
27
-	public static function parse(\PhpGedcom\Parser $parser) {
28
-		$record = $parser->getCurrentLineRecord();
29
-		$depth = (int) $record[0];
30
-		if (isset($record[1])) {
31
-			$dat = new \PhpGedcom\Record\Date();
32
-			if (!empty($record[2])) {
33
-				$dat->setDate($record[2]);
34
-			}
35
-		} else {
36
-			$parser->skipToNextLevel($depth);
37
-			return null;
38
-		}
23
+    /**
24
+     *
25
+     *
26
+     */
27
+    public static function parse(\PhpGedcom\Parser $parser) {
28
+        $record = $parser->getCurrentLineRecord();
29
+        $depth = (int) $record[0];
30
+        if (isset($record[1])) {
31
+            $dat = new \PhpGedcom\Record\Date();
32
+            if (!empty($record[2])) {
33
+                $dat->setDate($record[2]);
34
+            }
35
+        } else {
36
+            $parser->skipToNextLevel($depth);
37
+            return null;
38
+        }
39 39
 
40
-		return $dat;
41
-	}
40
+        return $dat;
41
+    }
42 42
 }
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Head.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@
 block discarded – undo
32 32
         $record = $parser->getCurrentLineRecord();
33 33
         $depth = (int)$record[0];
34 34
         if(isset($record[1])){
35
-          $identifier = $parser->normalizeIdentifier($record[1]);
35
+            $identifier = $parser->normalizeIdentifier($record[1]);
36 36
         }
37 37
         else{
38
-           $parser->skipToNextLevel($depth);
39
-           return null;
38
+            $parser->skipToNextLevel($depth);
39
+            return null;
40 40
         }
41 41
 
42 42
         $head = new \PhpGedcom\Record\Head();
Please login to merge, or discard this patch.