Skip to content

Commit

Permalink
Removing Laravel 5.4 Support from v1.2 branch
Browse files Browse the repository at this point in the history
+ Some cleaning
  • Loading branch information
arcanedev-maroc committed Jan 31, 2017
1 parent 0cd69cc commit 561f932
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ checks:

tools:
external_code_coverage:
timeout: 1200
runs: 12
timeout: 900
runs: 9
php_code_sniffer:
enabled: true
config:
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ env:
- TESTBENCH_VERSION=3.1.*
- TESTBENCH_VERSION=3.2.*
- TESTBENCH_VERSION=3.3.*
- TESTBENCH_VERSION=3.4.*

before_script:
- travis_retry composer self-update
Expand Down
3 changes: 2 additions & 1 deletion src/Facades/SeoHelper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Arcanedev\SeoHelper\Facades;

use Arcanedev\SeoHelper\Contracts\SeoHelper as SeoHelperContract;
use Illuminate\Support\Facades\Facade;

/**
Expand All @@ -15,5 +16,5 @@ class SeoHelper extends Facade
*
* @return string
*/
protected static function getFacadeAccessor() { return 'arcanedev.seo-helper'; }
protected static function getFacadeAccessor() { return SeoHelperContract::class; }
}
3 changes: 2 additions & 1 deletion src/Facades/SeoMeta.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Arcanedev\SeoHelper\Facades;

use Arcanedev\SeoHelper\Contracts\SeoMeta as SeoMetaContract;
use Illuminate\Support\Facades\Facade;

/**
Expand All @@ -15,5 +16,5 @@ class SeoMeta extends Facade
*
* @return string
*/
protected static function getFacadeAccessor() { return 'arcanedev.seo-helper.meta'; }
protected static function getFacadeAccessor() { return SeoMetaContract::class; }
}
3 changes: 2 additions & 1 deletion src/Facades/SeoOpenGraph.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Arcanedev\SeoHelper\Facades;

use Arcanedev\SeoHelper\Contracts\SeoOpenGraph as SeoOpenGraphContract;
use Illuminate\Support\Facades\Facade;

/**
Expand All @@ -15,5 +16,5 @@ class SeoOpenGraph extends Facade
*
* @return string
*/
protected static function getFacadeAccessor() { return 'arcanedev.seo-helper.open-graph'; }
protected static function getFacadeAccessor() { return SeoOpenGraphContract::class; }
}
3 changes: 2 additions & 1 deletion src/Facades/SeoTwitter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Arcanedev\SeoHelper\Facades;

use Arcanedev\SeoHelper\Contracts\SeoTwitter as SeoTwitterContract;
use Illuminate\Support\Facades\Facade;

/**
Expand All @@ -15,5 +16,5 @@ class SeoTwitter extends Facade
*
* @return string
*/
protected static function getFacadeAccessor() { return 'arcanedev.seo-helper.twitter'; }
protected static function getFacadeAccessor() { return SeoTwitterContract::class; }
}
9 changes: 0 additions & 9 deletions src/Providers/UtilityServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ public function register()
public function provides()
{
return [
'arcanedev.seo-helper.meta',
'arcanedev.seo-helper.open-graph',
'arcanedev.seo-helper.twitter',
Contracts\SeoMeta::class,
Contracts\SeoOpenGraph::class,
Contracts\SeoTwitter::class,
Expand All @@ -73,8 +70,6 @@ private function registerSeoMetaService()

return new SeoMeta($config->get('seo-helper'));
});

$this->singleton('arcanedev.seo-helper.meta', Contracts\SeoMeta::class);
}

/**
Expand All @@ -88,8 +83,6 @@ private function registerSeoOpenGraphService()

return new SeoOpenGraph($config->get('seo-helper'));
});

$this->singleton('arcanedev.seo-helper.open-graph', Contracts\SeoOpenGraph::class);
}

/**
Expand All @@ -103,7 +96,5 @@ private function registerSeoTwitterService()

return new SeoTwitter($config->get('seo-helper'));
});

$this->singleton('arcanedev.seo-helper.twitter', Contracts\SeoTwitter::class);
}
}
4 changes: 2 additions & 2 deletions src/SeoHelperServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public function getBasePath()
public function register()
{
$this->registerConfig();

$this->registerProvider(Providers\UtilityServiceProvider::class);

$this->registerSeoHelperService();
}

Expand All @@ -74,7 +76,6 @@ public function boot()
public function provides()
{
return [
'arcanedev.seo-helper',
Contracts\SeoHelper::class,
];
}
Expand All @@ -89,6 +90,5 @@ public function provides()
private function registerSeoHelperService()
{
$this->singleton(Contracts\SeoHelper::class, SeoHelper::class);
$this->singleton('arcanedev.seo-helper', Contracts\SeoHelper::class);
}
}
3 changes: 0 additions & 3 deletions tests/Providers/UtilityServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ public function it_can_be_instantiated()
public function it_can_provides()
{
$expected = [
'arcanedev.seo-helper.meta',
'arcanedev.seo-helper.open-graph',
'arcanedev.seo-helper.twitter',
\Arcanedev\SeoHelper\Contracts\SeoMeta::class,
\Arcanedev\SeoHelper\Contracts\SeoOpenGraph::class,
\Arcanedev\SeoHelper\Contracts\SeoTwitter::class,
Expand Down
1 change: 0 additions & 1 deletion tests/SeoHelperServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public function it_can_get_service_provider()
public function it_can_provides()
{
$expected = [
'arcanedev.seo-helper',
\Arcanedev\SeoHelper\Contracts\SeoHelper::class,
];

Expand Down
2 changes: 1 addition & 1 deletion tests/SeoMetaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function it_can_be_instantiated()
/** @test */
public function it_can_be_instantiated_by_container()
{
$this->seoMeta = $this->app['arcanedev.seo-helper.meta'];
$this->seoMeta = $this->app[\Arcanedev\SeoHelper\Contracts\SeoMeta::class];

$this->assertInstanceOf(SeoMeta::class, $this->seoMeta);
$this->assertNotEmpty($this->seoMeta->render());
Expand Down

0 comments on commit 561f932

Please sign in to comment.