-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from bigperson/analysis-zO4djl
Apply fixes from StyleCI
- Loading branch information
Showing
6 changed files
with
99 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
<?php | ||
/** | ||
* This file is part of bigperson/exchange1c package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
|
||
namespace Bigperson\Exchange1C\Events; | ||
|
||
/** | ||
* Class AbstractEventInterface | ||
*/ | ||
abstract class AbstractEventInterface implements \Bigperson\Exchange1C\Interfaces\EventInterface | ||
{ | ||
public const NAME = self::class; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName(): string | ||
{ | ||
return self::NAME; | ||
} | ||
} | ||
<?php | ||
/** | ||
* This file is part of bigperson/exchange1c package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Bigperson\Exchange1C\Events; | ||
|
||
/** | ||
* Class AbstractEventInterface. | ||
*/ | ||
abstract class AbstractEventInterface implements \Bigperson\Exchange1C\Interfaces\EventInterface | ||
{ | ||
public const NAME = self::class; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName(): string | ||
{ | ||
return self::NAME; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
<?php | ||
/** | ||
* This file is part of bigperson/exchange1c package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
|
||
namespace Bigperson\Exchange1C\Interfaces; | ||
|
||
/** | ||
* Interface EventDispatcherInterface | ||
* @package Bigperson\Exchange1C\Interfaces | ||
*/ | ||
interface EventDispatcherInterface | ||
{ | ||
/** | ||
* @param EventInterface $event | ||
*/ | ||
public function dispatch(EventInterface $event): void; | ||
} | ||
<?php | ||
/** | ||
* This file is part of bigperson/exchange1c package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Bigperson\Exchange1C\Interfaces; | ||
|
||
/** | ||
* Interface EventDispatcherInterface. | ||
*/ | ||
interface EventDispatcherInterface | ||
{ | ||
/** | ||
* @param EventInterface $event | ||
*/ | ||
public function dispatch(EventInterface $event): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
<?php | ||
/** | ||
* This file is part of bigperson/exchange1c package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
|
||
namespace Bigperson\Exchange1C\Interfaces; | ||
|
||
/** | ||
* Interface EventInterface | ||
* @package Bigperson\Exchange1C\Interfaces | ||
*/ | ||
interface EventInterface | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getName(): string; | ||
} | ||
<?php | ||
/** | ||
* This file is part of bigperson/exchange1c package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Bigperson\Exchange1C\Interfaces; | ||
|
||
/** | ||
* Interface EventInterface. | ||
*/ | ||
interface EventInterface | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getName(): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
<?php | ||
/** | ||
* This file is part of bigperson/exchange1c package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
|
||
namespace Tests\Events; | ||
|
||
use Bigperson\Exchange1C\Events\BeforeOffersSync; | ||
use Tests\TestCase; | ||
|
||
/** | ||
* Class EventTest | ||
*/ | ||
class EventTest extends TestCase | ||
{ | ||
public function testGetName() | ||
{ | ||
$event = new BeforeOffersSync(); | ||
$this->assertTrue(is_string($event->getName())); | ||
|
||
} | ||
} | ||
<?php | ||
/** | ||
* This file is part of bigperson/exchange1c package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Tests\Events; | ||
|
||
use Bigperson\Exchange1C\Events\BeforeOffersSync; | ||
use Tests\TestCase; | ||
|
||
/** | ||
* Class EventTest. | ||
*/ | ||
class EventTest extends TestCase | ||
{ | ||
public function testGetName() | ||
{ | ||
$event = new BeforeOffersSync(); | ||
$this->assertTrue(is_string($event->getName())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters