Completed
Push — master ( a36629...97eece )
by Aimeos
03:42
created
lib/custom/src/MW/Cache/Laravel4.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 *
30 30
 	 * @param \Illuminate\Cache\StoreInterface $cache Laravel cache object
31 31
 	 */
32
-	public function __construct( \Illuminate\Cache\StoreInterface $cache )
32
+	public function __construct(\Illuminate\Cache\StoreInterface $cache)
33 33
 	{
34 34
 		$this->object = $cache;
35 35
 	}
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 	 *
43 43
 	 * @param string $key Key string that identifies the single cache entry
44 44
 	 */
45
-	public function delete( $key )
45
+	public function delete($key)
46 46
 	{
47
-		$this->object->forget( $key );
47
+		$this->object->forget($key);
48 48
 	}
49 49
 
50 50
 
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
 	 * @param string[] $keys List of key strings that identify the cache entries
57 57
 	 * 	that should be removed
58 58
 	 */
59
-	public function deleteList( array $keys )
59
+	public function deleteList(array $keys)
60 60
 	{
61
-		foreach( $keys as $key ) {
62
-			$this->object->forget( $key );
61
+		foreach ($keys as $key) {
62
+			$this->object->forget($key);
63 63
 		}
64 64
 	}
65 65
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 * @param string[] $tags List of tag strings that are associated to one or more
73 73
 	 * 	cache entries that should be removed
74 74
 	 */
75
-	public function deleteByTags( array $tags )
75
+	public function deleteByTags(array $tags)
76 76
 	{
77 77
 		// $this->object->tags( $tag )->flush();
78 78
 		$this->object->flush();
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
 	 * @param string $default Value returned if requested key isn't found
100 100
 	 * @return mixed Value associated to the requested key
101 101
 	 */
102
-	public function get( $name, $default = null )
102
+	public function get($name, $default = null)
103 103
 	{
104
-		if( ( $entry = $this->object->get( $name ) ) !== null ) {
104
+		if (($entry = $this->object->get($name)) !== null) {
105 105
 			return $entry;
106 106
 		}
107 107
 
@@ -119,13 +119,13 @@  discard block
 block discarded – undo
119 119
 	 * 	entries. If a cache entry doesn't exist, neither its key nor a value
120 120
 	 * 	will be in the result list
121 121
 	 */
122
-	public function getList( array $keys )
122
+	public function getList(array $keys)
123 123
 	{
124 124
 		$result = array();
125 125
 
126
-		foreach( $keys as $key )
126
+		foreach ($keys as $key)
127 127
 		{
128
-			if( ( $entry = $this->object->get( $key ) ) !== false ) {
128
+			if (($entry = $this->object->get($key)) !== false) {
129 129
 				$result[$key] = $entry;
130 130
 			}
131 131
 		}
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 * 	entries. If a tag isn't associated to any cache entry, nothing is returned
145 145
 	 * 	for that tag
146 146
 	 */
147
-	public function getListByTags( array $tags )
147
+	public function getListByTags(array $tags)
148 148
 	{
149 149
 		return array();
150 150
 	}
@@ -162,12 +162,12 @@  discard block
 block discarded – undo
162 162
 	 * @param string|null $expires Date/time string in "YYYY-MM-DD HH:mm:ss"
163 163
 	 * 	format when the cache entry expires
164 164
 	 */
165
-	public function set( $name, $value, array $tags = array(), $expires = null )
165
+	public function set($name, $value, array $tags = array(), $expires = null)
166 166
 	{
167
-		if( $expires !== null && ( $timestamp = strtotime( $expires ) ) !== false ) {
168
-			$this->object->put( $name, $value, ($timestamp - time())/60 );
167
+		if ($expires !== null && ($timestamp = strtotime($expires)) !== false) {
168
+			$this->object->put($name, $value, ($timestamp - time())/60);
169 169
 		} else {
170
-			$this->object->forever( $name, $value );
170
+			$this->object->forever($name, $value);
171 171
 		}
172 172
 	}
173 173
 
@@ -185,14 +185,14 @@  discard block
 block discarded – undo
185 185
 	 * 	to the key can either be a tag string or an array of tag strings
186 186
 	 * @param array $expires Associative list of key/datetime pairs.
187 187
 	 */
188
-	public function setList( array $pairs, array $tags = array(), array $expires = array() )
188
+	public function setList(array $pairs, array $tags = array(), array $expires = array())
189 189
 	{
190
-		foreach( $pairs as $key => $value )
190
+		foreach ($pairs as $key => $value)
191 191
 		{
192
-			$tagList = ( isset( $tags[$key] ) ? (array) $tags[$key] : array() );
193
-			$keyExpire = ( isset( $expires[$key] ) ? $expires[$key] : null );
192
+			$tagList = (isset($tags[$key]) ? (array) $tags[$key] : array());
193
+			$keyExpire = (isset($expires[$key]) ? $expires[$key] : null);
194 194
 
195
-			$this->set( $key, $value, $tagList, $keyExpire );
195
+			$this->set($key, $value, $tagList, $keyExpire);
196 196
 		}
197 197
 	}
198 198
 }
Please login to merge, or discard this patch.
lib/custom/src/MW/Cache/Laravel5.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 *
30 30
 	 * @param \Illuminate\Contracts\Cache\Store $cache Laravel cache object
31 31
 	 */
32
-	public function __construct( \Illuminate\Contracts\Cache\Store $cache )
32
+	public function __construct(\Illuminate\Contracts\Cache\Store $cache)
33 33
 	{
34 34
 		$this->object = $cache;
35 35
 	}
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 	 *
43 43
 	 * @param string $key Key string that identifies the single cache entry
44 44
 	 */
45
-	public function delete( $key )
45
+	public function delete($key)
46 46
 	{
47
-		$this->object->forget( $key );
47
+		$this->object->forget($key);
48 48
 	}
49 49
 
50 50
 
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
 	 * @param string[] $keys List of key strings that identify the cache entries
57 57
 	 * 	that should be removed
58 58
 	 */
59
-	public function deleteList( array $keys )
59
+	public function deleteList(array $keys)
60 60
 	{
61
-		foreach( $keys as $key ) {
62
-			$this->object->forget( $key );
61
+		foreach ($keys as $key) {
62
+			$this->object->forget($key);
63 63
 		}
64 64
 	}
65 65
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 * @param string[] $tags List of tag strings that are associated to one or more
73 73
 	 * 	cache entries that should be removed
74 74
 	 */
75
-	public function deleteByTags( array $tags )
75
+	public function deleteByTags(array $tags)
76 76
 	{
77 77
 		// $this->object->tags( $tag )->flush();
78 78
 		$this->object->flush();
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
 	 * @param string $default Value returned if requested key isn't found
100 100
 	 * @return mixed Value associated to the requested key
101 101
 	 */
102
-	public function get( $name, $default = null )
102
+	public function get($name, $default = null)
103 103
 	{
104
-		if( ( $entry = $this->object->get( $name ) ) !== null ) {
104
+		if (($entry = $this->object->get($name)) !== null) {
105 105
 			return $entry;
106 106
 		}
107 107
 
@@ -119,13 +119,13 @@  discard block
 block discarded – undo
119 119
 	 * 	entries. If a cache entry doesn't exist, neither its key nor a value
120 120
 	 * 	will be in the result list
121 121
 	 */
122
-	public function getList( array $keys )
122
+	public function getList(array $keys)
123 123
 	{
124 124
 		$result = array();
125 125
 
126
-		foreach( $keys as $key )
126
+		foreach ($keys as $key)
127 127
 		{
128
-			if( ( $entry = $this->object->get( $key ) ) !== false ) {
128
+			if (($entry = $this->object->get($key)) !== false) {
129 129
 				$result[$key] = $entry;
130 130
 			}
131 131
 		}
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 * 	entries. If a tag isn't associated to any cache entry, nothing is returned
145 145
 	 * 	for that tag
146 146
 	 */
147
-	public function getListByTags( array $tags )
147
+	public function getListByTags(array $tags)
148 148
 	{
149 149
 		return array();
150 150
 	}
@@ -162,12 +162,12 @@  discard block
 block discarded – undo
162 162
 	 * @param string|null $expires Date/time string in "YYYY-MM-DD HH:mm:ss"
163 163
 	 * 	format when the cache entry expires
164 164
 	 */
165
-	public function set( $name, $value, array $tags = array(), $expires = null )
165
+	public function set($name, $value, array $tags = array(), $expires = null)
166 166
 	{
167
-		if( $expires !== null && ( $timestamp = strtotime( $expires ) ) !== false ) {
168
-			$this->object->put( $name, $value, ($timestamp - time())/60 );
167
+		if ($expires !== null && ($timestamp = strtotime($expires)) !== false) {
168
+			$this->object->put($name, $value, ($timestamp - time())/60);
169 169
 		} else {
170
-			$this->object->forever( $name, $value );
170
+			$this->object->forever($name, $value);
171 171
 		}
172 172
 	}
173 173
 
@@ -185,14 +185,14 @@  discard block
 block discarded – undo
185 185
 	 * 	to the key can either be a tag string or an array of tag strings
186 186
 	 * @param array $expires Associative list of key/datetime pairs.
187 187
 	 */
188
-	public function setList( array $pairs, array $tags = array(), array $expires = array() )
188
+	public function setList(array $pairs, array $tags = array(), array $expires = array())
189 189
 	{
190
-		foreach( $pairs as $key => $value )
190
+		foreach ($pairs as $key => $value)
191 191
 		{
192
-			$tagList = ( isset( $tags[$key] ) ? (array) $tags[$key] : array() );
193
-			$keyExpire = ( isset( $expires[$key] ) ? $expires[$key] : null );
192
+			$tagList = (isset($tags[$key]) ? (array) $tags[$key] : array());
193
+			$keyExpire = (isset($expires[$key]) ? $expires[$key] : null);
194 194
 
195
-			$this->set( $key, $value, $tagList, $keyExpire );
195
+			$this->set($key, $value, $tagList, $keyExpire);
196 196
 		}
197 197
 	}
198 198
 }
Please login to merge, or discard this patch.
lib/custom/src/MW/Logger/Laravel4.php 2 patches
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 *
30 30
 	 * @param \Illuminate\\Log\Writer $logger Laravel logger object
31 31
 	 */
32
-	public function __construct( \Illuminate\Log\Writer $logger )
32
+	public function __construct(\Illuminate\Log\Writer $logger)
33 33
 	{
34 34
 		$this->logger = $logger;
35 35
 	}
@@ -44,38 +44,38 @@  discard block
 block discarded – undo
44 44
 	 * @throws \Aimeos\MW\Logger\Exception If an error occurs in Zend_Log
45 45
 	 * @see \Aimeos\MW\Logger\Base for available log level constants
46 46
 	 */
47
-	public function log( $message, $priority = \Aimeos\MW\Logger\Base::ERR, $facility = 'message' )
47
+	public function log($message, $priority = \Aimeos\MW\Logger\Base::ERR, $facility = 'message')
48 48
 	{
49 49
 		try
50 50
 		{
51
-			if( !is_scalar( $message ) ) {
52
-				$message = json_encode( $message );
51
+			if (!is_scalar($message)) {
52
+				$message = json_encode($message);
53 53
 			}
54 54
 
55
-			switch( $priority )
55
+			switch ($priority)
56 56
 			{
57 57
 				case \Aimeos\MW\Logger\Base::EMERG:
58
-					$this->logger->emergency( $message ); break;
58
+					$this->logger->emergency($message); break;
59 59
 				case \Aimeos\MW\Logger\Base::ALERT:
60
-					$this->logger->alert( $message ); break;
60
+					$this->logger->alert($message); break;
61 61
 				case \Aimeos\MW\Logger\Base::CRIT:
62
-					$this->logger->critical( $message ); break;
62
+					$this->logger->critical($message); break;
63 63
 				case \Aimeos\MW\Logger\Base::ERR:
64
-					$this->logger->error( $message ); break;
64
+					$this->logger->error($message); break;
65 65
 				case \Aimeos\MW\Logger\Base::WARN:
66
-					$this->logger->warning( $message ); break;
66
+					$this->logger->warning($message); break;
67 67
 				case \Aimeos\MW\Logger\Base::NOTICE:
68
-					$this->logger->notice( $message ); break;
68
+					$this->logger->notice($message); break;
69 69
 				case \Aimeos\MW\Logger\Base::INFO:
70
-					$this->logger->info( $message ); break;
70
+					$this->logger->info($message); break;
71 71
 				case \Aimeos\MW\Logger\Base::DEBUG:
72
-					$this->logger->debug( $message ); break;
72
+					$this->logger->debug($message); break;
73 73
 				default:
74
-					throw new \Aimeos\MW\Logger\Exception( 'Invalid log level' );
74
+					throw new \Aimeos\MW\Logger\Exception('Invalid log level');
75 75
 			}
76 76
 		}
77
-		catch( \Exception $e )	{
78
-			throw new \Aimeos\MW\Logger\Exception( $e->getMessage(), $e->getCode(), $e );
77
+		catch (\Exception $e) {
78
+			throw new \Aimeos\MW\Logger\Exception($e->getMessage(), $e->getCode(), $e);
79 79
 		}
80 80
 	}
81 81
 }
82 82
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
 			}
54 54
 
55 55
 			$this->logger->log( $message, $this->translatePriority( $priority ) );
56
-		}
57
-		catch( \Exception $e )	{
56
+		} catch( \Exception $e )	{
58 57
 			throw new \Aimeos\MW\Logger\Exception( $e->getMessage(), $e->getCode(), $e );
59 58
 		}
60 59
 	}
Please login to merge, or discard this patch.
lib/custom/src/MW/Logger/Laravel5.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 *
30 30
 	 * @param \Illuminate\Contracts\Logging\Log $logger Laravel logger object
31 31
 	 */
32
-	public function __construct( \Illuminate\Contracts\Logging\Log $logger )
32
+	public function __construct(\Illuminate\Contracts\Logging\Log $logger)
33 33
 	{
34 34
 		$this->logger = $logger;
35 35
 	}
@@ -44,18 +44,18 @@  discard block
 block discarded – undo
44 44
 	 * @throws \Aimeos\MW\Logger\Exception If an error occurs in Zend_Log
45 45
 	 * @see \Aimeos\MW\Logger\Base for available log level constants
46 46
 	 */
47
-	public function log( $message, $priority = \Aimeos\MW\Logger\Base::ERR, $facility = 'message' )
47
+	public function log($message, $priority = \Aimeos\MW\Logger\Base::ERR, $facility = 'message')
48 48
 	{
49 49
 		try
50 50
 		{
51
-			if( !is_scalar( $message ) ) {
52
-				$message = json_encode( $message );
51
+			if (!is_scalar($message)) {
52
+				$message = json_encode($message);
53 53
 			}
54 54
 
55
-			$this->logger->log( $message, $this->translatePriority( $priority ) );
55
+			$this->logger->log($message, $this->translatePriority($priority));
56 56
 		}
57
-		catch( \Exception $e )	{
58
-			throw new \Aimeos\MW\Logger\Exception( $e->getMessage(), $e->getCode(), $e );
57
+		catch (\Exception $e) {
58
+			throw new \Aimeos\MW\Logger\Exception($e->getMessage(), $e->getCode(), $e);
59 59
 		}
60 60
 	}
61 61
 
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
 	 * @return integer Log level from Monolog\Logger
68 68
 	 * @throws \Aimeos\MW\Logger\Exception If log level is unknown
69 69
 	 */
70
-	protected function translatePriority( $priority )
70
+	protected function translatePriority($priority)
71 71
 	{
72
-		switch( $priority )
72
+		switch ($priority)
73 73
 		{
74 74
 			case \Aimeos\MW\Logger\Base::EMERG:
75 75
 				return 'emergency';
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 			case \Aimeos\MW\Logger\Base::DEBUG:
89 89
 				return 'debug';
90 90
 			default:
91
-				throw new \Aimeos\MW\Logger\Exception( 'Invalid log level' );
91
+				throw new \Aimeos\MW\Logger\Exception('Invalid log level');
92 92
 		}
93 93
 	}
94 94
 }
95 95
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
 			}
54 54
 
55 55
 			$this->logger->log( $message, $this->translatePriority( $priority ) );
56
-		}
57
-		catch( \Exception $e )	{
56
+		} catch( \Exception $e )	{
58 57
 			throw new \Aimeos\MW\Logger\Exception( $e->getMessage(), $e->getCode(), $e );
59 58
 		}
60 59
 	}
Please login to merge, or discard this patch.
lib/custom/src/MW/Session/Laravel4.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 *
29 29
 	 * @param \Illuminate\Session\Store $object Laravel session object
30 30
 	 */
31
-	public function __construct( \Illuminate\Session\Store $object )
31
+	public function __construct(\Illuminate\Session\Store $object)
32 32
 	{
33 33
 		$this->object = $object;
34 34
 	}
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 	 * @param mixed $default Value returned if requested key isn't found
44 44
 	 * @return mixed Value associated to the requested key
45 45
 	 */
46
-	public function get( $name, $default = null )
46
+	public function get($name, $default = null)
47 47
 	{
48
-		return $this->object->get( $name, $default );
48
+		return $this->object->get($name, $default);
49 49
 	}
50 50
 
51 51
 
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
 	 * @param mixed $value Value that should be associated with the given key
59 59
 	 * @return void
60 60
 	 */
61
-	public function set( $name, $value )
61
+	public function set($name, $value)
62 62
 	{
63
-		$this->object->put( $name, $value );
63
+		$this->object->put($name, $value);
64 64
 	}
65 65
 }
Please login to merge, or discard this patch.
lib/custom/src/MW/Session/Laravel5.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 *
29 29
 	 * @param \Illuminate\Session\SessionInterface $object Laravel session object
30 30
 	 */
31
-	public function __construct( \Illuminate\Session\SessionInterface $object )
31
+	public function __construct(\Illuminate\Session\SessionInterface $object)
32 32
 	{
33 33
 		$this->object = $object;
34 34
 	}
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 	 * @param mixed $default Value returned if requested key isn't found
44 44
 	 * @return mixed Value associated to the requested key
45 45
 	 */
46
-	public function get( $name, $default = null )
46
+	public function get($name, $default = null)
47 47
 	{
48
-		return $this->object->get( $name, $default );
48
+		return $this->object->get($name, $default);
49 49
 	}
50 50
 
51 51
 
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
 	 * @param mixed $value Value that should be associated with the given key
59 59
 	 * @return void
60 60
 	 */
61
-	public function set( $name, $value )
61
+	public function set($name, $value)
62 62
 	{
63
-		$this->object->set( $name, $value );
63
+		$this->object->set($name, $value);
64 64
 	}
65 65
 }
Please login to merge, or discard this patch.
lib/custom/src/MW/View/Helper/Request/Laravel5.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
 	 * @param \\Aimeos\MW\View\Iface $view View instance with registered view helpers
31 31
 	 * @param \Illuminate\Http\Request $request Laravel request object
32 32
 	 */
33
-	public function __construct( \Aimeos\MW\View\Iface $view, \Illuminate\Http\Request $request )
33
+	public function __construct(\Aimeos\MW\View\Iface $view, \Illuminate\Http\Request $request)
34 34
 	{
35
-		parent::__construct( $view );
35
+		parent::__construct($view);
36 36
 
37 37
 		$this->request = $request;
38 38
 	}
Please login to merge, or discard this patch.
lib/custom/src/MW/View/Helper/Url/Laravel4.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 	 * @param \Illuminate\Routing\UrlGenerator $builder Laravel URL builder object
33 33
 	 * @param array Associative list of fixed parameters that should be available for all routes
34 34
 	 */
35
-	public function __construct( \Aimeos\MW\View\Iface $view, \Illuminate\Routing\UrlGenerator $builder, array $fixed )
35
+	public function __construct(\Aimeos\MW\View\Iface $view, \Illuminate\Routing\UrlGenerator $builder, array $fixed)
36 36
 	{
37
-		parent::__construct( $view );
37
+		parent::__construct($view);
38 38
 
39 39
 		$this->builder = $builder;
40 40
 		$this->fixed = $fixed;
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 	 * @param array $config Additional configuration parameter per URL
53 53
 	 * @return string Complete URL that can be used in the template
54 54
 	 */
55
-	public function transform( $target = null, $controller = null, $action = null, array $params = array(), array $trailing = array(), array $config = array() )
55
+	public function transform($target = null, $controller = null, $action = null, array $params = array(), array $trailing = array(), array $config = array())
56 56
 	{
57
-		$values = $this->getValues( $config );
57
+		$values = $this->getValues($config);
58 58
 
59
-		return $this->builder->route( $target, $params + $this->fixed, $values['absoluteUri'] );
59
+		return $this->builder->route($target, $params + $this->fixed, $values['absoluteUri']);
60 60
 	}
61 61
 
62 62
 
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 	 * @param array $config Associative list of key/value pairs
67 67
 	 * @return array Associative list of sanitized key/value pairs
68 68
 	 */
69
-	protected function getValues( array $config )
69
+	protected function getValues(array $config)
70 70
 	{
71 71
 		$values = array(
72 72
 			'absoluteUri' => false,
73 73
 		);
74 74
 
75
-		if( isset( $config['absoluteUri'] ) ) {
75
+		if (isset($config['absoluteUri'])) {
76 76
 			$values['absoluteUri'] = (bool) $config['absoluteUri'];
77 77
 		}
78 78
 
Please login to merge, or discard this patch.
lib/custom/src/MW/View/Helper/Url/Laravel5.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 	 * @param \Illuminate\Contracts\Routing\UrlGenerator $builder Laravel URL builder object
33 33
 	 * @param array Associative list of fixed parameters that should be available for all routes
34 34
 	 */
35
-	public function __construct( \Aimeos\MW\View\Iface $view, \Illuminate\Contracts\Routing\UrlGenerator $builder, array $fixed )
35
+	public function __construct(\Aimeos\MW\View\Iface $view, \Illuminate\Contracts\Routing\UrlGenerator $builder, array $fixed)
36 36
 	{
37
-		parent::__construct( $view );
37
+		parent::__construct($view);
38 38
 
39 39
 		$this->builder = $builder;
40 40
 		$this->fixed = $fixed;
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 	 * @param array $config Additional configuration parameter per URL
53 53
 	 * @return string Complete URL that can be used in the template
54 54
 	 */
55
-	public function transform( $target = null, $controller = null, $action = null, array $params = array(), array $trailing = array(), array $config = array() )
55
+	public function transform($target = null, $controller = null, $action = null, array $params = array(), array $trailing = array(), array $config = array())
56 56
 	{
57
-		$values = $this->getValues( $config );
57
+		$values = $this->getValues($config);
58 58
 
59
-		return $this->builder->route( $target, $params + $this->fixed, $values['absoluteUri'] );
59
+		return $this->builder->route($target, $params + $this->fixed, $values['absoluteUri']);
60 60
 	}
61 61
 
62 62
 
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 	 * @param array $config Associative list of key/value pairs
67 67
 	 * @return array Associative list of sanitized key/value pairs
68 68
 	 */
69
-	protected function getValues( array $config )
69
+	protected function getValues(array $config)
70 70
 	{
71 71
 		$values = array(
72 72
 			'absoluteUri' => false,
73 73
 		);
74 74
 
75
-		if( isset( $config['absoluteUri'] ) ) {
75
+		if (isset($config['absoluteUri'])) {
76 76
 			$values['absoluteUri'] = (bool) $config['absoluteUri'];
77 77
 		}
78 78
 
Please login to merge, or discard this patch.