Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
changes to PSR-4 and require-dev
Browse files Browse the repository at this point in the history
- changed the PSr-4 autoload / namespace
- changed require-dev dependencies, as this is a laravel package
  • Loading branch information
brifiction committed Jul 21, 2020
1 parent 507b8d7 commit d730ad7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This is an example Laravel package.
````
'providers' => [
...
entwurfhaus\owlet\ExampleServiceProvider::class,
Entwurfhaus\Owlet\ExampleServiceProvider::class,
...
],
````
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
}
],
"require": {
"php": "^7.4",
"illuminate/database": "^7.0",
"illuminate/events": "^7.0"
"php": "^7.4"
},
"require-dev": {
"phpunit/phpunit": "^9.2"
"phpunit/phpunit": "^9.2",
"illuminate/database": "^7.0",
"illuminate/events": "^7.0"
},
"autoload": {
"psr-4": {
"entwurfhaus\\owlet\\": "src/"
"Entwurfhaus\\Owlet\\": "src/"
}
},
"autoload-dev": {
Expand All @@ -48,7 +48,7 @@
"extra": {
"laravel": {
"providers": [
"entwurfhaus\\owlet\\ExampleServiceProvider"
"Entwurfhaus\\Owlet\\ExampleServiceProvider"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/ExampleController.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace entwurfhaus\owlet\Http\Controllers;
namespace Entwurfhaus\Owlet\Http\Controllers;

use App\Http\Controllers\Controller;
use entwurfhaus\owlet\Models\Example;
use Entwurfhaus\Owlet\Models\Example;

class ExampleController extends Controller {

Expand Down
2 changes: 1 addition & 1 deletion src/Models/Example.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace entwurfhaus\owlet\Models;
namespace Entwurfhaus\Owlet\Models;

use Illuminate\Database\Eloquent\Model;

Expand Down
2 changes: 1 addition & 1 deletion src/routes/web.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

// reserved route for owlet
Route::group(['namespace' => 'entwurfhaus\owlet\Http\Controllers', 'middleware' => ['web']], function () {
Route::group(['namespace' => 'Entwurfhaus\Owlet\Http\Controllers', 'middleware' => ['web']], function () {
Route::get('owlet', 'ExampleController@index');
});
2 changes: 1 addition & 1 deletion tests/Unit/ExampleUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Tests\Unit;

use entwurfhaus\owlet\Models\Example;
use Entwurfhaus\Owlet\Models\Example;
use PHPUnit\Framework\TestCase;

class ExampleUnitTest extends TestCase {
Expand Down

0 comments on commit d730ad7

Please sign in to comment.