forked from bschmitt/laravel-amqp
-
Notifications
You must be signed in to change notification settings - Fork 1
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 bschmitt#30 from blanxii/refactor-to-follow-psr2
Add standard for PSR2 support
- Loading branch information
Showing
13 changed files
with
53 additions
and
41 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<?php namespace Bschmitt\Amqp; | ||
<?php | ||
|
||
namespace Bschmitt\Amqp; | ||
|
||
use Illuminate\Config\Repository; | ||
use PhpAmqpLib\Connection\AMQPStreamConnection; | ||
|
||
/** | ||
* @author Björn Schmitt <[email protected]> | ||
|
@@ -61,12 +62,11 @@ public function getProperties() | |
*/ | ||
public function getProperty($key) | ||
{ | ||
return array_key_exists($key, $this->properties) ? $this->properties[$key] : NULL; | ||
return array_key_exists($key, $this->properties) ? $this->properties[$key] : null; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
abstract function setup(); | ||
|
||
abstract public function setup(); | ||
} |
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,4 +1,6 @@ | ||
<?php namespace Bschmitt\Amqp\Exception; | ||
<?php | ||
|
||
namespace Bschmitt\Amqp\Exception; | ||
|
||
/** | ||
* @author Björn Schmitt <[email protected]> | ||
|
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,9 +1,11 @@ | ||
<?php namespace Bschmitt\Amqp\Exception; | ||
<?php | ||
|
||
namespace Bschmitt\Amqp\Exception; | ||
|
||
/** | ||
* @author Björn Schmitt <[email protected]> | ||
*/ | ||
class Stop extends \Exception | ||
{ | ||
|
||
} | ||
} |
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
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,6 +1,8 @@ | ||
<?php namespace Bschmitt\Amqp; | ||
<?php | ||
|
||
use \PhpAmqpLib\Message\AMQPMessage; | ||
namespace Bschmitt\Amqp; | ||
|
||
use PhpAmqpLib\Message\AMQPMessage; | ||
|
||
/** | ||
* @author Björn Schmitt <[email protected]> | ||
|
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,6 +1,6 @@ | ||
<?php namespace Bschmitt\Amqp; | ||
<?php | ||
|
||
use Illuminate\Config\Repository; | ||
namespace Bschmitt\Amqp; | ||
|
||
/** | ||
* @author Björn Schmitt <[email protected]> | ||
|
@@ -17,5 +17,4 @@ public function publish($routing, $message) | |
{ | ||
$this->getChannel()->basic_publish($message, $this->getProperty('exchange'), $routing); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<?php namespace Bschmitt\Amqp\Test; | ||
<?php | ||
|
||
namespace Bschmitt\Amqp\Test; | ||
|
||
/** | ||
* @author Björn Schmitt <[email protected]> | ||
|