Skip to content

Commit a477a68

Browse files
Convert tab indents to spaces
1 parent 2947e7a commit a477a68

File tree

5 files changed

+39
-39
lines changed

5 files changed

+39
-39
lines changed

src/Regex.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@
3232
*/
3333
class Regex extends BinaryOperator implements BooleanType
3434
{
35-
use BooleanTypeTrait;
35+
use BooleanTypeTrait;
3636

37-
/**
38-
* @inheritDoc
39-
*/
40-
public function __construct(StringType $left, StringType $right)
41-
{
42-
parent::__construct($left, $right);
43-
}
37+
/**
38+
* @inheritDoc
39+
*/
40+
public function __construct(StringType $left, StringType $right)
41+
{
42+
parent::__construct($left, $right);
43+
}
4444

45-
/**
46-
* @inheritDoc
47-
*/
48-
protected function getOperator(): string
49-
{
50-
return "=~";
51-
}
45+
/**
46+
* @inheritDoc
47+
*/
48+
protected function getOperator(): string
49+
{
50+
return "=~";
51+
}
5252
}

src/Traits/StringTypeTrait.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ public function startsWith(StringType $right): StartsWith
6767
return new StartsWith($this, $right);
6868
}
6969

70-
/**
71-
* Perform a regex comparison with the given expression.
72-
*
73-
* @param StringType $right
74-
* @return Regex
75-
*/
70+
/**
71+
* Perform a regex comparison with the given expression.
72+
*
73+
* @param StringType $right
74+
* @return Regex
75+
*/
7676
public function regex(StringType $right): Regex
77-
{
78-
return new Regex($this, $right);
79-
}
77+
{
78+
return new Regex($this, $right);
79+
}
8080
}

src/Types/PropertyTypes/StringType.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ public function endsWith(StringType $right): EndsWith;
5555
*/
5656
public function startsWith(StringType $right): StartsWith;
5757

58-
/**
59-
* Perform a regex comparison with the given expression.
60-
*
61-
* @param StringType $right
62-
* @return Regex
63-
*/
58+
/**
59+
* Perform a regex comparison with the given expression.
60+
*
61+
* @param StringType $right
62+
* @return Regex
63+
*/
6464
public function regex(StringType $right): Regex;
6565
}

tests/Unit/RegexTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ public function testToQuery()
4444

4545
public function testCannotBeNested()
4646
{
47-
$regex = new Regex($this->getQueryConvertableMock(StringType::class, "a"), $this->getQueryConvertableMock(StringType::class, "b"));
47+
$regex = new Regex($this->getQueryConvertableMock(StringType::class, "a"), $this->getQueryConvertableMock(StringType::class, "b"));
4848

4949
$this->expectException(TypeError::class);
5050

51-
$regex = new Regex($regex, $regex);
51+
$regex = new Regex($regex, $regex);
5252

53-
$regex->toQuery();
53+
$regex->toQuery();
5454
}
5555

5656
public function testDoesNotAcceptAnyTypeAsOperands()
5757
{
5858
$this->expectException(TypeError::class);
5959

60-
$regex = new Regex($this->getQueryConvertableMock(AnyType::class, "a"), $this->getQueryConvertableMock(AnyType::class, "b"));
60+
$regex = new Regex($this->getQueryConvertableMock(AnyType::class, "a"), $this->getQueryConvertableMock(AnyType::class, "b"));
6161

62-
$regex->toQuery();
62+
$regex->toQuery();
6363
}
6464
}

tests/Unit/Traits/StringTypeTraitTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ public function testStartsWith()
7575
}
7676

7777
public function testRegex()
78-
{
79-
$regex = $this->a->regex($this->b);
78+
{
79+
$regex = $this->a->regex($this->b);
8080

81-
$this->assertInstanceOf(Regex::class, $regex);
82-
}
81+
$this->assertInstanceOf(Regex::class, $regex);
82+
}
8383
}

0 commit comments

Comments
 (0)