Completed
Push — master ( b94e09...a59c24 )
by Aimeos
02:35
created
controller/frontend/src/Controller/Frontend/Index/Factory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 * @param string|null $name Name of the controller implementaton (default: "Standard")
29 29
 	 * @return \Aimeos\Controller\Frontend\Iface Controller object
30 30
 	 */
31
-	public static function createController( \Aimeos\MShop\Context\Item\Iface $context, $name = null )
31
+	public static function createController(\Aimeos\MShop\Context\Item\Iface $context, $name = null)
32 32
 	{
33 33
 		/** controller/frontend/index/name
34 34
 		 * Class name of the used index frontend controller implementation
@@ -63,20 +63,20 @@  discard block
 block discarded – undo
63 63
 		 * @since 2017.03
64 64
 		 * @category Developer
65 65
 		 */
66
-		if( $name === null ) {
67
-			$name = $context->getConfig()->get( 'controller/frontend/index/name', 'Standard' );
66
+		if ($name === null) {
67
+			$name = $context->getConfig()->get('controller/frontend/index/name', 'Standard');
68 68
 		}
69 69
 
70
-		if( ctype_alnum( $name ) === false )
70
+		if (ctype_alnum($name) === false)
71 71
 		{
72
-			$classname = is_string( $name ) ? '\\Aimeos\\Controller\\Frontend\\Index\\' . $name : '<not a string>';
73
-			throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
72
+			$classname = is_string($name) ? '\\Aimeos\\Controller\\Frontend\\Index\\' . $name : '<not a string>';
73
+			throw new \Aimeos\Controller\Frontend\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
74 74
 		}
75 75
 
76 76
 		$iface = '\\Aimeos\\Controller\\Frontend\\Index\\Iface';
77 77
 		$classname = '\\Aimeos\\Controller\\Frontend\\Index\\' . $name;
78 78
 
79
-		$manager = self::createControllerBase( $context, $classname, $iface );
79
+		$manager = self::createControllerBase($context, $classname, $iface);
80 80
 
81 81
 		/** controller/frontend/index/decorators/excludes
82 82
 		 * Excludes decorators added by the "common" option from the index frontend controllers
@@ -152,6 +152,6 @@  discard block
 block discarded – undo
152 152
 		 * @see controller/frontend/index/decorators/excludes
153 153
 		 * @see controller/frontend/index/decorators/global
154 154
 		 */
155
-		return self::addControllerDecorators( $context, $manager, 'index' );
155
+		return self::addControllerDecorators($context, $manager, 'index');
156 156
 	}
157 157
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Index/Iface.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
29 29
 	 * @since 2017.03
30 30
 	 */
31
-	public function addFilterCategory( \Aimeos\MW\Criteria\Iface $filter, $catid );
31
+	public function addFilterCategory(\Aimeos\MW\Criteria\Iface $filter, $catid);
32 32
 
33 33
 
34 34
 	/**
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
41 41
 	 * @since 2017.03
42 42
 	 */
43
-	public function addFilterText( \Aimeos\MW\Criteria\Iface $filter, $input, $listtype = 'default' );
43
+	public function addFilterText(\Aimeos\MW\Criteria\Iface $filter, $input, $listtype = 'default');
44 44
 
45 45
 
46 46
 	/**
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 * @return array Associative list of key values as key and the product count for this key as value
52 52
 	 * @since 2017.03
53 53
 	 */
54
-	public function aggregate( \Aimeos\MW\Criteria\Iface $filter, $key );
54
+	public function aggregate(\Aimeos\MW\Criteria\Iface $filter, $key);
55 55
 
56 56
 
57 57
 	/**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
66 66
 	 * @since 2017.03
67 67
 	 */
68
-	public function createFilter( $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default' );
68
+	public function createFilter($sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default');
69 69
 
70 70
 
71 71
 	/**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 * @param string $type Type of the text like "name", "short", "long", etc.
81 81
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
82 82
 	 */
83
-	public function createTextFilter( $input, $sort = null, $direction = '-', $start = 0, $size = 25, $listtype = 'default', $type = 'name' );
83
+	public function createTextFilter($input, $sort = null, $direction = '-', $start = 0, $size = 25, $listtype = 'default', $type = 'name');
84 84
 
85 85
 
86 86
 	/**
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	 * @return array Ordered list of product items implementing \Aimeos\MShop\Product\Item\Iface
93 93
 	 * @since 2017.03
94 94
 	 */
95
-	public function getItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null );
95
+	public function getItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null);
96 96
 
97 97
 
98 98
 	/**
@@ -101,5 +101,5 @@  discard block
 block discarded – undo
101 101
 	 * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions
102 102
 	 * @return array Associative list of the product ID as key and the product text as value
103 103
 	 */
104
-	public function getTextList( \Aimeos\MW\Criteria\Iface $filter );
104
+	public function getTextList(\Aimeos\MW\Criteria\Iface $filter);
105 105
 }
Please login to merge, or discard this patch.