Code Duplication    Length = 7-7 lines in 4 locations

src/IPub/FlashMessages/FlashNotifier.php 4 locations

@@ 70-76 (lines=7) @@
67
	 *
68
	 * @return Entities\IMessage
69
	 */
70
	public function success($message, $title = NULL) : Entities\IMessage
71
	{
72
		$args = func_get_args();
73
		array_splice($args, 1, 0, ['success']);
74
75
		return call_user_func_array([$this, 'setMessage'], $args);
76
	}
77
78
	/**
79
	 * Flash an information message
@@ 86-92 (lines=7) @@
83
	 *
84
	 * @return Entities\IMessage
85
	 */
86
	public function info($message, $title = NULL) : Entities\IMessage
87
	{
88
		$args = func_get_args();
89
		array_splice($args, 1, 0, ['info']);
90
91
		return call_user_func_array([$this, 'setMessage'], $args);
92
	}
93
94
	/**
95
	 * Flash a warning message
@@ 102-108 (lines=7) @@
99
	 *
100
	 * @return Entities\IMessage
101
	 */
102
	public function warning($message, $title = NULL) : Entities\IMessage
103
	{
104
		$args = func_get_args();
105
		array_splice($args, 1, 0, ['warning']);
106
107
		return call_user_func_array([$this, 'setMessage'], $args);
108
	}
109
110
	/**
111
	 * Flash an error message
@@ 118-124 (lines=7) @@
115
	 *
116
	 * @return Entities\IMessage
117
	 */
118
	public function error($message, $title = NULL) : Entities\IMessage
119
	{
120
		$args = func_get_args();
121
		array_splice($args, 1, 0, ['danger']);
122
123
		return call_user_func_array([$this, 'setMessage'], $args);
124
	}
125
126
	/**
127
	 * Add an "important" flash to the session