diff --git a/app/Http/Controllers/AccountApiController.php b/app/Http/Controllers/AccountApiController.php index 6d4ef0ccf1e7..5f34f267db7c 100644 --- a/app/Http/Controllers/AccountApiController.php +++ b/app/Http/Controllers/AccountApiController.php @@ -152,7 +152,7 @@ class AccountApiController extends BaseAPIController $account->devices = json_encode($devices); $account->save(); - return $this->response($account); + return $this->response($newDevice); } @@ -185,7 +185,7 @@ class AccountApiController extends BaseAPIController $account->devices = json_encode($devices); $account->save(); - return $this->response($account); + return $this->response($newDevice); } } diff --git a/app/Listeners/NotificationListener.php b/app/Listeners/NotificationListener.php index c7b58fe30ba5..29a190eeb712 100644 --- a/app/Listeners/NotificationListener.php +++ b/app/Listeners/NotificationListener.php @@ -10,6 +10,7 @@ use App\Events\QuoteInvitationWasViewed; use App\Events\QuoteInvitationWasApproved; use App\Events\PaymentWasCreated; use App\Ninja\Notifications; +use App\Services\PushService; class NotificationListener { @@ -17,7 +18,7 @@ class NotificationListener protected $contactMailer; protected $pushService; - public function __construct(UserMailer $userMailer, ContactMailer $contactMailer, Notifications\PushService $pushService) + public function __construct(UserMailer $userMailer, ContactMailer $contactMailer, PushService $pushService) { $this->userMailer = $userMailer; $this->contactMailer = $contactMailer; diff --git a/app/Ninja/Repositories/AccountRepository.php b/app/Ninja/Repositories/AccountRepository.php index 10e21fd66745..c215f69a97e3 100644 --- a/app/Ninja/Repositories/AccountRepository.php +++ b/app/Ninja/Repositories/AccountRepository.php @@ -194,7 +194,6 @@ class AccountRepository $account = $this->getNinjaAccount(); $lastInvoice = Invoice::withTrashed()->whereAccountId($account->id)->orderBy('public_id', 'DESC')->first(); $publicId = $lastInvoice ? ($lastInvoice->public_id + 1) : 1; - $invoice = new Invoice(); $invoice->account_id = $account->id; $invoice->user_id = $account->users()->first()->id; diff --git a/readme.md b/readme.md index 82a4bbf4d9e4..d164ce19ab68 100644 --- a/readme.md +++ b/readme.md @@ -19,6 +19,7 @@ * [Softaculous](https://www.softaculous.com/apps/ecommerce/Invoice_Ninja) - $30 ### Requirements + * PHP >= 5.5.9 * MCrypt PHP Extension * MySQL @@ -98,4 +99,4 @@ We're using the [Git-Flow](http://nvie.com/posts/a-successful-git-branching-mode * [ezyang/htmlpurifier](https://github.com/ezyang/htmlpurifier) - Standards compliant HTML filter written in PHP * [cerdic/css-tidy](https://github.com/Cerdic/CSSTidy) - CSSTidy is a CSS minifier * [asgrim/ofxparser](https://github.com/asgrim/ofxparser) - OFX File Parser -* [stacktracejs/stacktrace.js](https://github.com/stacktracejs/stacktrace.js) - Framework-agnostic, micro-library for getting stack traces in all web browsers \ No newline at end of file +* [stacktracejs/stacktrace.js](https://github.com/stacktracejs/stacktrace.js) - Framework-agnostic, micro-library for getting stack traces in all web browsers