Completed
Push — master ( 1fc904...dc433d )
by Aimeos
07:56
created
lib/mshoplib/src/MAdmin/Log/Manager/Standard.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
 		 * @category User
127 127
 		 */
128 128
 		$this->loglevel = $config->get( 'madmin/log/manager/standard/loglevel', \Aimeos\MW\Logger\Base::WARN );
129
-		$this->requestid = md5( php_uname( 'n' ) . getmypid() . date( 'Y-m-d H:i:s' ) );
129
+		$this->requestid = md5( php_uname( 'n' ).getmypid().date( 'Y-m-d H:i:s' ) );
130 130
 	}
131 131
 
132 132
 
Please login to merge, or discard this patch.
Braces   +11 added lines, -6 removed lines patch added patch discarded remove patch
@@ -153,9 +153,12 @@  discard block
 block discarded – undo
153 153
 	 */
154 154
 	public function createItem()
155 155
 	{
156
-		try {
156
+		try
157
+		{
157 158
 			$siteid = $this->getContext()->getLocale()->getSiteId();
158
-		} catch( \Exception $e ) {
159
+		}
160
+		catch( \Exception $e )
161
+		{
159 162
 			$siteid = null;
160 163
 		}
161 164
 
@@ -183,9 +186,12 @@  discard block
 block discarded – undo
183 186
 
184 187
 		$context = $this->getContext();
185 188
 
186
-		try {
189
+		try
190
+		{
187 191
 			$siteid = $context->getLocale()->getSiteId();
188
-		} catch( \Exception $e ) {
192
+		}
193
+		catch( \Exception $e )
194
+		{
189 195
 			$siteid = null;
190 196
 		}
191 197
 
@@ -235,8 +241,7 @@  discard block
 block discarded – undo
235 241
 				 * @see madmin/log/manager/standard/count/ansi
236 242
 				 */
237 243
 				$path = 'madmin/log/manager/standard/insert';
238
-			}
239
-			else
244
+			} else
240 245
 			{
241 246
 				/** madmin/log/manager/standard/update/mysql
242 247
 				 * Updates an existing log record in the database
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -402,6 +402,7 @@
 block discarded – undo
402 402
 	 * @param \Aimeos\MW\Criteria\Iface $search Search object containing the conditions
403 403
 	 * @param array $ref List of domains to fetch list items and referenced items for
404 404
 	 * @param integer &$total Number of items that are available in total
405
+	 * @param integer $total
405 406
 	 * @return array List of jobs implementing \Aimeos\MAdmin\Job\Item\Iface
406 407
 	 */
407 408
 	public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null )
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
 			if( !isset( self::$managers[$id][$name] ) )
90 90
 			{
91
-				$factory = '\\Aimeos\\MAdmin\\' . ucwords( $name ) . '\\Manager\\Factory';
91
+				$factory = '\\Aimeos\\MAdmin\\'.ucwords( $name ).'\\Manager\\Factory';
92 92
 
93 93
 				if( class_exists( $factory ) === false ) {
94 94
 					throw new \Aimeos\MAdmin\Exception( sprintf( 'Class "%1$s" not available', $factory ) );
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
 			foreach( $parts as $part )
108 108
 			{
109
-				$tmpname = $name . '/' . $part;
109
+				$tmpname = $name.'/'.$part;
110 110
 
111 111
 				if( !isset( self::$managers[$id][$tmpname] ) ) {
112 112
 					self::$managers[$id][$tmpname] = self::$managers[$id][$name]->getSubManager( $part );
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Cache/Manager/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,12 +70,12 @@
 block discarded – undo
70 70
 
71 71
 		if( ctype_alnum( $name ) === false )
72 72
 		{
73
-			$classname = is_string( $name ) ? '\\Aimeos\\MAdmin\\Cache\\Manager\\' . $name : '<not a string>';
73
+			$classname = is_string( $name ) ? '\\Aimeos\\MAdmin\\Cache\\Manager\\'.$name : '<not a string>';
74 74
 			throw new \Aimeos\MAdmin\Cache\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
75 75
 		}
76 76
 
77 77
 		$iface = '\\Aimeos\\MAdmin\\Cache\\Manager\\Iface';
78
-		$classname = '\\Aimeos\\MAdmin\\Cache\\Manager\\' . $name;
78
+		$classname = '\\Aimeos\\MAdmin\\Cache\\Manager\\'.$name;
79 79
 
80 80
 		$manager = self::createManagerBase( $context, $classname, $iface );
81 81
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Job/Manager/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,12 +70,12 @@
 block discarded – undo
70 70
 
71 71
 		if( ctype_alnum( $name ) === false )
72 72
 		{
73
-			$classname = is_string( $name ) ? '\\Aimeos\\MAdmin\\Job\\Manager\\' . $name : '<not a string>';
73
+			$classname = is_string( $name ) ? '\\Aimeos\\MAdmin\\Job\\Manager\\'.$name : '<not a string>';
74 74
 			throw new \Aimeos\MAdmin\Job\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
75 75
 		}
76 76
 
77 77
 		$iface = '\\Aimeos\\MAdmin\\Job\\Manager\\Iface';
78
-		$classname = '\\Aimeos\\MAdmin\\Job\\Manager\\' . $name;
78
+		$classname = '\\Aimeos\\MAdmin\\Job\\Manager\\'.$name;
79 79
 
80 80
 		$manager = self::createManagerBase( $context, $classname, $iface );
81 81
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Job/Manager/Standard.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -644,7 +644,7 @@
 block discarded – undo
644 644
 		$statement = $conn->create( $sql );
645 645
 		$statement->bind( 1, $siteId, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
646 646
 
647
-		$context->getLogger()->log( __METHOD__ . ': SQL statement: ' . $statement, \Aimeos\MW\Logger\Base::DEBUG );
647
+		$context->getLogger()->log( __METHOD__.': SQL statement: '.$statement, \Aimeos\MW\Logger\Base::DEBUG );
648 648
 
649 649
 		return $statement->execute();
650 650
 	}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,8 +218,7 @@
 block discarded – undo
218 218
 				 * @see madmin/job/manager/standard/count/ansi
219 219
 				 */
220 220
 				$path = 'madmin/job/manager/standard/insert';
221
-			}
222
-			else
221
+			} else
223 222
 			{
224 223
 				/** madmin/job/manager/standard/update/mysql
225 224
 				 * Updates an existing job record in the database
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -402,6 +402,7 @@
 block discarded – undo
402 402
 	 * @param \Aimeos\MW\Criteria\Iface $search Search object containing the conditions
403 403
 	 * @param array $ref List of domains to fetch list items and referenced items for
404 404
 	 * @param integer &$total Number of items that are available in total
405
+	 * @param integer $total
405 406
 	 * @return array List of jobs implementing \Aimeos\MAdmin\Job\Item\Iface
406 407
 	 */
407 408
 	public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null )
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Supplier/Manager/Factory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,18 +66,18 @@
 block discarded – undo
66 66
 		 * @since 2014.03
67 67
 		 * @category Developer
68 68
 		 */
69
-		if ( $name === null ) {
70
-			$name = $context->getConfig()->get('mshop/supplier/manager/name', 'Standard');
69
+		if( $name === null ) {
70
+			$name = $context->getConfig()->get( 'mshop/supplier/manager/name', 'Standard' );
71 71
 		}
72 72
 
73
-		if ( ctype_alnum($name) === false )
73
+		if( ctype_alnum( $name ) === false )
74 74
 		{
75
-			$classname = is_string($name) ? '\\Aimeos\\MShop\\Supplier\\Manager\\' . $name : '<not a string>';
76
-			throw new \Aimeos\MShop\Supplier\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
75
+			$classname = is_string( $name ) ? '\\Aimeos\\MShop\\Supplier\\Manager\\'.$name : '<not a string>';
76
+			throw new \Aimeos\MShop\Supplier\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
77 77
 		}
78 78
 
79 79
 		$iface = '\\Aimeos\\MShop\\Supplier\\Manager\\Iface';
80
-		$classname = '\\Aimeos\\MShop\\Supplier\\Manager\\' . $name;
80
+		$classname = '\\Aimeos\\MShop\\Supplier\\Manager\\'.$name;
81 81
 
82 82
 		$manager = self::createManagerBase( $context, $classname, $iface );
83 83
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Supplier/Manager/Lists/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@
 block discarded – undo
318 318
 		 * @see mshop/supplier/manager/lists/decorators/global
319 319
 		 */
320 320
 
321
-		return $this->getSubManagerBase( 'supplier', 'lists/' . $manager, $name );
321
+		return $this->getSubManagerBase( 'supplier', 'lists/'.$manager, $name );
322 322
 	}
323 323
 
324 324
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Supplier/Manager/Lists/Type/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@
 block discarded – undo
281 281
 		 * @see mshop/supplier/manager/lists/type/decorators/global
282 282
 		 */
283 283
 
284
-		return $this->getSubManagerBase( 'supplier', 'lists/type/' . $manager, $name );
284
+		return $this->getSubManagerBase( 'supplier', 'lists/type/'.$manager, $name );
285 285
 	}
286 286
 
287 287
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Supplier/Manager/Address/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@
 block discarded – undo
403 403
 		 * @see mshop/supplier/manager/address/decorators/global
404 404
 		 */
405 405
 
406
-		return $this->getSubManagerBase( 'supplier', 'address/' . $manager, $name );
406
+		return $this->getSubManagerBase( 'supplier', 'address/'.$manager, $name );
407 407
 	}
408 408
 
409 409
 
Please login to merge, or discard this patch.