| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | - /* | |
| 3 | + /* | |
| 4 | 4 | |-------------------------------------------------------------------------- | 
| 5 | 5 | | Torchlight | 
| 6 | 6 | |-------------------------------------------------------------------------- | 
| @@ -28,7 +28,7 @@ | ||
| 28 | 28 | |
| 29 | 29 | public function test_it_renders_blade_views() | 
| 30 | 30 |      { | 
| 31 | -        if (! file_exists(resource_path('views'))) { | |
| 31 | +        if (!file_exists(resource_path('views'))) { | |
| 32 | 32 |              mkdir(resource_path('views')); | 
| 33 | 33 | } | 
| 34 | 34 | |
| @@ -136,7 +136,7 @@ discard block | ||
| 136 | 136 | $task = $this->makeTask(); | 
| 137 | 137 | |
| 138 | 138 | $service = $this->makeService(); | 
| 139 | -        $return = $service->runIf(get_class($task), function () { | |
| 139 | +        $return = $service->runIf(get_class($task), function() { | |
| 140 | 140 | return true; | 
| 141 | 141 | }); | 
| 142 | 142 | |
| @@ -153,7 +153,7 @@ discard block | ||
| 153 | 153 | $task = $this->makeTask(); | 
| 154 | 154 | |
| 155 | 155 | $service = $this->makeService(); | 
| 156 | -        $return = $service->runIf(get_class($task), function () { | |
| 156 | +        $return = $service->runIf(get_class($task), function() { | |
| 157 | 157 | return false; | 
| 158 | 158 | }); | 
| 159 | 159 | |
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | |
| 44 | 44 | protected function mockTorchlight(): void | 
| 45 | 45 |      { | 
| 46 | -        app()->bind('env', function () { | |
| 46 | +        app()->bind('env', function() { | |
| 47 | 47 | return 'production'; | 
| 48 | 48 | }); | 
| 49 | 49 | config(['torchlight.token' => '12345']); | 
| @@ -34,19 +34,19 @@ discard block | ||
| 34 | 34 | /** @covers ::unslash */ | 
| 35 | 35 | public function test_unslash_function_trims_trailing_slashes() | 
| 36 | 36 |      { | 
| 37 | - $tests = ['foo', '/foo', 'foo/', '/foo/', '\foo\\', '\\/foo/\\']; | |
| 37 | + $tests = ['foo', '/foo', 'foo/', '/foo/', '\foo\\', '\\/foo/\\']; | |
| 38 | 38 | |
| 39 | 39 |          foreach ($tests as $test) { | 
| 40 | 40 |              $this->assertSame('foo', unslash($test)); | 
| 41 | 41 | } | 
| 42 | 42 | |
| 43 | - $tests = ['', '/', '\\', '/\\']; | |
| 43 | + $tests = ['', '/', '\\', '/\\']; | |
| 44 | 44 | |
| 45 | 45 |          foreach ($tests as $test) { | 
| 46 | 46 |              $this->assertSame('', unslash($test)); | 
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | - $tests = ['foo/bar', 'foo/bar/', 'foo/bar\\', '\\/foo/bar/\\']; | |
| 49 | + $tests = ['foo/bar', 'foo/bar/', 'foo/bar\\', '\\/foo/bar/\\']; | |
| 50 | 50 | |
| 51 | 51 |          foreach ($tests as $test) { | 
| 52 | 52 |              $this->assertSame('foo/bar', unslash($test)); | 
| @@ -65,10 +65,10 @@ discard block | ||
| 65 | 65 | $array = [1, 2, 3]; | 
| 66 | 66 | $collection = collect($array); | 
| 67 | 67 | |
| 68 | -        $this->assertSame($array, array_map_unique($array, function ($item) { | |
| 68 | +        $this->assertSame($array, array_map_unique($array, function($item) { | |
| 69 | 69 | return $item; | 
| 70 | 70 | })); | 
| 71 | -        $this->assertSame($array, array_map_unique($collection, function ($item) { | |
| 71 | +        $this->assertSame($array, array_map_unique($collection, function($item) { | |
| 72 | 72 | return $item; | 
| 73 | 73 | })); | 
| 74 | 74 | } | 
| @@ -78,7 +78,7 @@ discard block | ||
| 78 | 78 |      { | 
| 79 | 79 | $array = [1, 1, 2]; | 
| 80 | 80 | |
| 81 | -        $this->assertEquals([1, 2], array_map_unique($array, function ($item) { | |
| 81 | +        $this->assertEquals([1, 2], array_map_unique($array, function($item) { | |
| 82 | 82 | return $item; | 
| 83 | 83 | })); | 
| 84 | 84 | } | 
| @@ -88,7 +88,7 @@ discard block | ||
| 88 | 88 |      { | 
| 89 | 89 | $array = [1, 2, 2, 2, 3]; | 
| 90 | 90 | |
| 91 | -        $this->assertEquals([1, 2, 3], array_map_unique($array, function ($item) { | |
| 91 | +        $this->assertEquals([1, 2, 3], array_map_unique($array, function($item) { | |
| 92 | 92 | return $item; | 
| 93 | 93 | })); | 
| 94 | 94 | } | 
| @@ -97,7 +97,7 @@ discard block | ||
| 97 | 97 |      { | 
| 98 | 98 | $array = ['foo', 'foo', 'bar']; | 
| 99 | 99 | |
| 100 | -        $this->assertEquals(['foo', 'bar'], array_map_unique($array, function ($item) { | |
| 100 | +        $this->assertEquals(['foo', 'bar'], array_map_unique($array, function($item) { | |
| 101 | 101 | return $item; | 
| 102 | 102 | })); | 
| 103 | 103 | } | 
| @@ -39,7 +39,7 @@ discard block | ||
| 39 | 39 | |
| 40 | 40 | public function test_it_can_find_the_content_length_for_a_remote_image() | 
| 41 | 41 |      { | 
| 42 | -        Http::fake(function (Request $request) { | |
| 42 | +        Http::fake(function(Request $request) { | |
| 43 | 43 | return Http::response(null, 200, [ | 
| 44 | 44 | 'Content-Length' => 16, | 
| 45 | 45 | ]); | 
| @@ -65,7 +65,7 @@ discard block | ||
| 65 | 65 | |
| 66 | 66 | public function test_it_returns_0_if_remote_image_is_missing() | 
| 67 | 67 |      { | 
| 68 | -        Http::fake(function (Request $request) { | |
| 68 | +        Http::fake(function(Request $request) { | |
| 69 | 69 | return Http::response(null, 404); | 
| 70 | 70 | }); | 
| 71 | 71 | |
| @@ -27,7 +27,7 @@ | ||
| 27 | 27 |      { | 
| 28 | 28 | $features = []; | 
| 29 | 29 |          foreach (get_class_methods(Features::class) as $method) { | 
| 30 | -            if (! str_starts_with($method, 'has') && $method !== 'enabled') { | |
| 30 | +            if (!str_starts_with($method, 'has') && $method !== 'enabled') { | |
| 31 | 31 | $features[] = '\Hyde\Framework\Helpers\Features::'.$method.'()'; | 
| 32 | 32 | } | 
| 33 | 33 | } | 
| @@ -20,7 +20,7 @@ | ||
| 20 | 20 |      { | 
| 21 | 21 | parent::setUp(); | 
| 22 | 22 | |
| 23 | -        if (! isset($this->basePath)) { | |
| 23 | +        if (!isset($this->basePath)) { | |
| 24 | 24 | $this->basePath = Hyde::getBasePath(); | 
| 25 | 25 | } | 
| 26 | 26 | } | 
| @@ -57,13 +57,13 @@ | ||
| 57 | 57 |          view()->share('currentPage', ''); | 
| 58 | 58 | |
| 59 | 59 |          $this->assertStringContainsString('foo bar', | 
| 60 | -             Blade::render(' | |
| 60 | +                Blade::render(' | |
| 61 | 61 |                  @push("styles") | 
| 62 | 62 | foo bar | 
| 63 | 63 | @endpush | 
| 64 | 64 | |
| 65 | 65 |                  @include("hyde::layouts.styles")' | 
| 66 | - ) | |
| 66 | + ) | |
| 67 | 67 | ); | 
| 68 | 68 | } | 
| 69 | 69 | |