Skip to content

Commit

Permalink
Merge pull request #236 from fenos/analysis-8Q0nRO
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI

[ci skip] [skip ci]
  • Loading branch information
fenos authored Dec 15, 2016
2 parents ce6b1e7 + 5a880da commit 17a8c70
Show file tree
Hide file tree
Showing 19 changed files with 47 additions and 48 deletions.
6 changes: 3 additions & 3 deletions src/Notifynder/Builder/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Fenos\Notifynder\Builder;

use Closure;
use ArrayAccess;
use Carbon\Carbon;
use Closure;
use Fenos\Notifynder\Exceptions\UnvalidNotificationException;
use Illuminate\Database\Eloquent\Model;
use Fenos\Notifynder\Helpers\TypeChecker;
use Fenos\Notifynder\Models\NotificationCategory;
use Illuminate\Database\Eloquent\Model;
use Fenos\Notifynder\Exceptions\UnvalidNotificationException;

/**
* Class Builder.
Expand Down
8 changes: 4 additions & 4 deletions src/Notifynder/Builder/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
namespace Fenos\Notifynder\Builder;

use ArrayAccess;
use Fenos\Notifynder\Parsers\NotificationParser;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Jsonable;
use Illuminate\Support\Arr;
use JsonSerializable;
use Illuminate\Support\Arr;
use Illuminate\Contracts\Support\Jsonable;
use Illuminate\Contracts\Support\Arrayable;
use Fenos\Notifynder\Parsers\NotificationParser;
use Fenos\Notifynder\Models\Notification as ModelNotification;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Notifynder/Collections/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Fenos\Notifynder\Collections;

use Fenos\Notifynder\Contracts\ConfigContract;
use Fenos\Notifynder\Models\Notification;
use Illuminate\Support\Arr;
use InvalidArgumentException;
use Fenos\Notifynder\Models\Notification;
use Fenos\Notifynder\Contracts\ConfigContract;

/**
* Class Config.
Expand Down
4 changes: 2 additions & 2 deletions src/Notifynder/Helpers/TypeChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Fenos\Notifynder\Helpers;

use Carbon\Carbon;
use DateTime;
use InvalidArgumentException;
use Traversable;
use Carbon\Carbon;
use InvalidArgumentException;

/**
* Class TypeChecker.
Expand Down
6 changes: 3 additions & 3 deletions src/Notifynder/Managers/NotifynderManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Fenos\Notifynder\Managers;

use BadMethodCallException;
use Closure;
use BadMethodCallException;
use Illuminate\Support\Str;
use Fenos\Notifynder\Builder\Builder;
use Fenos\Notifynder\Contracts\NotifynderManagerContract;
use Fenos\Notifynder\Contracts\SenderManagerContract;
use Illuminate\Support\Str;
use Fenos\Notifynder\Contracts\NotifynderManagerContract;

/**
* Class NotifynderManager.
Expand Down
8 changes: 4 additions & 4 deletions src/Notifynder/Managers/SenderManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Fenos\Notifynder\Managers;

use BadFunctionCallException;
use BadMethodCallException;
use Closure;
use Fenos\Notifynder\Contracts\SenderContract;
use Fenos\Notifynder\Contracts\SenderManagerContract;
use BadMethodCallException;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use BadFunctionCallException;
use Fenos\Notifynder\Contracts\SenderContract;
use Fenos\Notifynder\Contracts\SenderManagerContract;

/**
* Class SenderManager.
Expand Down
6 changes: 3 additions & 3 deletions src/Notifynder/Models/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Fenos\Notifynder\Models;

use Fenos\Notifynder\Builder\Notification as BuilderNotification;
use Fenos\Notifynder\Parsers\NotificationParser;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Fenos\Notifynder\Parsers\NotificationParser;
use Fenos\Notifynder\Builder\Notification as BuilderNotification;

/**
* Class Notification.
Expand Down
4 changes: 2 additions & 2 deletions src/Notifynder/Models/NotificationCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Fenos\Notifynder\Models;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;

/**
* Class NotificationCategory.
Expand Down
14 changes: 7 additions & 7 deletions src/Notifynder/NotifynderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace Fenos\Notifynder;

use Illuminate\Support\ServiceProvider;
use Fenos\Notifynder\Collections\Config;
use Fenos\Notifynder\Contracts\ConfigContract;
use Fenos\Notifynder\Contracts\NotifynderManagerContract;
use Fenos\Notifynder\Contracts\SenderManagerContract;
use Fenos\Notifynder\Managers\NotifynderManager;
use Fenos\Notifynder\Managers\SenderManager;
use Fenos\Notifynder\Senders\MultipleSender;
use Fenos\Notifynder\Senders\OnceSender;
use Fenos\Notifynder\Senders\SingleSender;
use Illuminate\Support\ServiceProvider;
use Fenos\Notifynder\Managers\SenderManager;
use Fenos\Notifynder\Senders\MultipleSender;
use Fenos\Notifynder\Contracts\ConfigContract;
use Fenos\Notifynder\Managers\NotifynderManager;
use Fenos\Notifynder\Contracts\SenderManagerContract;
use Fenos\Notifynder\Contracts\NotifynderManagerContract;

/**
* Class NotifynderServiceProvider.
Expand Down
4 changes: 2 additions & 2 deletions src/Notifynder/Parsers/NotificationParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Fenos\Notifynder\Parsers;

use Fenos\Notifynder\Builder\Notification as BuilderNotification;
use Fenos\Notifynder\Models\NotificationCategory;
use Fenos\Notifynder\Exceptions\ExtraParamsException;
use Fenos\Notifynder\Models\Notification as ModelNotification;
use Fenos\Notifynder\Models\NotificationCategory;
use Fenos\Notifynder\Builder\Notification as BuilderNotification;

/**
* Class NotificationParser.
Expand Down
2 changes: 1 addition & 1 deletion src/Notifynder/Senders/SingleSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Fenos\Notifynder\Senders;

use Fenos\Notifynder\Models\Notification;
use Fenos\Notifynder\Contracts\SenderContract;
use Fenos\Notifynder\Contracts\SenderManagerContract;
use Fenos\Notifynder\Models\Notification;

/**
* Class SingleSender.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNotificationGroupsTable extends Migration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNotificationCategoryNotificationGroupTable extends Migration
{
Expand Down
10 changes: 5 additions & 5 deletions tests/NotifynderTestCase.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use Orchestra\Testbench\TestCase as OrchestraTestCase;
use Fenos\Tests\Models\User;
use Fenos\Tests\Models\UserL53;
use Fenos\Tests\Models\Car;
use Fenos\Tests\Models\User;
use Fenos\Tests\Models\CarL53;
use Fenos\Notifynder\NotifynderServiceProvider;
use Fenos\Notifynder\Facades\Notifynder as NotifynderFacade;
use Fenos\Tests\Models\UserL53;
use Illuminate\Database\Eloquent\Model;
use Fenos\Notifynder\NotifynderServiceProvider;
use Fenos\Notifynder\Models\NotificationCategory;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
use Fenos\Notifynder\Facades\Notifynder as NotifynderFacade;

abstract class NotifynderTestCase extends OrchestraTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Collections/ConfigTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Fenos\Notifynder\Models\Notification;
use Fenos\Tests\Models\User;
use Fenos\Notifynder\Models\Notification;

class ConfigTest extends NotifynderTestCase
{
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/Managers/NotifynderManagerTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

use Fenos\Notifynder\Models\Notification;
use Fenos\Notifynder\Builder\Builder;
use Fenos\Notifynder\Builder\Notification as BuilderNotification;
use Fenos\Notifynder\Models\Notification;
use Fenos\Notifynder\Managers\SenderManager;
use Fenos\Notifynder\Models\Notification as ModelNotification;
use Fenos\Notifynder\Builder\Notification as BuilderNotification;
use Illuminate\Database\Eloquent\Collection as EloquentCollection;
use Fenos\Notifynder\Managers\SenderManager;

class NotifynderManagerTest extends NotifynderTestCase
{
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/Traits/NotifableTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Fenos\Notifynder\Managers\NotifynderManager;
use Fenos\Notifynder\Builder\Builder;
use Fenos\Notifynder\Builder\Notification;
use Fenos\Notifynder\Managers\NotifynderManager;

class NotifableTest extends NotifynderTestCase
{
Expand Down Expand Up @@ -100,7 +100,6 @@ public function testReadStatusRelatedMethods()
$this->assertTrue($user->unreadNotification($notification->getKey()));
$this->assertSame(25, $user->countUnreadNotifications());


$user2 = $this->createUser();
$this->sendNotificationsTo($user2, 5);
$this->assertFalse($user->readNotification($user2->getNotificationRelation->first()));
Expand Down
2 changes: 1 addition & 1 deletion tests/models/CarL53.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Fenos\Tests\Models;

use Fenos\Notifynder\Traits\NotifableLaravel53;
use Illuminate\Database\Eloquent\Model;
use Fenos\Notifynder\Traits\NotifableLaravel53;

class CarL53 extends Model
{
Expand Down
2 changes: 1 addition & 1 deletion tests/models/UserL53.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Fenos\Tests\Models;

use Fenos\Notifynder\Traits\NotifableLaravel53;
use Illuminate\Database\Eloquent\Model;
use Fenos\Notifynder\Traits\NotifableLaravel53;

class UserL53 extends Model
{
Expand Down

0 comments on commit 17a8c70

Please sign in to comment.