@@ -6,17 +6,17 @@ |
||
| 6 | 6 | |
| 7 | 7 | abstract class AbstractHandler |
| 8 | 8 | { |
| 9 | - protected $parser; |
|
| 9 | + protected $parser; |
|
| 10 | 10 | |
| 11 | - public function __constructor(AbstractParser $parser) |
|
| 12 | - { |
|
| 13 | - $this->parser = $parser; |
|
| 14 | - } |
|
| 11 | + public function __constructor(AbstractParser $parser) |
|
| 12 | + { |
|
| 13 | + $this->parser = $parser; |
|
| 14 | + } |
|
| 15 | 15 | |
| 16 | - public function getParser() |
|
| 17 | - { |
|
| 18 | - return $this->parser; |
|
| 19 | - } |
|
| 16 | + public function getParser() |
|
| 17 | + { |
|
| 18 | + return $this->parser; |
|
| 19 | + } |
|
| 20 | 20 | |
| 21 | - public function run(); |
|
| 21 | + public function run(); |
|
| 22 | 22 | } |
@@ -6,10 +6,10 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Inbounder extends Facade |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Get the registered name of the component. |
|
| 11 | - * |
|
| 12 | - * @return string |
|
| 13 | - */ |
|
| 14 | - protected static function getFacadeAccessor() { return 'inbounder'; } |
|
| 9 | + /** |
|
| 10 | + * Get the registered name of the component. |
|
| 11 | + * |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 14 | + protected static function getFacadeAccessor() { return 'inbounder'; } |
|
| 15 | 15 | } |
| 16 | 16 | \ No newline at end of file |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Gateway |
| 6 | 6 | { |
| 7 | - public function parse() |
|
| 8 | - { |
|
| 7 | + public function parse() |
|
| 8 | + { |
|
| 9 | 9 | |
| 10 | - } |
|
| 10 | + } |
|
| 11 | 11 | } |
@@ -4,10 +4,10 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Inbounder |
| 6 | 6 | { |
| 7 | - public static function gateway($gateway, Request $request) |
|
| 8 | - { |
|
| 9 | - // get the gateway handler |
|
| 10 | - $handler = App::make(config('inbounder::gateways.' . $gateway)); |
|
| 11 | - return new Gateway($request, $handler); |
|
| 12 | - } |
|
| 7 | + public static function gateway($gateway, Request $request) |
|
| 8 | + { |
|
| 9 | + // get the gateway handler |
|
| 10 | + $handler = App::make(config('inbounder::gateways.' . $gateway)); |
|
| 11 | + return new Gateway($request, $handler); |
|
| 12 | + } |
|
| 13 | 13 | } |
@@ -6,32 +6,32 @@ |
||
| 6 | 6 | |
| 7 | 7 | class InbounderServiceProvider extends ServiceProvider |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Indicates if loading of the provider is deferred. |
|
| 11 | - * |
|
| 12 | - * @var bool |
|
| 13 | - */ |
|
| 14 | - protected $defer = false; |
|
| 9 | + /** |
|
| 10 | + * Indicates if loading of the provider is deferred. |
|
| 11 | + * |
|
| 12 | + * @var bool |
|
| 13 | + */ |
|
| 14 | + protected $defer = false; |
|
| 15 | 15 | |
| 16 | - /** |
|
| 17 | - * Register bindings in the container. |
|
| 18 | - * |
|
| 19 | - * @return void |
|
| 20 | - */ |
|
| 21 | - public function register() |
|
| 22 | - { |
|
| 23 | - // ... |
|
| 24 | - } |
|
| 16 | + /** |
|
| 17 | + * Register bindings in the container. |
|
| 18 | + * |
|
| 19 | + * @return void |
|
| 20 | + */ |
|
| 21 | + public function register() |
|
| 22 | + { |
|
| 23 | + // ... |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Perform post-registration booting of services. |
|
| 28 | - * |
|
| 29 | - * @return void |
|
| 30 | - */ |
|
| 31 | - public function boot() |
|
| 32 | - { |
|
| 33 | - $this->publishes([ |
|
| 34 | - __DIR__.'/../config.php' => config_path('inbounder.php') |
|
| 35 | - ], 'config'); |
|
| 36 | - } |
|
| 26 | + /** |
|
| 27 | + * Perform post-registration booting of services. |
|
| 28 | + * |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 31 | + public function boot() |
|
| 32 | + { |
|
| 33 | + $this->publishes([ |
|
| 34 | + __DIR__.'/../config.php' => config_path('inbounder.php') |
|
| 35 | + ], 'config'); |
|
| 36 | + } |
|
| 37 | 37 | } |
| 38 | 38 | \ No newline at end of file |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public function boot() |
| 32 | 32 | { |
| 33 | 33 | $this->publishes([ |
| 34 | - __DIR__.'/../config.php' => config_path('inbounder.php') |
|
| 34 | + __DIR__ . '/../config.php' => config_path('inbounder.php') |
|
| 35 | 35 | ], 'config'); |
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | \ No newline at end of file |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | abstract class AbstractParser |
| 6 | 6 | { |
| 7 | - public function handler() |
|
| 8 | - { |
|
| 7 | + public function handler() |
|
| 8 | + { |
|
| 9 | 9 | |
| 10 | - } |
|
| 10 | + } |
|
| 11 | 11 | } |
@@ -4,19 +4,19 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface EmailParserInterface |
| 6 | 6 | { |
| 7 | - public function from(); |
|
| 8 | - public function replyTo(); |
|
| 7 | + public function from(); |
|
| 8 | + public function replyTo(); |
|
| 9 | 9 | |
| 10 | - public function to(); |
|
| 11 | - public function cc(); |
|
| 12 | - public function bcc(); |
|
| 10 | + public function to(); |
|
| 11 | + public function cc(); |
|
| 12 | + public function bcc(); |
|
| 13 | 13 | |
| 14 | - public function subject(); |
|
| 15 | - public function body(); |
|
| 16 | - public function bodyIsText(); |
|
| 17 | - public function bodyIsHtml(); |
|
| 14 | + public function subject(); |
|
| 15 | + public function body(); |
|
| 16 | + public function bodyIsText(); |
|
| 17 | + public function bodyIsHtml(); |
|
| 18 | 18 | |
| 19 | - public function hasAttachements(); |
|
| 20 | - public function attachements(); |
|
| 19 | + public function hasAttachements(); |
|
| 20 | + public function attachements(); |
|
| 21 | 21 | |
| 22 | 22 | } |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - /* |
|
| 5 | + /* |
|
| 6 | 6 | |-------------------------------------------------------------------------- |
| 7 | 7 | | User defined gateways |
| 8 | 8 | |-------------------------------------------------------------------------- |
@@ -10,11 +10,11 @@ discard block |
||
| 10 | 10 | | Blah... |
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | - 'gateways' => [ |
|
| 13 | + 'gateways' => [ |
|
| 14 | 14 | |
| 15 | - ], |
|
| 15 | + ], |
|
| 16 | 16 | |
| 17 | - /* |
|
| 17 | + /* |
|
| 18 | 18 | |-------------------------------------------------------------------------- |
| 19 | 19 | | Custom parsers |
| 20 | 20 | |-------------------------------------------------------------------------- |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | | Blah... |
| 23 | 23 | | |
| 24 | 24 | */ |
| 25 | - 'customParsers' => [ |
|
| 25 | + 'customParsers' => [ |
|
| 26 | 26 | |
| 27 | - ] |
|
| 27 | + ] |
|
| 28 | 28 | ]; |
| 29 | 29 | \ No newline at end of file |