Passed
Pull Request — master (#8)
by
unknown
02:27
created
admin/jsonadm/src/Admin/JsonAdm/Service/Standard.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -122,12 +122,12 @@
 block discarded – undo
122 122
 	}
123 123
 	
124 124
 	/**
125
-	* Saves and returns the new or updated item
126
-	*
127
-	* @param \Aimeos\MShop\Common\Manager\Iface $manager Manager responsible for the items
128
-	* @param \stdClass $entry Object including "id" and "attributes" elements
129
-	* @return \Aimeos\MShop\Common\Item\Iface New or updated item
130
-	*/
125
+	 * Saves and returns the new or updated item
126
+	 *
127
+	 * @param \Aimeos\MShop\Common\Manager\Iface $manager Manager responsible for the items
128
+	 * @param \stdClass $entry Object including "id" and "attributes" elements
129
+	 * @return \Aimeos\MShop\Common\Item\Iface New or updated item
130
+	 */
131 131
 	protected function saveEntry( \Aimeos\MShop\Common\Manager\Iface $manager, \stdClass $entry ) : \Aimeos\MShop\Common\Item\Iface
132 132
 	{
133 133
 		if( isset( $entry->id ) ) {
Please login to merge, or discard this patch.
admin/jsonadm/src/Admin/JsonAdm/Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 		if( isset( $entry->attributes ) && ( $attr = (array) $entry->attributes ) ) {
393 393
 			if( $item instanceof \Aimeos\MShop\Common\Item\Config\Iface ) {
394 394
 				$key = str_replace( '/', '.', $this->path ) . '.config';
395
-				$attr[ $key ] = (array) ( $attr[ $key ] ?? [] );
395
+				$attr[$key] = (array) ( $attr[$key] ?? [] );
396 396
 			}
397 397
 			$item = $item->fromArray( $attr, true );
398 398
 		}
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 
431 431
 					if( isset( $data->attributes ) && ( $attr = (array) $data->attributes ) ) {
432 432
 						$key = str_replace( '/', '.', $this->path ) . '.config';
433
-						$attr[ $key ] = (array) ( $attr[ $key ] ?? [] );
433
+						$attr[$key] = (array) ( $attr[$key] ?? [] );
434 434
 						$item = $item->fromArray( $attr, true );
435 435
 					}
436 436
 
Please login to merge, or discard this patch.