Code Duplication    Length = 10-11 lines in 2 locations

src/Providers/FuelServiceProvider.php 2 locations

@@ 58-68 (lines=11) @@
55
			return new Common\CookieJar($config, $data);
56
		});
57
58
		$this->container->add('format', function ($data = null, $fromType = null, array $config = [])
59
		{
60
			$configInstance = $this->container->get('configInstance');
61
			$input = $this->container->get('inputInstance');
62
63
			$config = \Arr::merge($configInstance->load('format', true), $config);
64
65
			$inflector = $this->container->get('inflector');
66
67
			return new Common\Format($data, $fromType, $config, $input, $inflector);
68
		});
69
70
		$this->container->add('pagination', function ($view)
71
		{
@@ 86-95 (lines=10) @@
83
			return new Common\Date($time, $timezone, $config);
84
		});
85
86
		$this->container->add('num', function (array $config = [], array $lang = [])
87
		{
88
			$configInstance = $this->container->get('configInstance');
89
			$langInstance = $this->container->get('langInstance');
90
91
			$config = \Arr::merge($configInstance->load('num', true), $config);
92
			$lang = \Arr::merge($langInstance->load('byteunits', true), $lang);
93
94
			return new Common\Num($config, $lang);
95
		});
96
97
		$this->container->singleton('str', 'Fuel\Common\Str');
98