8000 [Cleanup] Cleanup code and doc blocks · volldigital/laravel-json-api@09acc27 · GitHub
[go: up one dir, main page]

Skip to content

Commit 09acc27

Browse files
committed
[Cleanup] Cleanup code and doc blocks
1 parent 07e6930 commit 09acc27

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+204
-55
lines changed

app/Http/Controllers/CommentsController.php renamed to dummy/Http/Controllers/CommentsController.php

Lines changed: 19 additions & 0 deletions
< F438 div data-testid="addition diffstat" class="DiffSquares-module__diffSquare--h5kjy DiffSquares-module__addition--jeNtt">
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
<?php
22

3+
/**
4+
* Copyright 2017 Cloud Creativity Limited
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
319
namespace App\Http\Controllers;
420

21+
/**
22+
* Class CommentsController
23+
*/
524
class CommentsController
625
{
726

app/Http/Controllers/PostsController.php renamed to dummy/Http/Controllers/PostsController.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
<?php
22

3+
/**
4+
* Copyright 2017 Cloud Creativity Limited
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
319
namespace App\Http\Controllers;
420

21+
/**
22+
* Class PostsController
23+
*/
524
class PostsController
625
{
726

src/Console/Commands/AbstractGeneratorCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2016 Cloud Creativity Limited
4+
* Copyright 2017 Cloud Creativity Limited
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -252,11 +252,11 @@ private function replaceModel(&$stub, $resource)
252252

253253
return $this;
254254
}
255+
255256
/**
256257
* Replace the value of the application namespace.
257258
*
258259
* @param $stub
259-
* @param $resource
260260
* @return $this
261261
*/
262262
private function replaceApplicationNamespace(&$stub)

src/Console/Commands/MakeAdapterCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2016 Cloud Creativity Limited
4+
* Copyright 2017 Cloud Creativity Limited
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/Console/Commands/MakeHydratorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2016 Cloud Creativity Limited
4+
* Copyright 2017 Cloud Creativity Limited
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/Console/Commands/MakeResourceCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2016 Cloud Creativity Limited
4+
* Copyright 2017 Cloud Creativity Limited
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -20,8 +20,6 @@
2020

2121
use Illuminate\Console\Command;
2222
use Illuminate\Support\Collection;
23-
use Symfony\Component\Console\Input\InputArgument;
24-
use Symfony\Component\Console\Input\InputOption;
2523

2624
/**
2725
* Class ResourceMakeCommand

src/Console/Commands/MakeSchemaCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2016 Cloud Creativity Limited
4+
* Copyright 2017 Cloud Creativity Limited
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/Console/Commands/MakeValidatorsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright 2016 Cloud Creativity Limited
4+
* Copyright 2017 Cloud Creativity Limited
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/Contracts/Document/LinkFactoryInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
/**
2424
* Interface LinkFactoryInterface
25+
*
2526
* @package CloudCreativity\LaravelJsonApi
2627
*/
2728
interface LinkFactoryInterface

src/Contracts/Pagination/PagingStrategyInterface.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,31 @@
11
<?php
22

3+
/**
4+
* Copyright 2017 Cloud Creativity Limited
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
319
namespace CloudCreativity\LaravelJsonApi\Contracts\Pagination;
420

521
use CloudCreativity\JsonApi\Contracts\Pagination\PageInterface;
622
use Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface;
723

24+
/**
25+
* Interface PagingStrategyInterface
26+
*
27+
* @package CloudCreativity\LaravelJsonApi
28+
*/
829
interface PagingStrategyInterface
930
{
1031

0 commit comments

Comments
 (0)
0