@@ -29,7 +29,7 @@ discard block |
||
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 |
||
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]; |
@@ -32,7 +32,7 @@ |
||
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); |
@@ -252,8 +252,8 @@ |
||
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']; |