Completed
Push — master ( d29f07...779818 )
by Aimeos
21:15
created
lib/mshoplib/setup/default/DemoAddCatalogData.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 		if( $value === '1' )
82 82
 		{
83 83
 			$ds = DIRECTORY_SEPARATOR;
84
-			$path = __DIR__ . $ds . 'data' . $ds . 'demo-catalog.php';
84
+			$path = __DIR__.$ds.'data'.$ds.'demo-catalog.php';
85 85
 
86 86
 			if( ( $data = include( $path ) ) == false ) {
87 87
 				throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for catalog domain', $path ) );
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,9 @@  discard block
 block discarded – undo
66 66
 			$this->removeItems( $item->getId(), 'catalog/lists', 'catalog', 'text' );
67 67
 			$this->removeListItems( $item->getId(), 'catalog/lists', 'product' );
68 68
 		}
69
-		catch( \Exception $e ) {; } // If no root node was already inserted into the database
69
+		catch( \Exception $e )
70
+		{
71
+; } // If no root node was already inserted into the database
70 72
 
71 73
 
72 74
 		if( $value === '1' )
@@ -103,8 +105,7 @@  discard block
 block discarded – undo
103 105
 			}
104 106
 
105 107
 			$this->status( 'added' );
106
-		}
107
-		else
108
+		} else
108 109
 		{
109 110
 			$this->status( 'removed' );
110 111
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/MShopAddLocaleDataDefault.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 		if( $this->additional->getConfig()->get( 'setup/site', 'default' ) === 'default' )
68 68
 		{
69 69
 			$ds = DIRECTORY_SEPARATOR;
70
-			$filename = __DIR__ . $ds . 'data' . $ds . 'locale.php';
70
+			$filename = __DIR__.$ds.'data'.$ds.'locale.php';
71 71
 
72 72
 			if( ( $data = include( $filename ) ) == false ) {
73 73
 				throw new \Aimeos\MW\Setup\Exception( sprintf( 'No data file "%1$s" found', $filename ) );
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/DemoAddServiceData.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 		if( $value === '1' )
83 83
 		{
84 84
 			$ds = DIRECTORY_SEPARATOR;
85
-			$path = __DIR__ . $ds . 'data' . $ds . 'demo-service.php';
85
+			$path = __DIR__.$ds.'data'.$ds.'demo-service.php';
86 86
 
87 87
 			if( ( $data = include( $path ) ) == false ) {
88 88
 				throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for service domain', $path ) );
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@
 block discarded – undo
89 89
 			}
90 90
 
91 91
 			$this->status( 'added' );
92
-		}
93
-		else
92
+		} else
94 93
 		{
95 94
 			$this->status( 'removed' );
96 95
 		}
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Log/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\\Log\\Manager\\' . $name : '<not a string>';
73
+			$classname = is_string( $name ) ? '\\Aimeos\\MAdmin\\Log\\Manager\\'.$name : '<not a string>';
74 74
 			throw new \Aimeos\MAdmin\Log\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
75 75
 		}
76 76
 
77 77
 		$iface = '\\Aimeos\\MAdmin\\Log\\Manager\\Iface';
78
-		$classname = '\\Aimeos\\MAdmin\\Log\\Manager\\' . $name;
78
+		$classname = '\\Aimeos\\MAdmin\\Log\\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/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.