Completed
Push — master ( f40236...574f45 )
by Sergey
03:09
created
src/Api/Endpoints/Traits/CrudEndpoint.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -5,48 +5,48 @@
 block discarded – undo
5 5
 trait CrudEndpoint
6 6
 {
7 7
 
8
-    /**
9
-     * @param array $attributes
10
-     * @return array
11
-     */
12
-    public function create(array $attributes)
13
-    {
14
-        return $this
15
-            ->getHttp()
16
-            ->post(
17
-                $this->makeRequestUrl(),
18
-                $attributes,
19
-                $this->getHeaders()
20
-            );
21
-    }
8
+	/**
9
+	 * @param array $attributes
10
+	 * @return array
11
+	 */
12
+	public function create(array $attributes)
13
+	{
14
+		return $this
15
+			->getHttp()
16
+			->post(
17
+				$this->makeRequestUrl(),
18
+				$attributes,
19
+				$this->getHeaders()
20
+			);
21
+	}
22 22
 
23
-    /**
24
-     * @param string $itemId
25
-     * @param array $attributes
26
-     * @return mixed
27
-     */
28
-    public function update($itemId, array $attributes)
29
-    {
30
-        return $this
31
-            ->getHttp()
32
-            ->put(
33
-                $this->makeRequestUrl($itemId),
34
-                $attributes,
35
-                $this->getHeaders()
36
-            );
37
-    }
23
+	/**
24
+	 * @param string $itemId
25
+	 * @param array $attributes
26
+	 * @return mixed
27
+	 */
28
+	public function update($itemId, array $attributes)
29
+	{
30
+		return $this
31
+			->getHttp()
32
+			->put(
33
+				$this->makeRequestUrl($itemId),
34
+				$attributes,
35
+				$this->getHeaders()
36
+			);
37
+	}
38 38
 
39
-    /**
40
-     * @param string $itemId
41
-     * @return mixed
42
-     */
43
-    public function delete($itemId)
44
-    {
45
-        return $this
46
-            ->getHttp()
47
-            ->delete(
48
-                $this->makeRequestUrl($itemId),
49
-                $this->getHeaders()
50
-            );
51
-    }
39
+	/**
40
+	 * @param string $itemId
41
+	 * @return mixed
42
+	 */
43
+	public function delete($itemId)
44
+	{
45
+		return $this
46
+			->getHttp()
47
+			->delete(
48
+				$this->makeRequestUrl($itemId),
49
+				$this->getHeaders()
50
+			);
51
+	}
52 52
 }
Please login to merge, or discard this patch.