Passed
Push — master ( c71e84...1b242c )
by Aleksandr
02:52 queued 01:26
created
src/request/MessagesRequest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 	{
64 64
 		$params = [];
65 65
 		foreach ($config instanceof \carono\etxtru\ConfigAbstract ? $config->toArray() : $config as $key => $value) {
66
-		    $params[$key] = $value;
66
+			$params[$key] = $value;
67 67
 		}
68 68
 		return $this->getClient()->getContent('messages.readPrivate', $params, 'carono\etxtru\response\ReadPrivateResponse');
69 69
 	}
Please login to merge, or discard this patch.
src/request/ArticlesArchiveRequest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 	{
19 19
 		$params = [];
20 20
 		foreach ($config instanceof \carono\etxtru\ConfigAbstract ? $config->toArray() : $config as $key => $value) {
21
-		    $params[$key] = $value;
21
+			$params[$key] = $value;
22 22
 		}
23 23
 		return $this->getClient()->getContent('articles_archive.getList', $params, 'carono\etxtru\response\GetListResponse');
24 24
 	}
Please login to merge, or discard this patch.
src/request/TasksArchiveRequest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 	{
19 19
 		$params = [];
20 20
 		foreach ($config instanceof \carono\etxtru\ConfigAbstract ? $config->toArray() : $config as $key => $value) {
21
-		    $params[$key] = $value;
21
+			$params[$key] = $value;
22 22
 		}
23 23
 		return $this->getClient()->getContent('tasks_archive.listTasks', $params, 'carono\etxtru\response\ListTasksResponse');
24 24
 	}
Please login to merge, or discard this patch.
src/request/CorrectionRequest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	{
19 19
 		$params = [];
20 20
 		foreach ($config instanceof \carono\etxtru\ConfigAbstract ? $config->toArray() : $config as $key => $value) {
21
-		    $params[$key] = $value;
21
+			$params[$key] = $value;
22 22
 		}
23 23
 		return $this->getClient()->getContent('correction.add', $params, 'carono\etxtru\response\AddResponse');
24 24
 	}
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	{
35 35
 		$params = [];
36 36
 		foreach ($config instanceof \carono\etxtru\ConfigAbstract ? $config->toArray() : $config as $key => $value) {
37
-		    $params[$key] = $value;
37
+			$params[$key] = $value;
38 38
 		}
39 39
 		return $this->getClient()->getContent('correction.import', $params, 'carono\etxtru\response\ImportResponse');
40 40
 	}
Please login to merge, or discard this patch.
src/request/ArticlesRequest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 	{
20 20
 		$params = [];
21 21
 		foreach ($config instanceof \carono\etxtru\ConfigAbstract ? $config->toArray() : $config as $key => $value) {
22
-		    $params[$key] = $value;
22
+			$params[$key] = $value;
23 23
 		}
24 24
 		return $this->getClient()->getContent('articles.getList', $params, 'carono\etxtru\response\GetListResponse');
25 25
 	}
Please login to merge, or discard this patch.
src/request/TasksRequest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	{
19 19
 		$params = [];
20 20
 		foreach ($config instanceof \carono\etxtru\ConfigAbstract ? $config->toArray() : $config as $key => $value) {
21
-		    $params[$key] = $value;
21
+			$params[$key] = $value;
22 22
 		}
23 23
 		return $this->getClient()->getContent('tasks.listTasks', $params, 'carono\etxtru\response\ListTasksResponse');
24 24
 	}
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 	{
181 181
 		$params = [];
182 182
 		foreach ($config instanceof \carono\etxtru\ConfigAbstract ? $config->toArray() : $config as $key => $value) {
183
-		    $params[$key] = $value;
183
+			$params[$key] = $value;
184 184
 		}
185 185
 		return $this->getClient()->getContent('tasks.saveTask', $params, 'carono\etxtru\response\SaveTaskResponse');
186 186
 	}
Please login to merge, or discard this patch.
src/request/UsersRequest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	{
19 19
 		$params = [];
20 20
 		foreach ($config instanceof \carono\etxtru\ConfigAbstract ? $config->toArray() : $config as $key => $value) {
21
-		    $params[$key] = $value;
21
+			$params[$key] = $value;
22 22
 		}
23 23
 		return $this->getClient()->getContent('users.getList', $params, 'carono\etxtru\response\GetListResponse');
24 24
 	}
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 	{
120 120
 		$params = [];
121 121
 		foreach ($config instanceof \carono\etxtru\ConfigAbstract ? $config->toArray() : $config as $key => $value) {
122
-		    $params[$key] = $value;
122
+			$params[$key] = $value;
123 123
 		}
124 124
 		return $this->getClient()->getContent('users.setReport', $params, 'carono\etxtru\response\SetReportResponse');
125 125
 	}
Please login to merge, or discard this patch.
src/ResponseAbstract.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -6,22 +6,22 @@
 block discarded – undo
6 6
 
7 7
 abstract class ResponseAbstract extends ArrayObject
8 8
 {
9
-    /**
10
-     * @var boolean
11
-     */
12
-    public $success;
13
-    /**
14
-     * @var string
15
-     */
16
-    public $error;
9
+	/**
10
+	 * @var boolean
11
+	 */
12
+	public $success;
13
+	/**
14
+	 * @var string
15
+	 */
16
+	public $error;
17 17
 
18 18
 
19
-    /**
20
-     * @param $property
21
-     * @return mixed|null
22
-     */
23
-    public function getResponseClass($property)
24
-    {
25
-        return isset($this->_responseClasses[$property]) ? $this->_responseClasses[$property] : null;
26
-    }
19
+	/**
20
+	 * @param $property
21
+	 * @return mixed|null
22
+	 */
23
+	public function getResponseClass($property)
24
+	{
25
+		return isset($this->_responseClasses[$property]) ? $this->_responseClasses[$property] : null;
26
+	}
27 27
 }
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
src/ArrayObject.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@
 block discarded – undo
6 6
 
7 7
 class ArrayObject extends \ArrayObject
8 8
 {
9
-    /**
10
-     * ResponseAbstract constructor.
11
-     *
12
-     * @param array $input
13
-     */
14
-    public function __construct($input = [])
15
-    {
16
-        parent::__construct($input, self::ARRAY_AS_PROPS, "ArrayIterator");
17
-    }
9
+	/**
10
+	 * ResponseAbstract constructor.
11
+	 *
12
+	 * @param array $input
13
+	 */
14
+	public function __construct($input = [])
15
+	{
16
+		parent::__construct($input, self::ARRAY_AS_PROPS, "ArrayIterator");
17
+	}
18 18
 
19
-    public function toArray()
20
-    {
21
-        $result = [];
22
-        foreach ($this as $key => $value) {
23
-            $result[$key] = $value;
24
-        }
25
-        foreach ((new \ReflectionClass($this))->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) {
26
-            $result[$property->name] = $this->{$property->name};
27
-        }
28
-        return $result;
29
-    }
19
+	public function toArray()
20
+	{
21
+		$result = [];
22
+		foreach ($this as $key => $value) {
23
+			$result[$key] = $value;
24
+		}
25
+		foreach ((new \ReflectionClass($this))->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) {
26
+			$result[$property->name] = $this->{$property->name};
27
+		}
28
+		return $result;
29
+	}
30 30
 }
31 31
\ No newline at end of file
Please login to merge, or discard this patch.