original_string: private function mergeArrays($deep, $array1, $array2)
      {
          if ($deep === 'merge') {
              return Utils::arrayMergeRecursiveUnique($array1, $array2);
          }
          if ($deep === true) {
              return array_replace_recursive($array1, $array2);
          }
  
          return array_merge($array1, $array2);
      }
code: private function mergeArrays($deep, $array1, $array2)
      {
          if ($deep === 'merge') {
              return Utils::arrayMergeRecursiveUnique($array1, $array2);
          }
          if ($deep === true) {
              return array_replace_recursive($array1, $array2);
          }
  
          return array_merge($array1, $array2);
      }
code_tokens: private function mergeArrays ( $ deep , $ array1 , $ array2 ) { if ( $ deep === 'merge' ) { return Utils :: arrayMergeRecursiveUnique ( $ array1 , $ array2 ) ; } if ( $ deep === true ) { return array_replace_recursive ( $ array1 , $ array2 ) ; } return array_merge ( $ array1 , $ array2 ) ; }
docstring: Merge arrays based on deepness
  
  @param string|bool $deep
  @param array $array1
  @param array $array2
  @return array
docstring_tokens: Merge arrays based on deepness