Completed
Push — master ( b1bd72...501a41 )
by Sergey
12:53
created
src/Api/Endpoints/Widgets.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -4,26 +4,26 @@
 block discarded – undo
4 4
 
5 5
 class Widgets extends CrudEndpoint
6 6
 {
7
-    /**
8
-     * @var string
9
-     */
10
-    protected $endpoint = 'widgets';
7
+	/**
8
+	 * @var string
9
+	 */
10
+	protected $endpoint = 'widgets';
11 11
 
12
-    /**
13
-     * @param string $itemId
14
-     * @param string|null $collectionId
15
-     * @return mixed
16
-     */
17
-    public function delete($itemId, $collectionId = null)
18
-    {
19
-        $attributes = $collectionId ? ['collectionId' => $collectionId] : [];
12
+	/**
13
+	 * @param string $itemId
14
+	 * @param string|null $collectionId
15
+	 * @return mixed
16
+	 */
17
+	public function delete($itemId, $collectionId = null)
18
+	{
19
+		$attributes = $collectionId ? ['collectionId' => $collectionId] : [];
20 20
 
21
-        return $this
22
-            ->getHttp()
23
-            ->delete(
24
-                $this->makeRequestUrl($itemId),
25
-                $attributes,
26
-                $this->getHeaders()
27
-            );
28
-    }
21
+		return $this
22
+			->getHttp()
23
+			->delete(
24
+				$this->makeRequestUrl($itemId),
25
+				$attributes,
26
+				$this->getHeaders()
27
+			);
28
+	}
29 29
 }
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
src/Api/Endpoints/Organizations.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -5,31 +5,31 @@
 block discarded – undo
5 5
 
6 6
 class Organizations extends CrudEndpoint
7 7
 {
8
-    /**
9
-     * @var string
10
-     */
11
-    protected $endpoint = 'organizations';
8
+	/**
9
+	 * @var string
10
+	 */
11
+	protected $endpoint = 'organizations';
12 12
 
13
-    /**
14
-     * @param string $id
15
-     * @return array
16
-     */
17
-    public function getById($id)
18
-    {
19
-        $this->headers['organizationId'] = $id;
13
+	/**
14
+	 * @param string $id
15
+	 * @return array
16
+	 */
17
+	public function getById($id)
18
+	{
19
+		$this->headers['organizationId'] = $id;
20 20
 
21
-        return parent::getById($id);
22
-    }
21
+		return parent::getById($id);
22
+	}
23 23
 
24
-    /**
25
-     * @param string $itemId
26
-     * @param array $attributes
27
-     * @return mixed
28
-     */
29
-    public function update($itemId, array $attributes)
30
-    {
31
-        $this->headers['organizationId'] = $itemId;
24
+	/**
25
+	 * @param string $itemId
26
+	 * @param array $attributes
27
+	 * @return mixed
28
+	 */
29
+	public function update($itemId, array $attributes)
30
+	{
31
+		$this->headers['organizationId'] = $itemId;
32 32
 
33
-        return parent::update($itemId, $attributes);
34
-    }
33
+		return parent::update($itemId, $attributes);
34
+	}
35 35
 }
36 36
\ No newline at end of file
Please login to merge, or discard this patch.