Completed
Branch new-admin-design (796b82)
by
unknown
18:06 queued 13:57
created
src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -15,39 +15,39 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @return array<int, int>
25
-     */
26
-    public function getErrorList()
27
-    {
28
-        return [
29
-            12 => 1,
30
-            13 => 1,
31
-            28 => 1,
32
-            29 => 1,
33
-        ];
34
-
35
-    }//end getErrorList()
36
-
37
-
38
-    /**
39
-     * Returns the lines where warnings should occur.
40
-     *
41
-     * The key of the array should represent the line number and the value
42
-     * should represent the number of warnings that should occur on that line.
43
-     *
44
-     * @return array<int, int>
45
-     */
46
-    public function getWarningList()
47
-    {
48
-        return [];
49
-
50
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		return [
29
+			12 => 1,
30
+			13 => 1,
31
+			28 => 1,
32
+			29 => 1,
33
+		];
34
+
35
+	}//end getErrorList()
36
+
37
+
38
+	/**
39
+	 * Returns the lines where warnings should occur.
40
+	 *
41
+	 * The key of the array should represent the line number and the value
42
+	 * should represent the number of warnings that should occur on that line.
43
+	 *
44
+	 * @return array<int, int>
45
+	 */
46
+	public function getWarningList()
47
+	{
48
+		return [];
49
+
50
+	}//end getWarningList()
51 51
 
52 52
 
53 53
 }//end class
Please login to merge, or discard this patch.
src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.inc 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -4,21 +4,21 @@  discard block
 block discarded – undo
4 4
 require_once 'libs/FileSystem2.inc';
5 5
 
6 6
 function one() {
7
-    Channels::includeSystem('MySystem2');
8
-    $siteid = MySystem2::getCurrentSiteId();
9
-    Page::create();
10
-    PageAssetType::create();
7
+	Channels::includeSystem('MySystem2');
8
+	$siteid = MySystem2::getCurrentSiteId();
9
+	Page::create();
10
+	PageAssetType::create();
11 11
 }
12 12
 
13 13
 function two() {
14
-    $siteid = MySystem2::getCurrentSiteId();
15
-    $parserFiles = FileSystem2::listDirectory();
14
+	$siteid = MySystem2::getCurrentSiteId();
15
+	$parserFiles = FileSystem2::listDirectory();
16 16
 }
17 17
 
18 18
 function three() {
19
-    include 'libs/FileSystem.inc';
20
-    $siteid = MySystem::getCurrentSiteId();
21
-    $parserFiles = FileSystem::listDirectory();
19
+	include 'libs/FileSystem.inc';
20
+	$siteid = MySystem::getCurrentSiteId();
21
+	$parserFiles = FileSystem::listDirectory();
22 22
 }
23 23
 
24 24
 $siteid = MySystem2::getCurrentSiteId();
@@ -30,26 +30,26 @@  discard block
 block discarded – undo
30 30
 
31 31
 class AssetListingAssetType extends AssetAssetType
32 32
 {
33
-    function one() {
34
-        Channels::includeSystem('MySystem2');
35
-        $siteid = MySystem2::getCurrentSiteId();
36
-        Page::create();
37
-        PageAssetType::create();
38
-    }
39
-
40
-    function two() {
41
-        $siteid = MySystem2::getCurrentSiteId();
42
-        $parserFiles = FileSystem2::listDirectory();
43
-        return parent::two();
44
-    }
45
-
46
-    function three() {
47
-        include 'libs/FileSystem.inc';
48
-        $siteid = MySystem::getCurrentSiteId();
49
-        $parserFiles = FileSystem::listDirectory();
50
-        echo self::two();
51
-        echo static::two();
52
-    }
33
+	function one() {
34
+		Channels::includeSystem('MySystem2');
35
+		$siteid = MySystem2::getCurrentSiteId();
36
+		Page::create();
37
+		PageAssetType::create();
38
+	}
39
+
40
+	function two() {
41
+		$siteid = MySystem2::getCurrentSiteId();
42
+		$parserFiles = FileSystem2::listDirectory();
43
+		return parent::two();
44
+	}
45
+
46
+	function three() {
47
+		include 'libs/FileSystem.inc';
48
+		$siteid = MySystem::getCurrentSiteId();
49
+		$parserFiles = FileSystem::listDirectory();
50
+		echo self::two();
51
+		echo static::two();
52
+	}
53 53
 }
54 54
 
55 55
 echo Init::ROOT_DIR;
@@ -74,21 +74,21 @@  discard block
 block discarded – undo
74 74
 
75 75
 class AssetListingUnitTest extends AbstractMySourceUnitTest
76 76
 {
77
-    function setUp() {
78
-        parent::setUp();
79
-        Channels::includeSystem('MySystem2');
80
-        include_once 'Libs/FileSystem.inc';
81
-    }
82
-
83
-    function two() {
84
-        $siteid = MySystem2::getCurrentSiteId();
85
-        $parserFiles = FileSystem::listDirectory();
86
-    }
87
-
88
-    function three() {
89
-        $siteid = MySystem3::getCurrentSiteId();
90
-        $parserFiles = FileSystem::listDirectory();
91
-    }
77
+	function setUp() {
78
+		parent::setUp();
79
+		Channels::includeSystem('MySystem2');
80
+		include_once 'Libs/FileSystem.inc';
81
+	}
82
+
83
+	function two() {
84
+		$siteid = MySystem2::getCurrentSiteId();
85
+		$parserFiles = FileSystem::listDirectory();
86
+	}
87
+
88
+	function three() {
89
+		$siteid = MySystem3::getCurrentSiteId();
90
+		$parserFiles = FileSystem::listDirectory();
91
+	}
92 92
 }
93 93
 
94 94
 if (Channels::systemExists('Log') === TRUE) {
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
 Log::addProjectLog('metadata.field.update', $msg);
101 101
 
102 102
 function two() {
103
-    Widget::includeWidget('CacheAdminScreen');
104
-    $barChart = CacheAdminScreenWidgetType::constructBarchart($data);
103
+	Widget::includeWidget('CacheAdminScreen');
104
+	$barChart = CacheAdminScreenWidgetType::constructBarchart($data);
105 105
 }
106 106
 
107 107
 $adjustDialog->setOrientation(AbstractWidgetWidgetType::CENTER);
Please login to merge, or discard this patch.
src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -15,46 +15,46 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @return array<int, int>
25
-     */
26
-    public function getErrorList()
27
-    {
28
-        return [
29
-            9  => 1,
30
-            14 => 1,
31
-            24 => 1,
32
-            27 => 1,
33
-            28 => 1,
34
-            31 => 1,
35
-            36 => 1,
36
-            41 => 1,
37
-            61 => 1,
38
-            70 => 1,
39
-            89 => 1,
40
-        ];
41
-
42
-    }//end getErrorList()
43
-
44
-
45
-    /**
46
-     * Returns the lines where warnings should occur.
47
-     *
48
-     * The key of the array should represent the line number and the value
49
-     * should represent the number of warnings that should occur on that line.
50
-     *
51
-     * @return array<int, int>
52
-     */
53
-    public function getWarningList()
54
-    {
55
-        return [];
56
-
57
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		return [
29
+			9  => 1,
30
+			14 => 1,
31
+			24 => 1,
32
+			27 => 1,
33
+			28 => 1,
34
+			31 => 1,
35
+			36 => 1,
36
+			41 => 1,
37
+			61 => 1,
38
+			70 => 1,
39
+			89 => 1,
40
+		];
41
+
42
+	}//end getErrorList()
43
+
44
+
45
+	/**
46
+	 * Returns the lines where warnings should occur.
47
+	 *
48
+	 * The key of the array should represent the line number and the value
49
+	 * should represent the number of warnings that should occur on that line.
50
+	 *
51
+	 * @return array<int, int>
52
+	 */
53
+	public function getWarningList()
54
+	{
55
+		return [];
56
+
57
+	}//end getWarningList()
58 58
 
59 59
 
60 60
 }//end class
Please login to merge, or discard this patch.
src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -15,41 +15,41 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @return array<int, int>
25
-     */
26
-    public function getErrorList()
27
-    {
28
-        return [
29
-            2  => 1,
30
-            5  => 1,
31
-            8  => 1,
32
-            24 => 1,
33
-            34 => 1,
34
-            54 => 1,
35
-        ];
36
-
37
-    }//end getErrorList()
38
-
39
-
40
-    /**
41
-     * Returns the lines where warnings should occur.
42
-     *
43
-     * The key of the array should represent the line number and the value
44
-     * should represent the number of warnings that should occur on that line.
45
-     *
46
-     * @return array<int, int>
47
-     */
48
-    public function getWarningList()
49
-    {
50
-        return [];
51
-
52
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		return [
29
+			2  => 1,
30
+			5  => 1,
31
+			8  => 1,
32
+			24 => 1,
33
+			34 => 1,
34
+			54 => 1,
35
+		];
36
+
37
+	}//end getErrorList()
38
+
39
+
40
+	/**
41
+	 * Returns the lines where warnings should occur.
42
+	 *
43
+	 * The key of the array should represent the line number and the value
44
+	 * should represent the number of warnings that should occur on that line.
45
+	 *
46
+	 * @return array<int, int>
47
+	 */
48
+	public function getWarningList()
49
+	{
50
+		return [];
51
+
52
+	}//end getWarningList()
53 53
 
54 54
 
55 55
 }//end class
Please login to merge, or discard this patch.
php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php 2 patches
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -15,44 +15,44 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @param string $testFile The name of the file being tested.
25
-     *
26
-     * @return array<int, int>
27
-     */
28
-    public function getErrorList($testFile='AssignThisUnitTest.js')
29
-    {
30
-        if ($testFile !== 'AssignThisUnitTest.js') {
31
-            return [];
32
-        }
33
-
34
-        return [
35
-            7  => 1,
36
-            11 => 1,
37
-            16 => 1,
38
-        ];
39
-
40
-    }//end getErrorList()
41
-
42
-
43
-    /**
44
-     * Returns the lines where warnings should occur.
45
-     *
46
-     * The key of the array should represent the line number and the value
47
-     * should represent the number of warnings that should occur on that line.
48
-     *
49
-     * @return array<int, int>
50
-     */
51
-    public function getWarningList()
52
-    {
53
-        return [];
54
-
55
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @param string $testFile The name of the file being tested.
25
+	 *
26
+	 * @return array<int, int>
27
+	 */
28
+	public function getErrorList($testFile='AssignThisUnitTest.js')
29
+	{
30
+		if ($testFile !== 'AssignThisUnitTest.js') {
31
+			return [];
32
+		}
33
+
34
+		return [
35
+			7  => 1,
36
+			11 => 1,
37
+			16 => 1,
38
+		];
39
+
40
+	}//end getErrorList()
41
+
42
+
43
+	/**
44
+	 * Returns the lines where warnings should occur.
45
+	 *
46
+	 * The key of the array should represent the line number and the value
47
+	 * should represent the number of warnings that should occur on that line.
48
+	 *
49
+	 * @return array<int, int>
50
+	 */
51
+	public function getWarningList()
52
+	{
53
+		return [];
54
+
55
+	}//end getWarningList()
56 56
 
57 57
 
58 58
 }//end class
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      *
26 26
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='AssignThisUnitTest.js')
28
+    public function getErrorList($testFile = 'AssignThisUnitTest.js')
29 29
     {
30 30
         if ($testFile !== 'AssignThisUnitTest.js') {
31 31
             return [];
Please login to merge, or discard this patch.
src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -15,34 +15,34 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @return array<int, int>
25
-     */
26
-    public function getErrorList()
27
-    {
28
-        return [4 => 1];
29
-
30
-    }//end getErrorList()
31
-
32
-
33
-    /**
34
-     * Returns the lines where warnings should occur.
35
-     *
36
-     * The key of the array should represent the line number and the value
37
-     * should represent the number of warnings that should occur on that line.
38
-     *
39
-     * @return array<int, int>
40
-     */
41
-    public function getWarningList()
42
-    {
43
-        return [];
44
-
45
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		return [4 => 1];
29
+
30
+	}//end getErrorList()
31
+
32
+
33
+	/**
34
+	 * Returns the lines where warnings should occur.
35
+	 *
36
+	 * The key of the array should represent the line number and the value
37
+	 * should represent the number of warnings that should occur on that line.
38
+	 *
39
+	 * @return array<int, int>
40
+	 */
41
+	public function getWarningList()
42
+	{
43
+		return [];
44
+
45
+	}//end getWarningList()
46 46
 
47 47
 
48 48
 }//end class
Please login to merge, or discard this patch.
src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php 2 patches
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -15,45 +15,45 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @param string $testFile The name of the file being tested.
25
-     *
26
-     * @return array<int, int>
27
-     */
28
-    public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js')
29
-    {
30
-        return [
31
-            18  => 1,
32
-            23  => 2,
33
-            26  => 1,
34
-            30  => 1,
35
-            34  => 1,
36
-            43  => 2,
37
-            91  => 1,
38
-            123 => 1,
39
-        ];
40
-
41
-    }//end getErrorList()
42
-
43
-
44
-    /**
45
-     * Returns the lines where warnings should occur.
46
-     *
47
-     * The key of the array should represent the line number and the value
48
-     * should represent the number of warnings that should occur on that line.
49
-     *
50
-     * @return array<int, int>
51
-     */
52
-    public function getWarningList()
53
-    {
54
-        return [];
55
-
56
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @param string $testFile The name of the file being tested.
25
+	 *
26
+	 * @return array<int, int>
27
+	 */
28
+	public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js')
29
+	{
30
+		return [
31
+			18  => 1,
32
+			23  => 2,
33
+			26  => 1,
34
+			30  => 1,
35
+			34  => 1,
36
+			43  => 2,
37
+			91  => 1,
38
+			123 => 1,
39
+		];
40
+
41
+	}//end getErrorList()
42
+
43
+
44
+	/**
45
+	 * Returns the lines where warnings should occur.
46
+	 *
47
+	 * The key of the array should represent the line number and the value
48
+	 * should represent the number of warnings that should occur on that line.
49
+	 *
50
+	 * @return array<int, int>
51
+	 */
52
+	public function getWarningList()
53
+	{
54
+		return [];
55
+
56
+	}//end getWarningList()
57 57
 
58 58
 
59 59
 }//end class
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      *
26 26
      * @return array<int, int>
27 27
      */
28
-    public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js')
28
+    public function getErrorList($testFile = 'CreateWidgetTypeCallbackUnitTest.js')
29 29
     {
30 30
         return [
31 31
             18  => 1,
Please login to merge, or discard this patch.
src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -15,40 +15,40 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     * Returns the lines where errors should occur.
20
-     *
21
-     * The key of the array should represent the line number and the value
22
-     * should represent the number of errors that should occur on that line.
23
-     *
24
-     * @return array<int, int>
25
-     */
26
-    public function getErrorList()
27
-    {
28
-        return [
29
-            28 => 1,
30
-            36 => 1,
31
-            37 => 2,
32
-            49 => 1,
33
-            58 => 1,
34
-        ];
35
-
36
-    }//end getErrorList()
37
-
38
-
39
-    /**
40
-     * Returns the lines where warnings should occur.
41
-     *
42
-     * The key of the array should represent the line number and the value
43
-     * should represent the number of warnings that should occur on that line.
44
-     *
45
-     * @return array<int, int>
46
-     */
47
-    public function getWarningList()
48
-    {
49
-        return [];
50
-
51
-    }//end getWarningList()
18
+	/**
19
+	 * Returns the lines where errors should occur.
20
+	 *
21
+	 * The key of the array should represent the line number and the value
22
+	 * should represent the number of errors that should occur on that line.
23
+	 *
24
+	 * @return array<int, int>
25
+	 */
26
+	public function getErrorList()
27
+	{
28
+		return [
29
+			28 => 1,
30
+			36 => 1,
31
+			37 => 2,
32
+			49 => 1,
33
+			58 => 1,
34
+		];
35
+
36
+	}//end getErrorList()
37
+
38
+
39
+	/**
40
+	 * Returns the lines where warnings should occur.
41
+	 *
42
+	 * The key of the array should represent the line number and the value
43
+	 * should represent the number of warnings that should occur on that line.
44
+	 *
45
+	 * @return array<int, int>
46
+	 */
47
+	public function getWarningList()
48
+	{
49
+		return [];
50
+
51
+	}//end getWarningList()
52 52
 
53 53
 
54 54
 }//end class
Please login to merge, or discard this patch.
src/Standards/MySource/Sniffs/PHP/ReturnFunctionValueSniff.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -16,48 +16,48 @@
 block discarded – undo
16 16
 {
17 17
 
18 18
 
19
-    /**
20
-     * Returns an array of tokens this test wants to listen for.
21
-     *
22
-     * @return array
23
-     */
24
-    public function register()
25
-    {
26
-        return [T_RETURN];
27
-
28
-    }//end register()
29
-
30
-
31
-    /**
32
-     * Processes this sniff, when one of its tokens is encountered.
33
-     *
34
-     * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
35
-     * @param int                         $stackPtr  The position of the current token in
36
-     *                                               the stack passed in $tokens.
37
-     *
38
-     * @return void
39
-     */
40
-    public function process(File $phpcsFile, $stackPtr)
41
-    {
42
-        $tokens = $phpcsFile->getTokens();
43
-
44
-        $functionName = $phpcsFile->findNext(T_STRING, ($stackPtr + 1), null, false, null, true);
45
-
46
-        while ($functionName !== false) {
47
-            // Check if this is really a function.
48
-            $bracket = $phpcsFile->findNext(T_WHITESPACE, ($functionName + 1), null, true);
49
-            if ($tokens[$bracket]['code'] !== T_OPEN_PARENTHESIS) {
50
-                // Not a function call.
51
-                $functionName = $phpcsFile->findNext(T_STRING, ($functionName + 1), null, false, null, true);
52
-                continue;
53
-            }
54
-
55
-            $error = 'The result of a function call should be assigned to a variable before being returned';
56
-            $phpcsFile->addWarning($error, $stackPtr, 'NotAssigned');
57
-            break;
58
-        }
59
-
60
-    }//end process()
19
+	/**
20
+	 * Returns an array of tokens this test wants to listen for.
21
+	 *
22
+	 * @return array
23
+	 */
24
+	public function register()
25
+	{
26
+		return [T_RETURN];
27
+
28
+	}//end register()
29
+
30
+
31
+	/**
32
+	 * Processes this sniff, when one of its tokens is encountered.
33
+	 *
34
+	 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
35
+	 * @param int                         $stackPtr  The position of the current token in
36
+	 *                                               the stack passed in $tokens.
37
+	 *
38
+	 * @return void
39
+	 */
40
+	public function process(File $phpcsFile, $stackPtr)
41
+	{
42
+		$tokens = $phpcsFile->getTokens();
43
+
44
+		$functionName = $phpcsFile->findNext(T_STRING, ($stackPtr + 1), null, false, null, true);
45
+
46
+		while ($functionName !== false) {
47
+			// Check if this is really a function.
48
+			$bracket = $phpcsFile->findNext(T_WHITESPACE, ($functionName + 1), null, true);
49
+			if ($tokens[$bracket]['code'] !== T_OPEN_PARENTHESIS) {
50
+				// Not a function call.
51
+				$functionName = $phpcsFile->findNext(T_STRING, ($functionName + 1), null, false, null, true);
52
+				continue;
53
+			}
54
+
55
+			$error = 'The result of a function call should be assigned to a variable before being returned';
56
+			$phpcsFile->addWarning($error, $stackPtr, 'NotAssigned');
57
+			break;
58
+		}
59
+
60
+	}//end process()
61 61
 
62 62
 
63 63
 }//end class
Please login to merge, or discard this patch.