Showing 3,246 of 4,217 total issues

Method show has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function show()
    {
        if ($_GET['id']) {
            return _class('docs')->_show_for($this);
        }
Severity: Minor
Found in .dev/samples/classes/sample_assets.class.php - About 1 hr to fix

    Method _decode_entities has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function _decode_entities($prefix, $codepoint, $original, &$table, &$exclude)
        {
            // Named entity
            if ( ! $prefix) {
                if (isset($table[$original])) {
    Severity: Minor
    Found in classes/yf_utf8.class.php - About 1 hr to fix

      Method data_get_latest_icons has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function data_get_latest_icons()
      {
          $url = 'http://fontawesome.io/cheatsheet/';
          $f2 = __DIR__ . '/' . basename($url);
          if (!file_exists($f2)) {
      Severity: Minor
      Found in .dev/scripts/fontawesome_icons/get_latest_icons.php - About 1 hr to fix

        Method get_all_submodules has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function get_all_submodules($section = 'all')
            {
                $data = [];
                $submodules = (array) _class('core_api')->get_submodules($section);
                foreach ($submodules as $_section => $modules) {
        Severity: Minor
        Found in .dev/samples/classes/sample_core_api.class.php - About 1 hr to fix

          Method execute has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              protected function execute(InputInterface $input, OutputInterface $output)
              {
                  init_yf();
          
                  $params = [];
          Severity: Minor
          Found in .dev/console/commands/yf_console_core_api.class.php - About 1 hr to fix

            Method process_yf_autoload has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function process_yf_autoload() {
                    $libs_root = $this->libs_root;
                    $autoload_config = $this->autoload_config;
                    if (!$autoload_config) {
                        return false;
            Severity: Minor
            Found in services/_yf_autoloader.php - About 1 hr to fix

              Method data_get_latest_countries has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function data_get_latest_countries()
                  {
                      global $url, $result_file, $suffix, $mtpl;
              
                      $f2 = __DIR__ . '/' . basename($url) . '.table' . $suffix . '.html';
              Severity: Minor
              Found in .dev/scripts/countries/get_latest_countries.php - About 1 hr to fix

                Method show has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function show()
                    {
                        if ($_GET['id']) {
                            return _class('docs')->_show_for($this);
                        }
                Severity: Minor
                Found in .dev/samples/classes/sample_services.class.php - About 1 hr to fix

                  Method test_order1 has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function test_order1()
                      {
                          $url = 'http://jquery.com/jquery-wp-content/themes/jquery.com/style.css';
                          $url1 = $url . '?v=1';
                          $url2 = $url . '?v=2';
                  Severity: Minor
                  Found in .dev/tests/unit/class_assets_test.Test.php - About 1 hr to fix

                    Method test_order2 has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function test_order2()
                        {
                            $url = 'http://jquery.com/jquery-wp-content/themes/jquery.com/style.css';
                            $url1 = $url . '?v=1';
                            $url2 = $url . '?v=2';
                    Severity: Minor
                    Found in .dev/tests/unit/class_assets_test.Test.php - About 1 hr to fix

                      Method test_order3 has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function test_order3()
                          {
                              $url = 'http://jquery.com/jquery-wp-content/themes/jquery.com/style.css';
                              $url1 = $url . '?v=1';
                              $url2 = $url . '?v=2';
                      Severity: Minor
                      Found in .dev/tests/unit/class_assets_test.Test.php - About 1 hr to fix

                        Method import_demo_data has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function import_demo_data()
                            {
                                $lang = $_POST['install_project_lang'];
                        
                                $suffix = '.data.php';
                        Severity: Minor
                        Found in .dev/install/install.php - About 1 hr to fix

                          Method test_main has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function test_main()
                              {
                                  $this->assertEquals(0, tofloat(''));
                                  $this->assertEquals(1, tofloat(1));
                                  $this->assertEquals(-1, tofloat(-1));
                          Severity: Minor
                          Found in .dev/tests/unit/functions/function_tofloat_test.Test.php - About 1 hr to fix

                            Method filters_process_input has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function filters_process_input($in, $filters = [], $params = [])
                                {
                                    if (is_array($in)) {
                                        $out = [];
                                        $func = __FUNCTION__;
                            Severity: Minor
                            Found in plugins/assets/classes/yf_assets.class.php - About 1 hr to fix

                              Function amount_change has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  $scope.amount_change = function( is_currency ) {
                                      BalanceApi.timer.cancel();
                                      // init calc
                                      is_currency = is_currency || false;
                                      var form = $scope.form_payment__payin;
                              Severity: Minor
                              Found in plugins/content/templates/user/js/ng/payment/balance-recharge.js - About 1 hr to fix

                                Method _get_info has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function _get_info($id = null, $lang = null)
                                    {
                                        $id = isset($id) ? $id : $_GET['id'];
                                        $lang = isset($lang) ? $lang : $_GET['page'];
                                        $a = db()->from(self::table)
                                Severity: Minor
                                Found in plugins/static_pages/admin_modules/yf_static_pages.class.php - About 1 hr to fix

                                  Method update_expired has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function update_expired()
                                      {
                                          $url = &$this->url;
                                          // command line interface
                                          $is_cli = (php_sapi_name() == 'cli');
                                  Severity: Minor
                                  Found in plugins/payment/admin_modules/yf_manage_deposit.class.php - About 1 hr to fix

                                    Method confirmation_update_expired has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function confirmation_update_expired()
                                        {
                                            $url = &$this->url;
                                            // command line interface
                                            $is_cli = (php_sapi_name() == 'cli');
                                    Severity: Minor
                                    Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 1 hr to fix

                                      Method _update_expired has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function _update_expired()
                                          {
                                              // var
                                              $payment_api = _class('payment_api');
                                              // update status only in_progress
                                      Severity: Minor
                                      Found in plugins/payment/admin_modules/yf_manage_deposit.class.php - About 1 hr to fix

                                        Method _payout has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function _payout($request, $options)
                                            {
                                                $api = _class('api');
                                                $payment_api = _class('payment_api');
                                                // todo
                                        Severity: Minor
                                        Found in plugins/payment/modules/yf_payment.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language