@@ -49,7 +49,7 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | $stop = microtime( true ); |
52 | - echo "\n product detail: " . ( ( $stop - $start ) * 1000 ) . " msec\n"; |
|
52 | + echo "\n product detail: ".( ( $stop - $start ) * 1000 )." msec\n"; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | throw new \Aimeos\MW\Filesystem\Exception( 'File system not configured' ); |
33 | 33 | } |
34 | 34 | |
35 | - $classname = '\\Aimeos\\MW\\Filesystem\\' . ucfirst( (string) $config['adapter'] ); |
|
35 | + $classname = '\\Aimeos\\MW\\Filesystem\\'.ucfirst( (string) $config['adapter'] ); |
|
36 | 36 | |
37 | 37 | if( !class_exists( $classname ) ) { |
38 | 38 | throw new \Aimeos\MW\Filesystem\Exception( sprintf( 'File system "%1$s" not found', $config['adapter'] ) ); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | protected function getConfig( $name ) |
64 | 64 | { |
65 | - if( ( $conf = $this->config->get( 'resource/' . $name ) ) !== null ) { |
|
65 | + if( ( $conf = $this->config->get( 'resource/'.$name ) ) !== null ) { |
|
66 | 66 | return $conf; |
67 | 67 | } |
68 | 68 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function __construct( \Aimeos\MW\DB\Connection\Iface $conn, $queue, $sql, $rtime ) |
38 | 38 | { |
39 | - $this->cname = md5( microtime(true) . getmypid() ); |
|
39 | + $this->cname = md5( microtime( true ).getmypid() ); |
|
40 | 40 | $this->conn = $conn; |
41 | 41 | $this->queue = $queue; |
42 | 42 | $this->sql = $sql; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | throw new \Aimeos\MW\MQueue\Exception( 'Message queue not configured' ); |
33 | 33 | } |
34 | 34 | |
35 | - $classname = '\\Aimeos\\MW\\MQueue\\' . ucfirst( (string) $config['adapter'] ); |
|
35 | + $classname = '\\Aimeos\\MW\\MQueue\\'.ucfirst( (string) $config['adapter'] ); |
|
36 | 36 | |
37 | 37 | if( !class_exists( $classname ) ) { |
38 | 38 | throw new \Aimeos\MW\MQueue\Exception( sprintf( 'Message queue "%1$s" not found', $config['adapter'] ) ); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | */ |
67 | 67 | protected function getConfig( &$resource ) |
68 | 68 | { |
69 | - if( ( $conf = $this->config->get( 'resource/' . $resource ) ) !== null ) { |
|
69 | + if( ( $conf = $this->config->get( 'resource/'.$resource ) ) !== null ) { |
|
70 | 70 | return $conf; |
71 | 71 | } |
72 | 72 |
@@ -62,12 +62,12 @@ discard block |
||
62 | 62 | { |
63 | 63 | if( ctype_alnum( $name ) === false ) |
64 | 64 | { |
65 | - $classname = is_string( $name ) ? '\\Aimeos\\MW\\View\\Helper\\' . $name : '<not a string>'; |
|
65 | + $classname = is_string( $name ) ? '\\Aimeos\\MW\\View\\Helper\\'.$name : '<not a string>'; |
|
66 | 66 | throw new \Aimeos\MW\View\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
67 | 67 | } |
68 | 68 | |
69 | 69 | $iface = '\\Aimeos\\MW\\View\\Helper\\Iface'; |
70 | - $classname = '\\Aimeos\\MW\\View\\Helper\\' . ucfirst( $name ) . '\\Standard'; |
|
70 | + $classname = '\\Aimeos\\MW\\View\\Helper\\'.ucfirst( $name ).'\\Standard'; |
|
71 | 71 | |
72 | 72 | if( class_exists( $classname ) === false ) { |
73 | 73 | throw new \Aimeos\MW\View\Exception( sprintf( 'Class "%1$s" not available', $classname ) ); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | { |
250 | 250 | foreach( $relPaths as $relPath ) |
251 | 251 | { |
252 | - $absPath = $path . $ds . $relPath . $ds . $file; |
|
252 | + $absPath = $path.$ds.$relPath.$ds.$file; |
|
253 | 253 | if( $ds !== '/' ) { |
254 | 254 | $absPath = str_replace( '/', $ds, $absPath ); |
255 | 255 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | public function transform( $url ) |
55 | 55 | { |
56 | 56 | if( strncmp( $url, 'http', 4 ) !== 0 && strncmp( $url, 'data', 4 ) !== 0 ) { |
57 | - $url = $this->baseurl . ( $url && $url[0] === '/' ? $url : '/' . $url ); |
|
57 | + $url = $this->baseurl.( $url && $url[0] === '/' ? $url : '/'.$url ); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | return $this->enc->attr( $url ); |
@@ -56,7 +56,7 @@ |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | foreach( $names as $name ) { |
59 | - $result .= '[' . $name . ']'; |
|
59 | + $result .= '['.$name.']'; |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | return $result; |