@@ -213,7 +213,7 @@ public function createData($type, $typeValue, $content, array $modifiers)
213
213
*/
214
214
public function itemToString (stdClass $ item )
215
215
{
216
- if (!in_array ($ item ->type , $ this ->typeKeys )) {
216
+ if (! in_array ($ item ->type , $ this ->typeKeys )) {
217
217
throw new Exception \InvalidArgumentException (sprintf (
218
218
'Invalid type "%s" provided for meta ' ,
219
219
$ item ->type
@@ -230,7 +230,7 @@ public function itemToString(stdClass $item)
230
230
'Invalid modifier "scheme" provided; not supported by HTML5 '
231
231
);
232
232
}
233
- if (!in_array ($ key , $ this ->modifierKeys )) {
233
+ if (! in_array ($ key , $ this ->modifierKeys )) {
234
234
continue ;
235
235
}
236
236
$ modifiersString .= $ key . '=" ' . $ this ->escape ($ value ) . '" ' ;
@@ -267,7 +267,7 @@ public function itemToString(stdClass $item)
267
267
);
268
268
269
269
if (isset ($ item ->modifiers ['conditional ' ])
270
- && !empty ($ item ->modifiers ['conditional ' ])
270
+ && ! empty ($ item ->modifiers ['conditional ' ])
271
271
&& is_string ($ item ->modifiers ['conditional ' ])
272
272
) {
273
273
// inner wrap with comment end and start if !IE
@@ -314,14 +314,14 @@ protected function normalizeType($type)
314
314
*/
315
315
protected function isValid ($ item )
316
316
{
317
- if ((!$ item instanceof stdClass)
318
- || !isset ($ item ->type )
319
- || !isset ($ item ->modifiers )
317
+ if ((! $ item instanceof stdClass)
318
+ || ! isset ($ item ->type )
319
+ || ! isset ($ item ->modifiers )
320
320
) {
321
321
return false ;
322
322
}
323
323
324
- if (!isset ($ item ->content )
324
+ if (! isset ($ item ->content )
325
325
&& (! $ this ->view ->plugin ('doctype ' )->isHtml5 ()
326
326
|| (! $ this ->view ->plugin ('doctype ' )->isHtml5 () && $ item ->type !== 'charset ' ))
327
327
) {
@@ -336,7 +336,7 @@ protected function isValid($item)
336
336
}
337
337
338
338
// <meta property= ... /> is only supported with doctype RDFa
339
- if (!$ this ->view ->plugin ('doctype ' )->isRdfa ()
339
+ if (! $ this ->view ->plugin ('doctype ' )->isRdfa ()
340
340
&& $ item ->type === 'property '
341
341
) {
342
342
return false ;
@@ -354,7 +354,7 @@ protected function isValid($item)
354
354
*/
355
355
public function append ($ value )
356
356
{
357
- if (!$ this ->isValid ($ value )) {
357
+ if (! $ this ->isValid ($ value )) {
358
358
throw new Exception \InvalidArgumentException (
359
359
'Invalid value passed to append; please use appendMeta() '
360
360
);
@@ -373,7 +373,7 @@ public function append($value)
373
373
*/
374
374
public function offsetSet ($ index , $ value )
375
375
{
376
- if (!$ this ->isValid ($ value )) {
376
+ if (! $ this ->isValid ($ value )) {
377
377
throw new Exception \InvalidArgumentException (
378
378
'Invalid value passed to offsetSet; please use offsetSetName() or offsetSetHttpEquiv() '
379
379
);
@@ -391,7 +391,7 @@ public function offsetSet($index, $value)
391
391
*/
392
392
public function offsetUnset ($ index )
393
393
{
394
- if (!in_array ($ index , $ this ->getContainer ()->getKeys ())) {
394
+ if (! in_array ($ index , $ this ->getContainer ()->getKeys ())) {
395
395
throw new Exception \InvalidArgumentException ('Invalid index passed to offsetUnset() ' );
396
396
}
397
397
@@ -407,7 +407,7 @@ public function offsetUnset($index)
407
407
*/
408
408
public function prepend ($ value )
409
409
{
410
- if (!$ this ->isValid ($ value )) {
410
+ if (! $ this ->isValid ($ value )) {
411
411
throw new Exception \InvalidArgumentException (
412
412
'Invalid value passed to prepend; please use prependMeta() '
413
413
);
@@ -425,7 +425,7 @@ public function prepend($value)
425
425
*/
426
426
public function set ($ value )
427
427
{
428
- if (!$ this ->isValid ($ value )) {
428
+ if (! $ this ->isValid ($ value )) {
429
429
throw new Exception \InvalidArgumentException ('Invalid value passed to set; please use setMeta() ' );
430
430
}
431
431
0 commit comments