Code Duplication    Length = 13-13 lines in 2 locations

apps/admin_audit/lib/Actions/Files.php 2 locations

@@ 68-80 (lines=13) @@
65
	 *
66
	 * @param array $params
67
	 */
68
	public function create(array $params) {
69
		if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
70
			return;
71
		}
72
73
		$this->log(
74
			'File created: "%s"',
75
			$params,
76
			[
77
				'path',
78
			]
79
		);
80
	}
81
82
	/**
83
	 * Logs copying of files
@@ 103-115 (lines=13) @@
100
	 *
101
	 * @param array $params
102
	 */
103
	public function write(array $params) {
104
		if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
105
			return;
106
		}
107
108
		$this->log(
109
			'File written to: "%s"',
110
			$params,
111
			[
112
				'path',
113
			]
114
		);
115
	}
116
117
	/**
118
	 * Logs update of files