Skip to content

Commit

Permalink
Fix line separators
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Sep 5, 2019
1 parent d226e74 commit 2e31707
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 120 deletions.
116 changes: 58 additions & 58 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
{
"name": "dariusiii/illuminate-romans",
"description": "Laravel Illuminate Romans Integration",
"type": "library",
"license": "MIT",
"keywords": ["laravel", "illuminate", "roman", "roman-number", "roman-numeral", "converter", "format", "validator"],
"require": {
"php": ">=7.0",
"wandersonwhcr/romans": "^1.0",
"illuminate/support": "^6.0"
},
"require-dev": {
"doctrine/instantiator": "^1.0",
"illuminate/container": "^6.0",
"illuminate/contracts": "^6.0",
"jakub-onderka/php-parallel-lint": "^0.9",
"phpmd/phpmd": "^2.6",
"phpunit/phpunit": "^6.3",
"sebastian/phpcpd": "^3.0",
"squizlabs/php_codesniffer": "^2.8"
},
"autoload": {
"psr-4": {
"Illuminate\\Romans\\": "src/"
},
"files": [
"src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"IlluminateTest\\Romans\\": "test/"
}
},
"scripts": {
"test": [
"parallel-lint src",
"phpunit",
"phpcpd src",
"phpmd src text phpmd.xml",
"phpcs"
]
},
"extra": {
"branch-alias": {
"dev-develop": "1.0.x-dev"
},
"laravel": {
"providers": [
"Illuminate\\Romans\\Providers\\RomansProvider"
],
"aliases": {
"IntToRoman": "Illuminate\\Romans\\Support\\Facades\\IntToRoman",
"RomanToInt": "Illuminate\\Romans\\Support\\Facades\\RomanToInt"
}
}
}
}
{
"name": "dariusiii/illuminate-romans",
"description": "Laravel Illuminate Romans Integration",
"type": "library",
"license": "MIT",
"keywords": ["laravel", "illuminate", "roman", "roman-number", "roman-numeral", "converter", "format", "validator"],
"require": {
"php": ">=7.0",
"wandersonwhcr/romans": "^1.0",
"illuminate/support": "^6.0"
},
"require-dev": {
"doctrine/instantiator": "^1.0",
"illuminate/container": "^6.0",
"illuminate/contracts": "^6.0",
"jakub-onderka/php-parallel-lint": "^0.9",
"phpmd/phpmd": "^2.6",
"phpunit/phpunit": "^6.3",
"sebastian/phpcpd": "^3.0",
"squizlabs/php_codesniffer": "^2.8"
},
"autoload": {
"psr-4": {
"Illuminate\\Romans\\": "src/"
},
"files": [
"src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"IlluminateTest\\Romans\\": "test/"
}
},
"scripts": {
"test": [
"parallel-lint src",
"phpunit",
"phpcpd src",
"phpmd src text phpmd.xml",
"phpcs"
]
},
"extra": {
"branch-alias": {
"dev-develop": "1.0.x-dev"
},
"laravel": {
"providers": [
"Illuminate\\Romans\\Providers\\RomansProvider"
],
"aliases": {
"IntToRoman": "Illuminate\\Romans\\Support\\Facades\\IntToRoman",
"RomanToInt": "Illuminate\\Romans\\Support\\Facades\\RomanToInt"
}
}
}
}
124 changes: 62 additions & 62 deletions src/Providers/RomansProvider.php
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
<?php

namespace Illuminate\Romans\Providers;

use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
use Romans\Filter\IntToRoman as IntToRomanFilter;
use Romans\Filter\RomanToInt as RomanToIntFilter;
use Romans\Grammar\Grammar;
use Romans\Lexer\Lexer;
use Romans\Parser\Parser;

/**
* Romans Provider
*/
class RomansProvider extends ServiceProvider implements DeferrableProvider
{
/**
* {@inheritdoc}
*/
protected $defer = true;

/**
* {@inheritdoc}
*/
public function provides()
{
return [
Grammar::class,
Lexer::class,
Parser::class,
IntToRomanFilter::class,
RomanToIntFilter::class,
];
}

/**
* Register Romans Services
*
* @return void
*/
public function register()
{
$this->app->singleton(Grammar::class);

$this->app->singleton(Lexer::class);

$this->app->singleton(Parser::class);

$this->app->singleton(IntToRomanFilter::class);

$this->app->singleton(RomanToIntFilter::class);
$this->app->resolving(RomanToIntFilter::class, function ($element, $app) {
$element->setLexer($app->make(Lexer::class));
$element->setParser($app->make(Parser::class));
return $element;
});

$this->app->alias(IntToRomanFilter::class, 'intToRoman');
$this->app->alias(RomanToIntFilter::class, 'romanToInt');
}
}
<?php

namespace Illuminate\Romans\Providers;

use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
use Romans\Filter\IntToRoman as IntToRomanFilter;
use Romans\Filter\RomanToInt as RomanToIntFilter;
use Romans\Grammar\Grammar;
use Romans\Lexer\Lexer;
use Romans\Parser\Parser;

/**
* Romans Provider
*/
class RomansProvider extends ServiceProvider implements DeferrableProvider
{
/**
* {@inheritdoc}
*/
protected $defer = true;

/**
* {@inheritdoc}
*/
public function provides()
{
return [
Grammar::class,
Lexer::class,
Parser::class,
IntToRomanFilter::class,
RomanToIntFilter::class,
];
}

/**
* Register Romans Services
*
* @return void
*/
public function register()
{
$this->app->singleton(Grammar::class);

$this->app->singleton(Lexer::class);

$this->app->singleton(Parser::class);

$this->app->singleton(IntToRomanFilter::class);

$this->app->singleton(RomanToIntFilter::class);
$this->app->resolving(RomanToIntFilter::class, function ($element, $app) {
$element->setLexer($app->make(Lexer::class));
$element->setParser($app->make(Parser::class));
return $element;
});

$this->app->alias(IntToRomanFilter::class, 'intToRoman');
$this->app->alias(RomanToIntFilter::class, 'romanToInt');
}
}

0 comments on commit 2e31707

Please sign in to comment.