Commit 13ee73e7 authored by alexpott's avatar alexpott

Issue #2066879 by claudiu.cristea: Apply coding standards for interface method declarations.

parent 95a13fe3
......@@ -23,7 +23,7 @@ interface PoMetadataInterface {
* @param string $langcode
* Language code string.
*/
function setLangcode($langcode);
public function setLangcode($langcode);
/**
* Get language code.
......@@ -31,7 +31,7 @@ function setLangcode($langcode);
* @return string
* Language code string.
*/
function getLangcode();
public function getLangcode();
/**
* Set header metadata.
......@@ -39,7 +39,7 @@ function getLangcode();
* @param Drupal\Component\Gettext\PoHeader $header
* Header object representing metadata in a PO header.
*/
function setHeader(PoHeader $header);
public function setHeader(PoHeader $header);
/**
* Get header metadata.
......@@ -47,5 +47,6 @@ function setHeader(PoHeader $header);
* @return Drupal\Component\Gettext\PoHeader $header
* Header instance representing metadata in a PO header.
*/
function getHeader();
public function getHeader();
}
......@@ -20,5 +20,6 @@ interface PoReaderInterface extends PoMetadataInterface {
* @return Drupal\Component\Gettext\PoItem
* Wrapper for item data instance.
*/
function readItem();
public function readItem();
}
......@@ -18,12 +18,12 @@ interface PoStreamInterface {
/**
* Open the stream. Set the URI for the stream earlier with setURI().
*/
function open();
public function open();
/**
* Close the stream.
*/
function close();
public function close();
/**
* Get the URI of the PO stream that is being read or written.
......@@ -31,7 +31,7 @@ function close();
* @return
* URI string for this stream.
*/
function getURI();
public function getURI();
/**
* Set the URI of the PO stream that is going to be read or written.
......@@ -39,5 +39,6 @@ function getURI();
* @param $uri
* URI string to set for this stream.
*/
function setURI($uri);
public function setURI($uri);
}
......@@ -21,7 +21,7 @@ interface PoWriterInterface extends PoMetadataInterface {
* @param PoItem $item
* One specific item to write.
*/
function writeItem(PoItem $item);
public function writeItem(PoItem $item);
/**
* Writes all or the given amount of items.
......@@ -32,5 +32,6 @@ function writeItem(PoItem $item);
* Amount of items to read from $reader to write. If -1, all items are
* read from $reader.
*/
function writeItems(PoReaderInterface $reader, $count = -1);
public function writeItems(PoReaderInterface $reader, $count = -1);
}
......@@ -24,5 +24,6 @@ interface ChmodInterface {
*
* @see http://php.net/chmod
*/
function chmodJailed($path, $mode, $recursive);
public function chmodJailed($path, $mode, $recursive);
}
......@@ -22,7 +22,7 @@ interface KeyValueStoreExpirableInterface extends KeyValueStoreInterface {
* @param int $expire
* The time to live for items, in seconds.
*/
function setWithExpire($key, $value, $expire);
public function setWithExpire($key, $value, $expire);
/**
* Sets a value for a given key with a time to live if it does not yet exist.
......@@ -37,7 +37,7 @@ function setWithExpire($key, $value, $expire);
* @return bool
* TRUE if the data was set, or FALSE if it already existed.
*/
function setWithExpireIfNotExists($key, $value, $expire);
public function setWithExpireIfNotExists($key, $value, $expire);
/**
* Saves an array of values with a time to live.
......@@ -47,6 +47,6 @@ function setWithExpireIfNotExists($key, $value, $expire);
* @param int $expire
* The time to live for items, in seconds.
*/
function setMultipleWithExpire(array $data, $expire);
public function setMultipleWithExpire(array $data, $expire);
}
......@@ -38,7 +38,7 @@ interface StreamWrapperInterface extends PhpStreamWrapperInterface {
* @param string $uri
* A string containing the URI that should be used for this instance.
*/
function setUri($uri);
public function setUri($uri);
/**
* Returns the stream resource URI.
......@@ -122,4 +122,5 @@ public function realpath();
* @see drupal_dirname()
*/
public function dirname($uri = NULL);
}
......@@ -40,6 +40,6 @@ interface CKEditorPluginConfigurableInterface extends CKEditorPluginInterface {
* @return array|FALSE
* A render array for the settings form, or FALSE if there is none.
*/
function settingsForm(array $form, array &$form_state, Editor $editor);
public function settingsForm(array $form, array &$form_state, Editor $editor);
}
......@@ -171,4 +171,5 @@ public function retranslate(EntityInterface $entity, $langcode = NULL);
* The entity being created or edited.
*/
public function entityFormAlter(array &$form, array &$form_state, EntityInterface $entity);
}
......@@ -26,7 +26,7 @@ interface EditorPluginInterface extends PluginInspectionInterface {
* An array of settings as they would be stored by a configured text editor
* entity (\Drupal\editor\Entity\Editor).
*/
function getDefaultSettings();
public function getDefaultSettings();
/**
* Returns a settings form to configure this text editor.
......@@ -46,7 +46,7 @@ function getDefaultSettings();
* @return array
* A render array for the settings form.
*/
function settingsForm(array $form, array &$form_state, Editor $editor);
public function settingsForm(array $form, array &$form_state, Editor $editor);
/**
* Validates the settings form for an editor.
......@@ -60,7 +60,7 @@ function settingsForm(array $form, array &$form_state, Editor $editor);
* @param array $form_state
* A reference to a keyed array containing the current state of the form.
*/
function settingsFormValidate(array $form, array &$form_state);
public function settingsFormValidate(array $form, array &$form_state);
/**
* Modifies any values in the form state to prepare them for saving.
......@@ -73,7 +73,7 @@ function settingsFormValidate(array $form, array &$form_state);
* @param array $form_state
* A reference to a keyed array containing the current state of the form.
*/
function settingsFormSubmit(array $form, array &$form_state);
public function settingsFormSubmit(array $form, array &$form_state);
/**
* Returns JavaScript settings to be attached.
......@@ -93,7 +93,7 @@ function settingsFormSubmit(array $form, array &$form_state);
* @see drupal_process_attached()
* @see EditorManager::getAttachments()
*/
function getJSSettings(Editor $editor);
public function getJSSettings(Editor $editor);
/**
* Returns libraries to be attached.
......@@ -112,5 +112,6 @@ function getJSSettings(Editor $editor);
* @see drupal_process_attached()
* @see EditorManager::getAttachments()
*/
function getLibraries(Editor $editor);
public function getLibraries(Editor $editor);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment