@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | try { |
77 | 77 | return $request->send()->json(); |
78 | - } catch(BadResponseException $e) { |
|
78 | + } catch (BadResponseException $e) { |
|
79 | 79 | echo $e->getMessage(); |
80 | 80 | echo 'There is no object with this id:'.$id; |
81 | 81 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $className = (new \ReflectionClass($this))->getShortName(); |
103 | 103 | $apiNameCalled = str_replace('Izberg', '', $className); |
104 | 104 | |
105 | - switch($functionName) { |
|
105 | + switch ($functionName) { |
|
106 | 106 | case 'get'.$apiNameCalled.'s': |
107 | 107 | return $this->getObjects(static::$url); |
108 | 108 | break; |
@@ -109,8 +109,8 @@ |
||
109 | 109 | $message_auth = hash_hmac('sha1', implode(";", $toCompose), $secretKey); |
110 | 110 | |
111 | 111 | $url = $this->izbergUrl; |
112 | - $url .= 'first_name=' . urlencode($firstName) . '&last_name=' . urlencode($lastName) . '&message_auth=' . $message_auth . '&email=' . urlencode($email); |
|
113 | - $url .= '×tamp=' . $timestamp . '&is_staff=true'; |
|
112 | + $url .= 'first_name='.urlencode($firstName).'&last_name='.urlencode($lastName).'&message_auth='.$message_auth.'&email='.urlencode($email); |
|
113 | + $url .= '×tamp='.$timestamp.'&is_staff=true'; |
|
114 | 114 | return $url; |
115 | 115 | } |
116 | 116 |