Missing return types

This commit is contained in:
bkrukowski 2016-10-14 20:25:52 +02:00
parent beb514e0b3
commit b4a4050399
9 changed files with 19 additions and 19 deletions

View File

@ -23,7 +23,7 @@ class EditableEmailTest extends \PHPUnit_Framework_TestCase
$this->assertSame($email->getDomain(), $new->getDomain()); $this->assertSame($email->getDomain(), $new->getDomain());
} }
public function providerRemoveFromLocalPart() public function providerRemoveFromLocalPart() : array
{ {
return [ return [
[new Email('jane.doe.1990@gmail.com'), '.'], [new Email('jane.doe.1990@gmail.com'), '.'],
@ -47,7 +47,7 @@ class EditableEmailTest extends \PHPUnit_Framework_TestCase
$this->assertSame($email->getDomain(), $editable->getDomain()); $this->assertSame($email->getDomain(), $editable->getDomain());
} }
public function providerRemoveSuffixAlias() public function providerRemoveSuffixAlias() : array
{ {
return [ return [
[new Email('John.Doe+alias@gmail.com', true), '+', 'John.Doe@gmail.com'], [new Email('John.Doe+alias@gmail.com', true), '+', 'John.Doe@gmail.com'],
@ -71,7 +71,7 @@ class EditableEmailTest extends \PHPUnit_Framework_TestCase
$this->assertSame($email->getLocalPart(), $new->getLocalPart()); $this->assertSame($email->getLocalPart(), $new->getLocalPart());
} }
public function providerSetDomain() public function providerSetDomain() : array
{ {
return [ return [
[new Email('jane.doe@foo.bar'), 'gmail.com'], [new Email('jane.doe@foo.bar'), 'gmail.com'],
@ -95,7 +95,7 @@ class EditableEmailTest extends \PHPUnit_Framework_TestCase
$this->assertSame($email->getDomain(), $new->getDomain()); $this->assertSame($email->getDomain(), $new->getDomain());
} }
public function providerSetLocalPart() public function providerSetLocalPart() : array
{ {
return [ return [
[new Email('jane.doe@foo.bar'), 'jane'], [new Email('jane.doe@foo.bar'), 'jane'],
@ -120,7 +120,7 @@ class EditableEmailTest extends \PHPUnit_Framework_TestCase
$this->assertSame($email->getDomain(), $new->getDomain()); $this->assertSame($email->getDomain(), $new->getDomain());
} }
public function providerLowerCaseLocalPartIf() public function providerLowerCaseLocalPartIf() : array
{ {
return [ return [
[new Email('john.doe@example.com', true), false, true], [new Email('john.doe@example.com', true), false, true],

View File

@ -33,7 +33,7 @@ class EmailTest extends \PHPUnit_Framework_TestCase
$this->assertSame($domain, $object->getDomain()); $this->assertSame($domain, $object->getDomain());
} }
public function providerConstructor() public function providerConstructor() : array
{ {
return [ return [
['john doe@example.com', true], ['john doe@example.com', true],

View File

@ -20,7 +20,7 @@ class AppsGoogleComTest extends \PHPUnit_Framework_TestCase
$this->assertSame($result, (new AppsGoogleCom())->isSupported(new Email('Jane.Doe@' . $domain, true))); $this->assertSame($result, (new AppsGoogleCom())->isSupported(new Email('Jane.Doe@' . $domain, true)));
} }
public function providerIsSupported() public function providerIsSupported() : array
{ {
return [ return [
['example.com', false], ['example.com', false],

View File

@ -20,7 +20,7 @@ class GmailComTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($outputEmail, (new GmailCom())->getPrimaryEmail(new Email($inputEmail))); $this->assertEquals($outputEmail, (new GmailCom())->getPrimaryEmail(new Email($inputEmail)));
} }
public function providerGetPrimaryEmail() public function providerGetPrimaryEmail() : array
{ {
return [ return [
['foo.bar@gmail.com', 'foobar@gmail.com'], ['foo.bar@gmail.com', 'foobar@gmail.com'],
@ -42,7 +42,7 @@ class GmailComTest extends \PHPUnit_Framework_TestCase
$this->assertSame($result, (new GmailCom())->isSupported(new Email('Jane.Doe@' . $domain))); $this->assertSame($result, (new GmailCom())->isSupported(new Email('Jane.Doe@' . $domain)));
} }
public function providerIsSupported() public function providerIsSupported() : array
{ {
return [ return [
['gmail.com', true], ['gmail.com', true],

View File

@ -21,7 +21,7 @@ class MultiDomainTest extends \PHPUnit_Framework_TestCase
$this->assertSame($expected, $mock->isSupported(new Email('Jane.Doe@' . $domain, true))); $this->assertSame($expected, $mock->isSupported(new Email('Jane.Doe@' . $domain, true)));
} }
public function providerIsSupported() public function providerIsSupported() : array
{ {
return [ return [
[$this->getMultiDomainMock('foo.bar', ['foo.bar']), 'gmail.com', false], [$this->getMultiDomainMock('foo.bar', ['foo.bar']), 'gmail.com', false],
@ -42,7 +42,7 @@ class MultiDomainTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expectedEmail, $mock->getPrimaryEmail(new Email($email, true))); $this->assertEquals($expectedEmail, $mock->getPrimaryEmail(new Email($email, true)));
} }
public function providerGetPrimaryDomain() public function providerGetPrimaryDomain() : array
{ {
return [ return [
[$this->getMultiDomainMock('foo.bar', ['foo.bar', 'foo.bar2']), 'name@foo.bar', 'name@foo.bar'], [$this->getMultiDomainMock('foo.bar', ['foo.bar', 'foo.bar2']), 'name@foo.bar', 'name@foo.bar'],

View File

@ -20,7 +20,7 @@ class OutlookComTest extends \PHPUnit_Framework_TestCase
$this->assertSame($result, (new OutlookCom())->isSupported(new Email('Jane.Doe@' . $domain, true))); $this->assertSame($result, (new OutlookCom())->isSupported(new Email('Jane.Doe@' . $domain, true)));
} }
public function providerIsSupported() public function providerIsSupported() : array
{ {
return [ return [
['outlook.com', true], ['outlook.com', true],
@ -43,7 +43,7 @@ class OutlookComTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expectedEmail, (new OutlookCom())->getPrimaryEmail(new Email($inputEmail, true))); $this->assertEquals($expectedEmail, (new OutlookCom())->getPrimaryEmail(new Email($inputEmail, true)));
} }
public function providerGetPrimaryEmail() public function providerGetPrimaryEmail() : array
{ {
return [ return [
['janedoe@outlook.com', 'janedoe@outlook.com'], ['janedoe@outlook.com', 'janedoe@outlook.com'],

View File

@ -20,7 +20,7 @@ class Www33MailComTest extends \PHPUnit_Framework_TestCase
$this->assertSame($isSupported, (new Www33MailCom())->isSupported(new Email('Jane.Doe@' . $domain, true))); $this->assertSame($isSupported, (new Www33MailCom())->isSupported(new Email('Jane.Doe@' . $domain, true)));
} }
public function providerIsSupported() public function providerIsSupported() : array
{ {
return [ return [
['foo.33mail.com', true], ['foo.33mail.com', true],
@ -42,7 +42,7 @@ class Www33MailComTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expectedEmail, (new Www33MailCom())->getPrimaryEmail(new Email($inputEmail, true))); $this->assertEquals($expectedEmail, (new Www33MailCom())->getPrimaryEmail(new Email($inputEmail, true)));
} }
public function providerGetPrimaryEmail() public function providerGetPrimaryEmail() : array
{ {
return [ return [
['qwerty@name.33mail.com', 'name@name.33mail.com'], ['qwerty@name.33mail.com', 'name@name.33mail.com'],

View File

@ -20,7 +20,7 @@ class YahooComTest extends \PHPUnit_Framework_TestCase
$this->assertSame($result, (new YahooCom())->isSupported(new Email('Jane.Doe@' . $domain, true))); $this->assertSame($result, (new YahooCom())->isSupported(new Email('Jane.Doe@' . $domain, true)));
} }
public function providerIsSupported() public function providerIsSupported() : array
{ {
return [ return [
['yahoo.com', true], ['yahoo.com', true],
@ -44,7 +44,7 @@ class YahooComTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expectedEmail, (new YahooCom())->getPrimaryEmail(new Email($inputEmail, true))); $this->assertEquals($expectedEmail, (new YahooCom())->getPrimaryEmail(new Email($inputEmail, true)));
} }
public function providerGetPrimaryEmail() public function providerGetPrimaryEmail() : array
{ {
return [ return [
['janedoe@yahoo.com', 'janedoe@yahoo.com'], ['janedoe@yahoo.com', 'janedoe@yahoo.com'],

View File

@ -31,7 +31,7 @@ class TransparentEmailTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expectedEmail, $transparentEmail->getPrimaryEmail(new Email($email, $caseSensitive))); $this->assertEquals($expectedEmail, $transparentEmail->getPrimaryEmail(new Email($email, $caseSensitive)));
} }
public function providerGetPrimaryEmail() public function providerGetPrimaryEmail() : array
{ {
$emptyServiceCollector = $this->createServiceCollector(); $emptyServiceCollector = $this->createServiceCollector();
$tlenServiceCollector = $this->createServiceCollector([TlenPl::class]); $tlenServiceCollector = $this->createServiceCollector([TlenPl::class]);
@ -62,7 +62,7 @@ class TransparentEmailTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expectedEmail, (TransparentEmailFactory::createDefault())->getPrimaryEmail($inputEmail)); $this->assertEquals($expectedEmail, (TransparentEmailFactory::createDefault())->getPrimaryEmail($inputEmail));
} }
public function providerDefault() public function providerDefault() : array
{ {
return [ return [
[new Email('John.Doe+spam@gmail.com', true), 'johndoe@gmail.com'], [new Email('John.Doe+spam@gmail.com', true), 'johndoe@gmail.com'],