Conditions | 3 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php namespace Mascame\Artificer\Fields\Types; |
||
30 | public function show() |
||
31 | { |
||
32 | $value = $this->value; |
||
33 | |||
34 | if (!$value) { |
||
35 | return '<div class="well well-sm">No file</div>'; |
||
36 | } |
||
37 | |||
38 | if (!Str::startsWith($value, array('https://', 'http://'))) { |
||
39 | $value = '/uploads/' . $value; |
||
40 | } |
||
41 | ?> |
||
42 | |||
43 | <div class="thumbnail"> |
||
44 | <img style="display: block; margin: auto;height:auto; width:auto; max-width:100px; max-height:100px;" |
||
45 | src="<?= $value ?>" height="100"/> |
||
46 | </div> |
||
47 | <?php |
||
48 | } |
||
49 | } |
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.