Skip to content

Commit 4a17d50

Browse files
authoredJun 16, 2023
Apply fixes from StyleCI (#157)
1 parent 8f80b4a commit 4a17d50

19 files changed

+55
-55
lines changed
 

‎src/Console/Commands/MakeNotionModel.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ public function handle()
6363
$propertyTitleMap .= " '$propName' => '{$propertyInfo->getTitle()}',\n";
6464
}
6565

66-
$contents = "<?php
66+
$contents = '<?php
6767
6868
69-
";
69+
';
7070
File::ensureDirectoryExists('app/NotionModels');
7171

7272
File::put("app/NotionModels/$databaseName.php", $contents);

‎src/Endpoints/Database.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function getPostData(): array
9898
}
9999

100100
/**
101-
* @param $filter
101+
* @param $filter
102102
* @return Database $this
103103
*
104104
* @throws HandlingException

‎src/Entities/Blocks/Block.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function setRawContent($rawContent)
142142
}
143143

144144
/**
145-
* @param $rawContent
145+
* @param $rawContent
146146
* @return Block
147147
*
148148
* @throws HandlingException

‎src/Entities/Page.php

+30-30
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ private function fillPageUrl(): void
186186
}
187187

188188
/**
189-
* @param $propertyTitle
190-
* @param $property
189+
* @param $propertyTitle
190+
* @param $property
191191
* @return Page
192192
*/
193193
public function set(string $propertyKey, Property $property): Page
@@ -204,8 +204,8 @@ public function set(string $propertyKey, Property $property): Page
204204
}
205205

206206
/**
207-
* @param $propertyTitle
208-
* @param $number
207+
* @param $propertyTitle
208+
* @param $number
209209
* @return Page
210210
*/
211211
public function setNumber(string $propertyTitle, float $number): Page
@@ -216,8 +216,8 @@ public function setNumber(string $propertyTitle, float $number): Page
216216
}
217217

218218
/**
219-
* @param $propertyTitle
220-
* @param $text
219+
* @param $propertyTitle
220+
* @param $text
221221
* @return Page
222222
*/
223223
public function setTitle(string $propertyTitle, string $text): Page
@@ -228,8 +228,8 @@ public function setTitle(string $propertyTitle, string $text): Page
228228
}
229229

230230
/**
231-
* @param $propertyTitle
232-
* @param $text
231+
* @param $propertyTitle
232+
* @param $text
233233
* @return Page
234234
*/
235235
public function setText(string $propertyTitle, string $text): Page
@@ -240,8 +240,8 @@ public function setText(string $propertyTitle, string $text): Page
240240
}
241241

242242
/**
243-
* @param $propertyTitle
244-
* @param $name
243+
* @param $propertyTitle
244+
* @param $name
245245
* @return Page
246246
*/
247247
public function setSelect(string $propertyTitle, string $name): Page
@@ -252,8 +252,8 @@ public function setSelect(string $propertyTitle, string $name): Page
252252
}
253253

254254
/**
255-
* @param $propertyTitle
256-
* @param $url
255+
* @param $propertyTitle
256+
* @param $url
257257
* @return Page
258258
*/
259259
public function setUrl(string $propertyTitle, string $url): Page
@@ -264,8 +264,8 @@ public function setUrl(string $propertyTitle, string $url): Page
264264
}
265265

266266
/**
267-
* @param $propertyTitle
268-
* @param $phoneNumber
267+
* @param $propertyTitle
268+
* @param $phoneNumber
269269
* @return Page
270270
*/
271271
public function setPhoneNumber(string $propertyTitle, string $phoneNumber): Page
@@ -276,8 +276,8 @@ public function setPhoneNumber(string $propertyTitle, string $phoneNumber): Page
276276
}
277277

278278
/**
279-
* @param $propertyTitle
280-
* @param $email
279+
* @param $propertyTitle
280+
* @param $email
281281
* @return Page
282282
*/
283283
public function setEmail(string $propertyTitle, string $email): Page
@@ -288,8 +288,8 @@ public function setEmail(string $propertyTitle, string $email): Page
288288
}
289289

290290
/**
291-
* @param $propertyTitle
292-
* @param $names
291+
* @param $propertyTitle
292+
* @param $names
293293
* @return Page
294294
*/
295295
public function setMultiSelect(string $propertyTitle, array $names): Page
@@ -300,8 +300,8 @@ public function setMultiSelect(string $propertyTitle, array $names): Page
300300
}
301301

302302
/**
303-
* @param $propertyTitle
304-
* @param $checked
303+
* @param $propertyTitle
304+
* @param $checked
305305
* @return Page
306306
*/
307307
public function setCheckbox(string $propertyTitle, bool $checked): Page
@@ -312,9 +312,9 @@ public function setCheckbox(string $propertyTitle, bool $checked): Page
312312
}
313313

314314
/**
315-
* @param $propertyTitle
316-
* @param $start
317-
* @param $end
315+
* @param $propertyTitle
316+
* @param $start
317+
* @param $end
318318
* @return Page
319319
*/
320320
public function setDate(string $propertyTitle, DateTime $start, ?DateTime $end = null): Page
@@ -325,9 +325,9 @@ public function setDate(string $propertyTitle, DateTime $start, ?DateTime $end =
325325
}
326326

327327
/**
328-
* @param $propertyTitle
329-
* @param $start
330-
* @param $end
328+
* @param $propertyTitle
329+
* @param $start
330+
* @param $end
331331
* @return Page
332332
*/
333333
public function setDateTime(string $propertyTitle, DateTime $start, ?DateTime $end = null): Page
@@ -338,8 +338,8 @@ public function setDateTime(string $propertyTitle, DateTime $start, ?DateTime $e
338338
}
339339

340340
/**
341-
* @param $propertyTitle
342-
* @param $relationIds
341+
* @param $propertyTitle
342+
* @param $relationIds
343343
* @return Page
344344
*/
345345
public function setRelation(string $propertyTitle, array $relationIds): Page
@@ -350,8 +350,8 @@ public function setRelation(string $propertyTitle, array $relationIds): Page
350350
}
351351

352352
/**
353-
* @param $propertyTitle
354-
* @param $userIds
353+
* @param $propertyTitle
354+
* @param $userIds
355355
* @return Page
356356
*/
357357
public function setPeople(string $propertyTitle, array $userIds): Page

‎src/Entities/Properties/Checkbox.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class Checkbox extends Property implements Modifiable
1212
{
1313
/**
14-
* @param $checked
14+
* @param $checked
1515
* @return Checkbox
1616
*/
1717
public static function value(bool $checked): Checkbox

‎src/Entities/Properties/Date.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
class Date extends Property implements Modifiable
1515
{
1616
/**
17-
* @param $start
18-
* @param $end
17+
* @param $start
18+
* @param $end
1919
* @return Date
2020
*/
2121
public static function value(?DateTime $start, ?DateTime $end = null): Date
@@ -46,8 +46,8 @@ public static function value(?DateTime $start, ?DateTime $end = null): Date
4646
}
4747

4848
/**
49-
* @param $start
50-
* @param $end
49+
* @param $start
50+
* @param $end
5151
* @return Date
5252
*/
5353
public static function valueWithTime(?DateTime $start, ?DateTime $end = null): Date

‎src/Entities/Properties/Email.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class Email extends Property implements Modifiable
1111
{
1212
/**
13-
* @param $email
13+
* @param $email
1414
* @return Email
1515
*/
1616
public static function value(string $email): Email

‎src/Entities/Properties/MultiSelect.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MultiSelect extends Property implements Modifiable
1919
private Collection $options;
2020

2121
/**
22-
* @param $names
22+
* @param $names
2323
* @return MultiSelect
2424
*/
2525
public static function value(array $names): MultiSelect

‎src/Entities/Properties/People.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class People extends Property implements Modifiable
1414
{
1515
/**
16-
* @param $userIds
16+
* @param $userIds
1717
* @return People
1818
*/
1919
public static function value(array $userIds): People

‎src/Entities/Properties/PhoneNumber.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class PhoneNumber extends Property implements Modifiable
1111
{
1212
/**
13-
* @param $phoneNumber
13+
* @param $phoneNumber
1414
* @return PhoneNumber
1515
*/
1616
public static function value(string $phoneNumber): PhoneNumber

‎src/Entities/Properties/Property.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function getContent()
157157

158158
/**
159159
* @param string $propertyKey
160-
* @param $rawContent
160+
* @param $rawContent
161161
* @return Property
162162
*
163163
* @throws HandlingException

‎src/Entities/Properties/Relation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class Relation extends Property implements Modifiable
1212
{
1313
/**
14-
* @param $relationIds
14+
* @param $relationIds
1515
* @return Relation
1616
*/
1717
public static function value(array $relationIds): Relation

‎src/Entities/Properties/Select.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Select extends Property implements Modifiable
1818
private Collection $options;
1919

2020
/**
21-
* @param $name
21+
* @param $name
2222
* @return Select
2323
*/
2424
public static function value(string $name): Select

‎src/Entities/Properties/Text.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Text extends Property implements Modifiable
1717
protected string $plainText = '';
1818

1919
/**
20-
* @param $text
20+
* @param $text
2121
* @return Text
2222
*/
2323
public static function value($text): Text

‎src/Entities/Properties/Title.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Title extends Property implements Modifiable
1717
protected string $plainText = '';
1818

1919
/**
20-
* @param $text
20+
* @param $text
2121
* @return Title
2222
*/
2323
public static function value($text): Title

‎src/Entities/Properties/Url.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class Url extends Property implements Modifiable
1111
{
1212
/**
13-
* @param $url
13+
* @param $url
1414
* @return Url
1515
*/
1616
public static function value(string $url): Url

‎src/Entities/PropertyItems/SelectItem.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ public function getName(): string
7272
}
7373

7474
/**
75-
* @param $color
75+
* @param $color
7676
*/
7777
public function setColor($color): void
7878
{
7979
$this->color = $color;
8080
}
8181

8282
/**
83-
* @param $name
83+
* @param $name
8484
*/
8585
public function setName($name): void
8686
{

‎src/Query/Filters/Filter.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct(
5353
*
5454
* @param string $property
5555
* @param string $comparisonOperator
56-
* @param $value
56+
* @param $value
5757
* @return Filter
5858
*/
5959
public static function textFilter(string $property, string $comparisonOperator, string $value): Filter
@@ -160,8 +160,8 @@ public static function filterQuery(Collection $filter): array
160160
/**
161161
* Checks if the given comparison operator is valid for the given filter type.
162162
*
163-
* @param $filterType
164-
* @param $operator
163+
* @param $filterType
164+
* @param $operator
165165
*
166166
* @throws HandlingException
167167
*/

‎tests/EndpointBlocksTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function classProvider(): array
317317
*
318318
* @dataProvider classProvider
319319
*
320-
* @param $entityClass
320+
* @param $entityClass
321321
*/
322322
public function it_throws_an_handling_exception_for_wrong_type($entityClass)
323323
{

0 commit comments

Comments
 (0)
Please sign in to comment.