Completed
Push — 2.0 ( d39b3c...f2914f )
by Kirill
02:52
created
server/app/Console/Commands/SphinxDaemon.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * For the full copyright and license information, please view the LICENSE
7 7
  * file that was distributed with this source code.
8 8
  */
9
-declare(strict_types=1);
9
+declare(strict_types = 1);
10 10
 
11 11
 namespace App\Console\Commands;
12 12
 
Please login to merge, or discard this patch.
server/app/GraphQL/Queries/SearchQuery.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * For the full copyright and license information, please view the LICENSE
7 7
  * file that was distributed with this source code.
8 8
  */
9
-declare(strict_types=1);
9
+declare(strict_types = 1);
10 10
 
11 11
 namespace App\GraphQL\Queries;
12 12
 
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,6 @@
 block discarded – undo
10 10
 
11 11
 use GraphQL\Type\Definition\Type;
12 12
 use Illuminate\Support\Collection;
13
-use Folklore\GraphQL\Support\Query;
14
-use App\GraphQL\Types\SearchResultType;
15 13
 use GraphQL\Type\Definition\ListOfType;
16 14
 use Service\SearchService\SearchService;
17 15
 use App\GraphQL\Serializers\SearchResultsSerializer;
Please login to merge, or discard this patch.
server/app/GraphQL/Types/SearchResultType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * For the full copyright and license information, please view the LICENSE
7 7
  * file that was distributed with this source code.
8 8
  */
9
-declare(strict_types=1);
9
+declare(strict_types = 1);
10 10
 
11 11
 namespace App\GraphQL\Types;
12 12
 
Please login to merge, or discard this patch.
server/app/Models/Article/ArticlesSearchRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * For the full copyright and license information, please view the LICENSE
5 5
  * file that was distributed with this source code.
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace App\Models\Article;
10 10
 
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
     public function getSearchResults(string $query, int $limit = 10): Collection
36 36
     {
37 37
         return Article::query()
38
-            ->where('content_source', 'LIKE', '%' . $query . '%')
38
+            ->where('content_source', 'LIKE', '%'.$query.'%')
39 39
             ->take($limit)
40 40
             ->get(['slug', 'title', 'content_rendered'])
41
-            ->map(function (Article $model) {
41
+            ->map(function(Article $model) {
42 42
                 return $this->transform($model);
43 43
             });
44 44
     }
Please login to merge, or discard this patch.
server/app/GraphQL/Serializers/AbstractSerializer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * For the full copyright and license information, please view the LICENSE
7 7
  * file that was distributed with this source code.
8 8
  */
9
-declare(strict_types=1);
9
+declare(strict_types = 1);
10 10
 
11 11
 namespace App\GraphQL\Serializers;
12 12
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @param  Collection|Model[]|null $collection
24 24
      * @return Collection
25 25
      */
26
-    public static function collection(?Collection $collection): Collection
26
+    public static function collection(? Collection $collection) : Collection
27 27
     {
28 28
         if ($collection === null) {
29 29
             return new Collection();
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function map(): \Closure
52 52
     {
53
-        return function ($model) {
53
+        return function($model) {
54 54
             return static::serialize($model);
55 55
         };
56 56
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param  \DateTime|null $date
69 69
      * @return string
70 70
      */
71
-    protected function formatDateTime(?\DateTime $date): string
71
+    protected function formatDateTime(? \DateTime $date) : string
72 72
     {
73 73
         if ($date === null) {
74 74
             $date = Carbon::now();
Please login to merge, or discard this patch.
server/app/GraphQL/Serializers/SearchResultsSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * For the full copyright and license information, please view the LICENSE
7 7
  * file that was distributed with this source code.
8 8
  */
9
-declare(strict_types=1);
9
+declare(strict_types = 1);
10 10
 
11 11
 namespace App\GraphQL\Serializers;
12 12
 
Please login to merge, or discard this patch.
server/app/Exceptions/Handler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace App\Exceptions;
11 11
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $exception = $this->prepareException($exception);
68 68
 
69
-        $htmlAccepted = ! $request->ajax() && $request->acceptsHtml();
69
+        $htmlAccepted = !$request->ajax() && $request->acceptsHtml();
70 70
 
71 71
         if ($htmlAccepted && config('app.debug')) {
72 72
             $whoops = new Run();
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             return $whoops->handleException($exception);
76 76
         }
77 77
 
78
-        if (! $this->isHttpException($exception)) {
78
+        if (!$this->isHttpException($exception)) {
79 79
             $exception = new HttpException(500, $exception->getMessage(), $exception);
80 80
         }
81 81
 
Please login to merge, or discard this patch.
server/app/Http/Middleware/ApiAuthenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * For the full copyright and license information, please view the LICENSE
7 7
  * file that was distributed with this source code.
8 8
  */
9
-declare(strict_types=1);
9
+declare(strict_types = 1);
10 10
 
11 11
 namespace App\Http\Middleware;
12 12
 
Please login to merge, or discard this patch.
server/app/GraphQL/Mutations/AbstractMutation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * For the full copyright and license information, please view the LICENSE
5 5
  * file that was distributed with this source code.
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace App\GraphQL\Mutations;
10 10
 
Please login to merge, or discard this patch.