| Conditions | 5 |
| Paths | 12 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function disconnectAction($socialCode = '') { |
||
| 30 | if (!$socialCode) { |
||
| 31 | Tools::redirect('/', 'Не указана соц сеть'); |
||
| 32 | } |
||
| 33 | $social = Users\Social::get($socialCode, 'code'); |
||
| 34 | if (!$social) { |
||
| 35 | Tools::redirect('/', 'Такой соц. сети не найдено'); |
||
| 36 | } |
||
| 37 | foreach (\Users\User::$cur->socials as $userSocial) { |
||
| 38 | if ($userSocial->social_id == $social->id) { |
||
| 39 | $userSocial->delete(); |
||
| 40 | Tools::redirect('/', 'Связь с соц. сетью ' . $social->name . ' была удалена'); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | Tools::redirect('/', 'Связь с соц. сетью ' . $social->name . ' не найдена'); |
||
| 44 | } |
||
| 47 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths