<?php
array($a, array($b)) = $array;

function test()
{
    $a = array();

    $b = Array ();

    $c = Array(
            'a' => 1,
         );
}

class TestClass
{
    public $good = array(
                    'width'  => '',
                    'height' => '',
                   );

    private $_bad = Array(
                    'width' => '',
                    'height' => ''
                     );


    public function test()
    {
        $truck = array(
                 'width' => '',
                  'height' => '',
                 );

        $plane = Array(
                'width' => '',
                  'height' => '',
                 );

        $car = array(
                'width' => '',
                'height' => '',
               );

        $bus = array(
                'width'  =>   '',
                'height' => ''
               );

        $train = array  (
                   TRUE,
                  FALSE,
                  'aaa'
                 );

        $inline = array('aaa', 'bbb', 'ccc');
        $inline = array('aaa');
        $inline = Array('aaa');

        $bigone = array(
                   'name' => 'bigone',
                   'children'   => Array(
                                    '1a' => 'child',
                                    '11b' => 'child',
                                    '111c'      => 'child',
                                    'children'  => Array(
                                                    'child' => 'aaa',
                                                   ),
                                   ),
                   'short_name' => 'big'
                  );
    }

}//end class

$value = array ( );
$value = array(  );
$value = array('1'=>$one, '2'  =>  $two, '3'=> $three, '4' =>$four);
$value = array('1'=>$one);

if (in_array('1', array('1','2','3')) === TRUE) {
    $value = in_array('1', array('1'  ,   '2',     '3','4'));
}

$value = array(
          '1'=> TRUE,
          FALSE,
          '3' => 'aaa',);

$value = array(
          '1'=> TRUE,
          FALSE,
         );

$value = array(
          TRUE,
          '1' => FALSE,
         );

$value = array(1,
          2 ,
          3 ,
         );

$value = array(1 => $one,
          2 => $two ,
          3 => $three ,
         );

$value = array(
          'tag'   => $tag,
          'space' => $this->_getIndentation($tag, $tagElement),
         );

$expected = array(
             array(
              '1' => 1,
              '1' => 2,
             ),
            );

$expected = array(
             array(
              '1' => 1,
              '1' => 2
             )
            );

// Space in second arg.
$args = array(
         '"'.$this->id.'"',
         (int) $hasSessions,
        );

// No errors.
$paths = array(
          Init::ROOT_DIR.'/Systems'   => 'Systems',
          Init::ROOT_DIR.'/Installer' => 'Systems',
         );

$x = array(
     );

$x = array('test'
     );
$x = array('test',
     );
$x = array('name' => 'test',
     );

$x = array(
      $x,
     );

$func = array(
         $x,
         'get'.$x.'Replacement'
        );

$array = array(
          'input_one' => 'one',
          'inputTwo'  => 'two',
          'input_3'   => 3,
         );

$array = array(
          'input_one',
          'inputTwo',
          'input_3',
         );

// Malformed
$foo = array(1
, 2);

$listItems[$aliasPath] = array('itemContent' => implode('<br/>', $aliases));

$listItems[$aliasPath] = array(
                          'itemContent' => implode('<br/>', $aliases)
                         );

$x = array
  (
      $x,
      $y,
     );

$x = array
(
      $x,
      $y,
     );

$x = array(

      $x,
      $y,
     );

$test = array(
         'test' => TestFunction::blah(
             $value1,
             $value2
         ),
        );

$c = array('a' => 1,);

function b()
{
    $a = array(
            'a'   => a('a'),

    );

}

$foo = Array('[',']',':',"\n","\r");
$bar = Array('&#91;','&#93;','&#58;','&#10;','&#13;');

function foo()
{
    return array($a, $b->screen);
}

$array = array(
          'name'       => 'contactSubject',
          'required'   => TRUE,
          'validators' => array(
                           new \Zend\Validator\InArray(array('haystack' => array_keys($aSubjects))),
                          ),
         );

$var = array(
        'ViewHelper',
        array('Foo'),
        'Errors',
       );

$data = array(
         'first',
         'second',
         'third',
         // Add more here
        );

$data = array(
         'first',
         'second',
         //'third',
        );

$data = array(
         'first',
         'second'
         //'third',
        );

$foo = array(
        $this->getViewName() . '.id'    => 'value',
        $this->getViewName() . '.title' => 'value',
       );

$foo = array(
        $this->getViewName() . '.id',
        $this->getViewName() . '.title',
       );

$weightings = array(
               T_CLOSURE             => 100,

               /*
                   Conditions.
               */

               T_WHILE               => 50,

               /*
                   Operators and arithmetic.
               */

               T_BITWISE_AND         => 8,

               T_BOOLEAN_AND         => 5,

               /*
                   Equality.
               */

               T_IS_GREATER_OR_EQUAL => 5,
              );

foreach (array(
        'foo'    => 'bar',
        'foobaz' => 'bazzy',
    ) as $key => $value) {
}

$ids = array(
        '1', // Foo.
        '13', // Bar.
       );

array(
 'key1' => function($bar) {
    return $bar;
 },
 'key2' => function($foo) {
    return $foo;
 },
 'key3' => function($bar) {
    return $bar;
 }
);

array(
 'key1' => array(
            '1',
            '2',
           )
);

$var = array(
        'tab_template'   => '
        <li>%s</li>',
        'panel_template' => '
        <div id="%s">
            %s
        </div>',
       );

function test() : array
{
    return [];
}

$fields = array(
           'id'    => array('type' => 'INT'),
           'value' => array('type' => 'VARCHAR'));

get_current_screen()->add_help_tab( array(
                                     'id' => <<<EOD
Here comes some text.
EOD
,
                                    ) );

$a = array
// comment
( 'a', 'b' );

$a = array /* comment */ ( 'a', 'b' );

$x = array(
    'a' => false);

$x = array(
    'xxxx'   => array('aaaaaaaaaa' => 'ccccccccccc',
                 'bbbbbbbb'   => false),
);

$foo = array
        ('foo' => array
                ('bar1'   => 1
                ,'bar2'   => 1
                ,'bar3'   => 1
                ,'bar4'   => 1
                ,'bar5'   => 1
                )
        );

$foo = array(
        '1' => $row['status'] === 'rejected'
            ? self::REJECTED_CODE
            : self::VERIFIED_CODE,
        '2' => in_array($row['status'], array('notverified', 'unverified'), true)
            ? self::STATUS_PENDING
            : self::STATUS_VERIFIED,
        '3' => strtotime($row['date']),
       );

$foo = foo(
    array(
    // comment
    )
);

$foo = array(
        <<<HERE
HERE
,
        <<<HERE
HERE
      ,
       );

array(
 lorem(
     1
 ), 2,
);

array(
 1 => lorem(
     1
 ), 2 => 2,
);

$foo = array(
        'тип'  => 'авто',
        'цвет' => 'синий',
       );

$paths = array(
          Init::ROOT_DIR.'/тип'  => 'авто',
          Init::ROOT_DIR.'/цвет' => 'синий',
         );

$foo = array(<<<JSON
{
}
JSON
       );

$array = array(
          'a'   => fn() => return 1,
          'bb'  => fn() => return 2,
          'ccc' => ( true ) ?
              fn() => return 1 :
              fn() => return 2,
         );

$array = array(
          1 => '1',
          2 => fn ($x) => yield 'a' => $x,
          3 => '3',
         );

$foo = array(
        $this->fn => 'value',
        $foo->fn => 'value',
       );

array($a, $b,
$c);

array('a' => $a, 'b' => $b,
'c' => $c);

// Intentional syntax error.
$a = array(
      'a' =>
     );
