Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if a value exists in an array
<?php in_array(mixed $needle, array $haystack, bool $strict = false): bool
<?php         $bottom_y = $height;




        if (in_array('top', $away)) {



            for ($y=0; $y < ceil($height/2); $y++) {

                for ($x=0; $x < $width; $x++) {
<?php         }




        if (in_array('left', $away)) {



            for ($x=0; $x < ceil($width/2); $x++) {

                for ($y=$top_y; $y < $height; $y++) {
<?php         }




        if (in_array('bottom', $away)) {



            for ($y=($height-1); $y >= floor($height/2)-1; $y--) {

                for ($x=$top_x; $x < $width; $x++) {
<?php         }




        if (in_array('right', $away)) {



            for ($x=($width-1); $x >= floor($width/2)-1; $x--) {

                for ($y=$top_y; $y < $bottom_y; $y++) {
<?php         $internalfont = is_null($this->file) ? 1 : $this->file;

        $internalfont = is_numeric($internalfont) ? $internalfont : false;



        if ( ! in_array($internalfont, [1, 2, 3, 4, 5])) {

            throw new NotSupportedException(

                sprintf('Internal GD font (%s) not available. Use only 1-5.', $internalfont)

            );
<?php     {

        $mode = $this->argument(0)->value('h');



        if (in_array(strtolower($mode), [2, 'v', 'vert', 'vertical'])) {


            return $image->getCore()->flipImage();

        } else {
<?php         list($crop_width, $crop_height) = [$trimed->width, $trimed->height];




        if ( ! in_array('right', $away)) {

            $crop_width = $crop_width + ($width - ($width - $crop_x));

        }
<?php         }




        if ( ! in_array('bottom', $away)) {

            $crop_height = $crop_height + ($height - ($height - $crop_y));

        }
<?php         }




        if ( ! in_array('left', $away)) {

            $crop_width = $crop_width + $crop_x;

            $crop_x = 0;

        }
<?php         }




        if ( ! in_array('top', $away)) {

            $crop_height = $crop_height + $crop_y;

            $crop_y = 0;

        }
<?php         $this->assertTrue($output->hasHeader('Content-Type'));

        $this->assertTrue($output->hasHeader('Content-Length'));



        $this->assertTrue(in_array($output->getHeaderLine('Content-Type'), [

            'application/xml',

            'text/xml',

        ]));



        $this->assertEquals(

            strlen($encodedContent),