Skip to content

Commit 347cd91

Browse files
committed
restore original state of example file... presumably the cs violations were intentional
1 parent 51f94cb commit 347cd91

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

tests/example.file.php

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ interface Valued
7272
{
7373
const BASE_PRICE = 1;
7474

75-
public function getPrice();
75+
function getPrice();
7676
}
7777

7878
interface Series
@@ -100,6 +100,8 @@ public function add()
100100
/**
101101
* Calculates the price for this specific component.
102102
*
103+
* @param float[] $...additionalPrices Additional costs may be passed
104+
*
103105
* @return float
104106
*/
105107
abstract protected function calculatePrice();
@@ -193,24 +195,19 @@ class Pizza implements Pizza\Valued
193195

194196
const
195197
/** @var string DELIVERY designates that the delivery method is to deliver the pizza to the customer. */
196-
DELIVERY = 'delivery';
197-
198-
const /** @var string PICKUP designates that the delivery method is that the customer picks the pizza up. */
198+
DELIVERY = 'delivery',
199+
/** @var string PICKUP designates that the delivery method is that the customer picks the pizza up. */
199200
PICKUP = 'pickup';
200201

201202
/** @var static contains the active instance for this Pizza. */
202-
private static $instance;
203+
static private $instance;
203204

204205
/**
205-
* @var Pizza\Style
206+
* @var Pizza\Style $style
206207
* @var Pizza\Sauce|null $sauce
207208
* @var Pizza\Topping[] $toppings
208209
*/
209-
private $style;
210-
211-
private $sauce;
212-
213-
private $toppings;
210+
private $style, $sauce, $toppings;
214211

215212
/**
216213
* The size of the pizza in centimeters, defaults to 20cm.
@@ -219,11 +216,13 @@ class Pizza implements Pizza\Valued
219216
*/
220217
public $size = \Luigi\Pizza\SIZE_20CM;
221218

222-
public $legacy; // don't use this anymore!
219+
var $legacy; // don't use this anymore!
223220

224-
protected $packaging = self::PACKAGING;
225-
226-
protected $deliveryMethod;
221+
protected
222+
/** @var string $packaging The type of packaging for this Pizza */
223+
$packaging = self::PACKAGING,
224+
/** @var string $deliveryMethod Is the customer picking this pizza up or must it be delivered? */
225+
$deliveryMethod;
227226

228227
private function __construct(Pizza\Style $style)
229228
{
@@ -236,7 +235,11 @@ private function __construct(Pizza\Style $style)
236235
* This method can be used to instantiate a new object of this class which can then be retrieved using
237236
* {@see self::getInstance()}.
238237
*
238+
* @param Pizza\Style $style
239+
*
239240
* @see self::getInstance to retrieve the pizza object.
241+
*
242+
* @return void
240243
*/
241244
public static function createInstance(Pizza\Style $style)
242245
{
@@ -246,7 +249,7 @@ public static function createInstance(Pizza\Style $style)
246249
/**
247250
* @return self
248251
*/
249-
public static function getInstance()
252+
static function getInstance()
250253
{
251254
return self::$instance;
252255
}

0 commit comments

Comments
 (0)