Completed
Push — master ( 25bf13...e9c5a4 )
by Andy
02:32
created
src/Collections/PopoloCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function __get($prop)
30 30
     {
31 31
         if (in_array($prop, $this->properties)) {
32
-            $getter = 'get' . ucfirst($prop);
32
+            $getter = 'get'.ucfirst($prop);
33 33
             return $this->$getter();
34 34
         }
35 35
         trigger_error('Undefined property: '.__CLASS__.'::$'.$prop, E_USER_ERROR);
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
         $matches = $this->filter($filters);
64 64
         $n = count($matches);
65 65
         if ($n == 0) {
66
-            $msg = "No " . $this->objectClass . " found matching " . json_encode($filters);
66
+            $msg = "No ".$this->objectClass." found matching ".json_encode($filters);
67 67
             throw new Exceptions\ObjectDoesNotExistException($msg);
68 68
         } elseif ($n > 1) {
69
-            $msg = "Multiple " . $this->objectClass . " objects ($n) found matching " . json_encode($filters);
69
+            $msg = "Multiple ".$this->objectClass." objects ($n) found matching ".json_encode($filters);
70 70
             throw new Exceptions\MultipleObjectsReturnedException($msg);
71 71
         }
72 72
         return $matches[0];
Please login to merge, or discard this patch.
src/Objects/PopoloObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         $properties = array_merge($this->baseProperties, $this->properties);
34 34
         if (in_array($prop, $properties)) {
35
-            $getter = 'get' . ucfirst($prop);
35
+            $getter = 'get'.ucfirst($prop);
36 36
             return $this->$getter();
37 37
         }
38 38
         trigger_error('Undefined property: '.__CLASS__.'::$'.$prop, E_USER_ERROR);
Please login to merge, or discard this patch.
src/Objects/Person.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -252,8 +252,8 @@
 block discarded – undo
252 252
             return $this->name;
253 253
         }
254 254
         if (count($namesAtDate) > 1) {
255
-            $msg = 'Multiple names for ' . (string) $this;
256
-            $msg .= ' found at date ' . $particularDate->format('Y-m-d');
255
+            $msg = 'Multiple names for '.(string) $this;
256
+            $msg .= ' found at date '.$particularDate->format('Y-m-d');
257 257
             throw new \Exception($msg);
258 258
         }
259 259
         return $namesAtDate[0]['name'];
Please login to merge, or discard this patch.