Page MenuHomeDevCentral

D243.diff
No OneTemporary

D243.diff

diff --git a/app/Analyzers/GitHubPayloadAnalyzer.php b/app/Analyzers/GitHub/GitHubPayloadAnalyzer.php
rename from app/Analyzers/GitHubPayloadAnalyzer.php
rename to app/Analyzers/GitHub/GitHubPayloadAnalyzer.php
--- a/app/Analyzers/GitHubPayloadAnalyzer.php
+++ b/app/Analyzers/GitHub/GitHubPayloadAnalyzer.php
@@ -1,6 +1,6 @@
<?php
-namespace Nasqueron\Notifications\Analyzers;
+namespace Nasqueron\Notifications\Analyzers\GitHub;
use Config;
use Storage;
diff --git a/app/Analyzers/GitHubPayloadAnalyzerConfiguration.php b/app/Analyzers/GitHub/GitHubPayloadAnalyzerConfiguration.php
rename from app/Analyzers/GitHubPayloadAnalyzerConfiguration.php
rename to app/Analyzers/GitHub/GitHubPayloadAnalyzerConfiguration.php
--- a/app/Analyzers/GitHubPayloadAnalyzerConfiguration.php
+++ b/app/Analyzers/GitHub/GitHubPayloadAnalyzerConfiguration.php
@@ -1,6 +1,6 @@
<?php
-namespace Nasqueron\Notifications\Analyzers;
+namespace Nasqueron\Notifications\Analyzers\GitHub;
class GitHubPayloadAnalyzerConfiguration {
/**
diff --git a/app/Analyzers/RepositoryGroupMapping.php b/app/Analyzers/GitHub/RepositoryGroupMapping.php
rename from app/Analyzers/RepositoryGroupMapping.php
rename to app/Analyzers/GitHub/RepositoryGroupMapping.php
--- a/app/Analyzers/RepositoryGroupMapping.php
+++ b/app/Analyzers/GitHub/RepositoryGroupMapping.php
@@ -1,6 +1,6 @@
<?php
-namespace Nasqueron\Notifications\Analyzers;
+namespace Nasqueron\Notifications\Analyzers\GitHub;
class RepositoryGroupMapping {
///
diff --git a/app/Listeners/AMQPEventListener.php b/app/Listeners/AMQPEventListener.php
--- a/app/Listeners/AMQPEventListener.php
+++ b/app/Listeners/AMQPEventListener.php
@@ -4,7 +4,7 @@
use Nasqueron\Notifications\Events\GitHubPayloadEvent;
use Nasqueron\Notifications\Events\NotificationEvent;
-use Nasqueron\Notifications\Analyzers\GitHubPayloadAnalyzer;
+use Nasqueron\Notifications\Analyzers\GitHub\GitHubPayloadAnalyzer;
use Nasqueron\Notifications\Jobs\SendMessageToBroker;
use Nasqueron\Notifications\Notification;
diff --git a/app/Notifications/GitHubNotification.php b/app/Notifications/GitHubNotification.php
--- a/app/Notifications/GitHubNotification.php
+++ b/app/Notifications/GitHubNotification.php
@@ -2,7 +2,7 @@
namespace Nasqueron\Notifications\Notifications;
-use Nasqueron\Notifications\Analyzers\GitHubPayloadAnalyzer;
+use Nasqueron\Notifications\Analyzers\GitHub\GitHubPayloadAnalyzer;
use Nasqueron\Notifications\Notification;
class GitHubNotification extends Notification {
diff --git a/tests/Analyzers/GitHubPayloadAnalyzerTest.php b/tests/Analyzers/GitHubPayloadAnalyzerTest.php
--- a/tests/Analyzers/GitHubPayloadAnalyzerTest.php
+++ b/tests/Analyzers/GitHubPayloadAnalyzerTest.php
@@ -4,8 +4,8 @@
use Illuminate\Foundation\Testing\WithoutMiddleware;
-use Nasqueron\Notifications\Analyzers\GitHubPayloadAnalyzer;
-use Nasqueron\Notifications\Analyzers\GitHubPayloadAnalyzerConfiguration;
+use Nasqueron\Notifications\Analyzers\GitHub\GitHubPayloadAnalyzer;
+use Nasqueron\Notifications\Analyzers\GitHub\GitHubPayloadAnalyzerConfiguration;
use Nasqueron\Notifications\Tests\TestCase;
class GitHubPayloadAnalyzerConfigurationTest extends TestCase {
@@ -13,7 +13,7 @@
/**
* Configuration
*
- * @var Nasqueron\Notifications\Analyzers\GitHubPayloadAnalyzerConfiguration
+ * @var Nasqueron\Notifications\Analyzers\GitHub\GitHubPayloadAnalyzerConfiguration
*/
protected $configuration;
@@ -38,7 +38,7 @@
foreach ($this->configuration->repositoryMapping as $item) {
$this->assertInstanceOf(
- 'Nasqueron\Notifications\Analyzers\RepositoryGroupMapping',
+ 'Nasqueron\Notifications\Analyzers\GitHub\RepositoryGroupMapping',
$item
);
}
diff --git a/tests/Analyzers/RepositoryGroupMappingTest.php b/tests/Analyzers/RepositoryGroupMappingTest.php
--- a/tests/Analyzers/RepositoryGroupMappingTest.php
+++ b/tests/Analyzers/RepositoryGroupMappingTest.php
@@ -4,7 +4,7 @@
use Illuminate\Foundation\Testing\WithoutMiddleware;
-use Nasqueron\Notifications\Analyzers\RepositoryGroupMapping;
+use Nasqueron\Notifications\Analyzers\GitHub\RepositoryGroupMapping;
use Nasqueron\Notifications\Tests\TestCase;
class RepositoryGroupMappingTest extends TestCase {

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 7, 21:20 (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2181061
Default Alt Text
D243.diff (4 KB)

Event Timeline