original_string: protected function includeDefaultIncludes($model, $data)
      {
          // Create an return array
          $returnData = [];
  
          // If we have default includes
          if ( ! empty( $this->defaultIncludes ) ) {
  
              // Loop through all includes
              foreach ($this->defaultIncludes as $include) {
  
                  // Add the new data
                  $returnData[ $include ] = $this->includeByName( $include, $model );
  
              }
  
          }
  
          // Return data
          return array_merge( $data, $returnData );
      }
code: protected function includeDefaultIncludes($model, $data)
      {
          // Create an return array
          $returnData = [];
  
          // If we have default includes
          if ( ! empty( $this->defaultIncludes ) ) {
  
              // Loop through all includes
              foreach ($this->defaultIncludes as $include) {
  
                  // Add the new data
                  $returnData[ $include ] = $this->includeByName( $include, $model );
  
              }
  
          }
  
          // Return data
          return array_merge( $data, $returnData );
      }
code_tokens: protected function includeDefaultIncludes ( $ model , $ data ) { // Create an return array $ returnData = [ ] ; // If we have default includes if ( ! empty ( $ this -> defaultIncludes ) ) { // Loop through all includes foreach ( $ this -> defaultIncludes as $ include ) { // Add the new data $ returnData [ $ include ] = $ this -> includeByName ( $ include , $ model ) ; } } // Return data return array_merge ( $ data , $ returnData ) ; }
docstring: Include default includes
  
  @return Array
docstring_tokens: Include default includes