Completed
Push — master ( 7eba8f...c52d76 )
by Iman
18s queued 10s
created

ConsolePrinter::printHeader()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 13
rs 9.4285
1
<?php
2
3
namespace crocodicstudio\crudbooster\commands;
4
5
class ConsolePrinter
6
{
7
    function printHeader()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
8
    {
9
        $this->info("
0 ignored issues
show
Bug introduced by
The method info() does not exist on crocodicstudio\crudbooster\commands\ConsolePrinter. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

9
        $this->/** @scrutinizer ignore-call */ 
10
               info("

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
10
11
#     ______  ____    __   ______     _____                   __           
12
#    / ____/ / __ \  / /  / / __ \   / /__ )____  ____  _____/ /____  _____
13
#   / /     / /_/ / / /  / / / / /  / /__/ / __ \/ __ \/ ___/ __/ _ \/ ___/
14
#  / /___  / _, _ / /__/ / /_/ /  / /__/ / /_/ / /_/ (__  ) /_/  __/ /    
15
#  \____/ /_/ |_|  \____/_____/  /______/\____/\____/____/\__/\___/_/     
16
#                                                                                                                       
17
			");
18
        $this->info('--------- :===: Thanks for choosing CRUDBooster :==: ---------------');
19
        $this->info('====================================================================');
20
    }
21
22
23
    function printFooter($success = true)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
24
    {
25
        $this->info('--');
26
        $this->info('Homepage : http://www.crudbooster.com');
27
        $this->info('Github : https://github.com/crocodic-studio/crudbooster');
28
        $this->info('Documentation : https://github.com/crocodic-studio/crudbooster/blob/master/docs/en/index.md');
29
        $this->info('====================================================================');
30
        if ($success == true) {
31
            $this->info('------------------- :===: Completed !! :===: ------------------------');
32
        } else {
33
            $this->info('------------------- :===:  Failed !!  :===: ------------------------');
34
        }
35
    }
36
}