@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * Base url |
17 | 17 | */ |
18 | - const APIURL = "http://sc-api.com"; |
|
18 | + const APIURL = "http://sc-api.com"; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @var Client |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function getResult($params = []) |
46 | 46 | { |
47 | - $request = new Request("GET", '?'.http_build_query($params)); |
|
47 | + $request = new Request("GET", '?' . http_build_query($params)); |
|
48 | 48 | return $this->client->send($request); |
49 | 49 | } |
50 | 50 | } |
51 | 51 | \ No newline at end of file |
@@ -12,7 +12,7 @@ |
||
12 | 12 | public $thread_id; |
13 | 13 | public $thread_replies; |
14 | 14 | public $thread_views; |
15 | - public $original_poster=[]; |
|
15 | + public $original_poster = []; |
|
16 | 16 | public $original_post = []; |
17 | 17 | public $recent_poster = []; |
18 | 18 | public $recent_post; |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function isRedditor($redditUsername) |
27 | 27 | { |
28 | - if (preg_match("%^((https?://)|reddit.com/u(ser)?/" . $redditUsername . "/?\s*(<br />)?\\n%i",$this->bio) == 1) { |
|
28 | + if (preg_match("%^((https?://)|reddit.com/u(ser)?/" . $redditUsername . "/?\s*(<br />)?\\n%i", $this->bio) == 1) { |
|
29 | 29 | return true; |
30 | 30 | } |
31 | 31 |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | if ($argumentCount == 0) |
66 | 66 | throw new \InvalidArgumentException("Requires an argument"); |
67 | 67 | |
68 | - if ($argumentCount > 0 && $argumentCount< 2) |
|
68 | + if ($argumentCount > 0 && $argumentCount < 2) |
|
69 | 69 | return $this->find($arguments[0], $name, $this->systems[$name]['base_action']); |
70 | 70 | |
71 | 71 | if ($argumentCount == 2) { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | return $this->find($id, $name, $profileType); |
76 | 76 | } |
77 | 77 | |
78 | - if ($argumentCount == 4 ) { |
|
78 | + if ($argumentCount == 4) { |
|
79 | 79 | list($id, $profileType, $cache, $raw) = $arguments; |
80 | 80 | return $this->find($id, $name, $profileType, $cache, $raw); |
81 | 81 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | private function fillModel($model, $fillData) |
188 | 188 | { |
189 | 189 | if (is_array($model)) { |
190 | - list($className, $dataRoot, $idName) =$model; |
|
190 | + list($className, $dataRoot, $idName) = $model; |
|
191 | 191 | $object = new \ReflectionClass('StarCitizen\Models\Store'); |
192 | 192 | return $object->newInstance($fillData, $className, $dataRoot, $idName); |
193 | 193 | } else { |