original_string: protected function call_before_file_created_plugin_functions($newrecord, $pathname = null, $content = null) {
          $pluginsfunction = get_plugins_with_function('before_file_created');
          foreach ($pluginsfunction as $plugintype => $plugins) {
              foreach ($plugins as $pluginfunction) {
                  $pluginfunction($newrecord, ['pathname' => $pathname, 'content' => $content]);
              }
          }
      }
code: protected function call_before_file_created_plugin_functions($newrecord, $pathname = null, $content = null) {
          $pluginsfunction = get_plugins_with_function('before_file_created');
          foreach ($pluginsfunction as $plugintype => $plugins) {
              foreach ($plugins as $pluginfunction) {
                  $pluginfunction($newrecord, ['pathname' => $pathname, 'content' => $content]);
              }
          }
      }
code_tokens: protected function call_before_file_created_plugin_functions ( $ newrecord , $ pathname = null , $ content = null ) { $ pluginsfunction = get_plugins_with_function ( 'before_file_created' ) ; foreach ( $ pluginsfunction as $ plugintype => $ plugins ) { foreach ( $ plugins as $ pluginfunction ) { $ pluginfunction ( $ newrecord , [ 'pathname' => $ pathname , 'content' => $ content ] ) ; } } }
docstring: before_file_created hook.
  
  @param stdClass|null $newrecord New file record.
  @param string|null $pathname Path to file.
  @param string|null $content File content.
docstring_tokens: before_file_created hook .