vendredi 20 décembre 2019

is There an easy way (in phpshtorm) to wrap snippit of php code in phpdocs

Is There a way to copy some code and insert in into phpdocs, so that formatting remains the same. I need to insert this snippet of code into phpcs for the function.

         [
            [
                '_is_forecast'  => true,
                '_is_fake_item'     => false,
                'humidity'          => 1.24,
                // ... other parameters
                'rain_intensity'    => 3,
                'timestamp'         => '2019-12-20 11:20 UTC',
            ],
            [
                '_is_forecast'  => true,
                '_is_fake_item'     => false,
                'humidity'          => 24.5,
                // ... other parameters
                'rain_intensity'    => 23,
                'timestamp'         => '2019-12-20 11:40 UTC',
            ],
        ];



Aucun commentaire:

Enregistrer un commentaire