@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function getFlags() |
46 | 46 | { |
47 | - if(empty($this->entity[$this->field][ConfigInterface::FLAGS])) { |
|
47 | + if (empty($this->entity[$this->field][ConfigInterface::FLAGS])) { |
|
48 | 48 | throw new AttributesException(ErrorsInterface::JSON_API_ERRORS[ErrorsInterface::HTTP_CODE_FSM_FLAGS], ErrorsInterface::HTTP_CODE_FSM_FLAGS); |
49 | 49 | } |
50 | 50 | return $this->entity[$this->field][ConfigInterface::FLAGS]; |
@@ -16,17 +16,17 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * @var int |
18 | 18 | */ |
19 | - public int $id = 0; |
|
19 | + public int $id = 0; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @var int |
23 | 23 | */ |
24 | - public int $limit = ModelsInterface::DEFAULT_LIMIT; |
|
24 | + public int $limit = ModelsInterface::DEFAULT_LIMIT; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @var int |
28 | 28 | */ |
29 | - public int $page = ModelsInterface::DEFAULT_PAGE; |
|
29 | + public int $page = ModelsInterface::DEFAULT_PAGE; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @var array |
@@ -36,12 +36,12 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * @var array|string[] |
38 | 38 | */ |
39 | - public array $data = ModelsInterface::DEFAULT_DATA; |
|
39 | + public array $data = ModelsInterface::DEFAULT_DATA; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * @var array |
43 | 43 | */ |
44 | - public array $filter = []; |
|
44 | + public array $filter = []; |
|
45 | 45 | |
46 | 46 | public $formRequest; |
47 | 47 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | { |
109 | 109 | // id must be there anyway |
110 | 110 | $this->data = $data; |
111 | - if(\in_array(ModelsInterface::ID, $this->data, true) === false) |
|
111 | + if (\in_array(ModelsInterface::ID, $this->data, true) === false) |
|
112 | 112 | { |
113 | 113 | $this->data[] = ModelsInterface::ID; |
114 | 114 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | /** |
29 | 29 | * @var string |
30 | 30 | */ |
31 | - protected string $sourceCode = ''; |
|
31 | + protected string $sourceCode = ''; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Tests constructor. |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * @var string |
40 | 40 | */ |
41 | - protected string $sourceCode = ''; |
|
41 | + protected string $sourceCode = ''; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @var bool |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $formRequest = new $formRequestEntity(); |
87 | 87 | if (method_exists($formRequest, ModelsInterface::MODEL_METHOD_RELATIONS)) { |
88 | 88 | $this->sourceCode .= PHP_EOL; |
89 | - $relations = $formRequest->relations(); |
|
89 | + $relations = $formRequest->relations(); |
|
90 | 90 | foreach ($relations as $relationEntity) { |
91 | 91 | $ucEntitty = MigrationsHelper::getObjectName($relationEntity); |
92 | 92 | // determine if ManyToMany, OneToMany, OneToOne rels |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /** @var BaseFormRequest $formRequest * */ |
177 | 177 | $formRequest = new $formRequestEntity(); |
178 | 178 | if (method_exists($formRequest, ModelsInterface::MODEL_METHOD_RELATIONS)) { |
179 | - $relations = $formRequest->relations(); |
|
179 | + $relations = $formRequest->relations(); |
|
180 | 180 | $this->sourceCode .= PHP_EOL; // margin top from props |
181 | 181 | foreach ($relations as $relationEntity) { |
182 | 182 | $ucEntitty = ucfirst($relationEntity); |
@@ -11,12 +11,12 @@ discard block |
||
11 | 11 | /** |
12 | 12 | * @var mixed|null |
13 | 13 | */ |
14 | - private $entity = []; |
|
14 | + private $entity = []; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * @var int|string|null |
18 | 18 | */ |
19 | - private $field = null; |
|
19 | + private $field = null; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @var bool |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * @var mixed|string |
28 | 28 | */ |
29 | - private $language = ConfigInterface::DEFAULT_LANGUAGE; |
|
29 | + private $language = ConfigInterface::DEFAULT_LANGUAGE; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @var false|int|null |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $this->isEnabled = empty($this->entity[$this->field][ConfigInterface::ENABLED]) ? false : true; |
44 | 44 | $this->language = empty($this->entity[$this->field][ConfigInterface::LANGUAGE]) ? ConfigInterface::DEFAULT_LANGUAGE |
45 | 45 | : $this->entity[$this->field][ConfigInterface::LANGUAGE]; |
46 | - if($this->isEnabled === true) { |
|
46 | + if ($this->isEnabled === true) { |
|
47 | 47 | $this->speLink = pspell_new($this->language, '', '', '', PSPELL_FAST); |
48 | 48 | } |
49 | 49 | } |
@@ -59,9 +59,9 @@ discard block |
||
59 | 59 | $failed = []; |
60 | 60 | $cleanText = $this->cleanText($text); |
61 | 61 | $words = explode(PhpInterface::SPACE, $cleanText); |
62 | - foreach($words as $k => $word) { |
|
62 | + foreach ($words as $k => $word) { |
|
63 | 63 | $pass = pspell_check($this->speLink, $word); |
64 | - if($pass === false) { |
|
64 | + if ($pass === false) { |
|
65 | 65 | $failed[] = $word; |
66 | 66 | } |
67 | 67 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * @var mixed|null |
16 | 16 | */ |
17 | - private $entity = []; |
|
17 | + private $entity = []; |
|
18 | 18 | private $isEnabled; |
19 | 19 | |
20 | 20 | /** |
@@ -61,7 +61,7 @@ |
||
61 | 61 | /** |
62 | 62 | * @var bool |
63 | 63 | */ |
64 | - private bool $relsRemoved = false; |
|
64 | + private bool $relsRemoved = false; |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * @var array |