Passed
Branch master (6a7148)
by Curtis
01:48
created
library/PhpGedcom/Gedcom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      *
61 61
      * @var \PhpGedcom\Record\Fam[]
62 62
      */
63
-    protected $fam  = array();
63
+    protected $fam = array();
64 64
 
65 65
     /**
66 66
      * Stores all the notes contained within the GEDCOM file that are not inline.
Please login to merge, or discard this patch.
library/PhpGedcom/Record/ObjeRef.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,22 +22,22 @@
 block discarded – undo
22 22
     /**
23 23
      *
24 24
      */
25
-    protected $_isRef   = false;
25
+    protected $_isRef = false;
26 26
 
27 27
     /**
28 28
      *
29 29
      */
30
-    protected $_obje    = null;
30
+    protected $_obje = null;
31 31
 
32 32
     /**
33 33
      *
34 34
      */
35
-    protected $_titl    = null;
35
+    protected $_titl = null;
36 36
 
37 37
     /**
38 38
      *
39 39
      */
40
-    protected $_file    = null;
40
+    protected $_file = null;
41 41
 
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
library/PhpGedcom/Record/Sour/Repo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     /**
44 44
      * 
45 45
      */
46
-    public function addCaln($caln=[]){
46
+    public function addCaln($caln = []) {
47 47
         $this->_caln[] = $caln;
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
library/PhpGedcom/Record/Plac.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     /**
43 43
      * array PhpGedcom\Record\NoteRef
44 44
      */
45
-    protected $_note= null;
45
+    protected $_note = null;
46 46
 
47 47
     /**
48 48
 	 * @param PhpGedcom\Record\NoteRef $note
Please login to merge, or discard this patch.
library/PhpGedcom/Record/NoteRef.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
     /**
25 25
      *
26 26
      */
27
-    protected $_isRef   = false;
27
+    protected $_isRef = false;
28 28
 
29 29
     /**
30 30
      *
31 31
      */
32
-    protected $_note    = '';
32
+    protected $_note = '';
33 33
 
34 34
     /**
35 35
      *
Please login to merge, or discard this patch.
library/PhpGedcom/Record/SourRef/Data.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@
 block discarded – undo
22 22
     /**
23 23
      * string entry_recording_date
24 24
      */
25
-    protected $_date    = null;
25
+    protected $_date = null;
26 26
     /**
27 27
      * string text_from_source
28 28
      */
29
-    protected $_text    = null;
29
+    protected $_text = null;
30 30
 }
Please login to merge, or discard this patch.
library/PhpGedcom/Record.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
         if (substr($method, 0, 3) == 'add') {
28 28
             $arr = strtolower(substr($method, 3));
29 29
 
30
-            if (!property_exists($this, '_' . $arr) || !is_array($this->{'_' . $arr})) {
31
-                throw new \Exception('Unknown ' . get_class($this) . '::' . $arr);
30
+            if (!property_exists($this, '_'.$arr) || !is_array($this->{'_'.$arr})) {
31
+                throw new \Exception('Unknown '.get_class($this).'::'.$arr);
32 32
             }
33 33
 
34 34
             if (!is_array($args)) {
35
-                throw new \Exception('Incorrect arguments to ' . $method);
35
+                throw new \Exception('Incorrect arguments to '.$method);
36 36
             }
37 37
 
38 38
             if (!isset($args[0])) {
@@ -44,18 +44,18 @@  discard block
 block discarded – undo
44 44
                 // Type safety?
45 45
             }
46 46
 
47
-            $this->{'_' . $arr}[] = $args[0];
47
+            $this->{'_'.$arr}[] = $args[0];
48 48
 
49 49
             return $this;
50 50
         } elseif (substr($method, 0, 3) == 'set') {
51 51
             $arr = strtolower(substr($method, 3));
52 52
 
53
-            if (!property_exists($this, '_' . $arr)) {
54
-                throw new \Exception('Unknown ' . get_class($this) . '::' . $arr);
53
+            if (!property_exists($this, '_'.$arr)) {
54
+                throw new \Exception('Unknown '.get_class($this).'::'.$arr);
55 55
             }
56 56
 
57 57
             if (!is_array($args)) {
58
-                throw new \Exception('Incorrect arguments to ' . $method);
58
+                throw new \Exception('Incorrect arguments to '.$method);
59 59
             }
60 60
 
61 61
             if (!isset($args[0])) {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 // Type safety?
68 68
             }
69 69
 
70
-            $this->{'_' . $arr} = $args[0];
70
+            $this->{'_'.$arr} = $args[0];
71 71
 
72 72
             return $this;
73 73
         } elseif (substr($method, 0, 3) == 'get') {
@@ -76,18 +76,18 @@  discard block
 block discarded – undo
76 76
             // hotfix getData
77 77
             if ('data' == $arr) {
78 78
                 if (!property_exists($this, '_text')) {
79
-                    throw new \Exception('Unknown ' . get_class($this) . '::' . $arr);
79
+                    throw new \Exception('Unknown '.get_class($this).'::'.$arr);
80 80
                 }
81 81
                 return $this->{'_text'};
82 82
             }
83 83
             
84
-            if (!property_exists($this, '_' . $arr)) {
85
-                throw new \Exception('Unknown ' . get_class($this) . '::' . $arr);
84
+            if (!property_exists($this, '_'.$arr)) {
85
+                throw new \Exception('Unknown '.get_class($this).'::'.$arr);
86 86
             }
87 87
 
88
-            return $this->{'_' . $arr};
88
+            return $this->{'_'.$arr};
89 89
         } else {
90
-            throw new \Exception('Unknown method called: ' . $method);
90
+            throw new \Exception('Unknown method called: '.$method);
91 91
         }
92 92
     }
93 93
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     public function __set($var, $val)
98 98
     {
99 99
         // this class does not have any public vars
100
-        throw new \Exception('Undefined property ' . get_class() . '::' . $var);
100
+        throw new \Exception('Undefined property '.get_class().'::'.$var);
101 101
     }
102 102
 
103 103
     /**
@@ -109,6 +109,6 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function hasAttribute($var)
111 111
     {
112
-        return property_exists($this, '_' . $var) || property_Exists($this, $var);
112
+        return property_exists($this, '_'.$var) || property_Exists($this, $var);
113 113
     }
114 114
 }
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/ObjeRef.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public static function parse(\PhpGedcom\Parser $parser)
27 27
     {
28 28
         $record = $parser->getCurrentLineRecord();
29
-        $depth = (int)$record[0];
29
+        $depth = (int) $record[0];
30 30
         
31 31
         $obje = new \PhpGedcom\Record\ObjeRef();
32 32
         
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         while (!$parser->eof()) {
43 43
             $record = $parser->getCurrentLineRecord();
44 44
             $recordType = strtoupper(trim($record[1]));
45
-            $currentDepth = (int)$record[0];
45
+            $currentDepth = (int) $record[0];
46 46
             
47 47
             if ($currentDepth <= $depth) {
48 48
                 $parser->back();
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                     $obje->setFile(\PhpGedcom\Parser\ObjeRef\File::parse($parser));
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/Chan.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
         $parser->forward();
34 34
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         while (!$parser->eof()) {
38 38
             $record = $parser->getCurrentLineRecord();
39 39
             $recordType = trim($record[1]);
40
-            $currentDepth = (int)$record[0];
40
+            $currentDepth = (int) $record[0];
41 41
 
42 42
             if ($currentDepth <= $depth) {
43 43
                 $parser->back();
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                     }
59 59
                     break;
60 60
                 default:
61
-                    $parser->logUnhandledRecord(get_class() . ' @ ' . __LINE__);
61
+                    $parser->logUnhandledRecord(get_class().' @ '.__LINE__);
62 62
             }
63 63
 
64 64
             $parser->forward();
Please login to merge, or discard this patch.